User Tools

Site Tools


release:marginal_silliness_of_zzt

This is an old revision of the document!


The (Marginal) Silliness of ZZT

The (Marginal) Silliness of ZZT is a one-off fork of ZZT by Alex West, made in April 2020.

Features

- Player-shootable stars

  1. Modified ElementStarTick to handle player-sourced stars correctly (they go anti-seek)
  2. Player shoots stars when using an energizer
  3. Known issue: Stars don't give the player score

- Customizable player color (per board)

  1. Removed the instances where the game forces the default color.
  2. Modified the editor to change the player color to “choice on dark blue”, though any color should work in theory (but KevEdit apparently forces the default color for it as well…)
  3. Known issues
  4. Energizer and damage color cycling were removed
  5. When the game is paused after using a passage, the passage underneath the player is not displayed

- ZZT-OOP commands regarding board darkness

  1. The “#darken” command darkens the board
  2. The “#brighten” command undarkens the board
  3. The “isdark” condition returns true if the board is dark
  4. I'm open to suggestions for better names here.

- EnergizerTicks and TorchTicks are now ZZT-OOP counters

  1. EnergizerTicks = “ENERGY”
  2. TorchTicks = “WICK”
  3. The standard #give, #take, and ?cheat operations apply
  4. Note: #giving or cheating yourself energy will not play the energizer song. You shoud write your own music.

- Examples of how to have a keypress set a flag or send a message

  1. These changes can be found towards the end of the procedure ElementPlayerTick(), and are easy enough that even you could so them.
  2. Pressing 'Z' is equivalent to “#send all:test”
    1. For performance reasons, one could change “all” to a specific object name (eg. “inventory:do”)
  3. Pressing 'X' is equivalent to “#set test” or “?+test”
  4. Both of these examples check if the player statID is 0, in order to avoid spurious effects from player clones elsewhere in the stat list.
release/marginal_silliness_of_zzt.1640565868.txt.gz · Last modified: 2021/12/27 00:44 by asie