User Tools

Site Tools


zxt:extension:0000a51e:0007

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
zxt:extension:0000a51e:0007 [2022/05/29 14:10] – [Description] asiezxt:extension:0000a51e:0007 [2022/05/29 14:49] (current) asie
Line 19: Line 19:
 ===== Description ===== ===== Description =====
  
-This extension provides OOP commands for controlling the active viewport:+This extension defines the concept of a "viewport", loosely inspired by Super ZZT. 
  
-  * ''#VIEWPORT [LOCK|UNLOCK]'' - Locks or unlocks the viewport. By default, the viewport is unlocked - this means that movement of the player stat will return focus back to the player. (Whether this also includes failed movement //attempts// is undefined.) Locking the viewport means that player movement will not return focus back to the player.+This extension also provides OOP commands for controlling the active viewport: 
 + 
 +  * ''#VIEWPORT [LOCK|UNLOCK]'' - Locks or unlocks the viewport. By default, the viewport is unlocked - this means that movement of the player stat will return focus back to the player. (Whether this also includes failed movement //attempts// is undefined.) Locking the viewport means that player movement will not return focus back to the player. If the current stat in focus is the player, a locked viewport will remain in place.
   * ''#VIEWPORT FOCUS PLAYER'' - Returns viewport camera focus to the player. Importantly, this also unlocks the viewport.   * ''#VIEWPORT FOCUS PLAYER'' - Returns viewport camera focus to the player. Importantly, this also unlocks the viewport.
-  * ''#VIEWPORT FOCUS [target]'' - Centers the viewport camera on the provided target (''SELF'', or a target name).+  * ''#VIEWPORT FOCUS [target]'' - Centers the viewport camera on the provided target (''SELF'', or a target name). 
   * ''#VIEWPORT MOVE [direction]'' - Moves the viewport camera by the specified direction, relative to the center of the viewport, rounded down.   * ''#VIEWPORT MOVE [direction]'' - Moves the viewport camera by the specified direction, relative to the center of the viewport, rounded down.
 +
 +The following additional rules apply:
 +
 +  * If the currently focused stat is removed, and the stat is not the player, the viewport is returned to the player and unlocked as if ''#VIEWPORT FOCUS PLAYER'' were called.
  
 ===== Implementations ===== ===== Implementations =====
  
 TBD TBD
zxt/extension/0000a51e/0007.1653833433.txt.gz · Last modified: 2022/05/29 14:10 by asie