From 122654c1ef9d99af8210ce95dee4eb4d1bc04b67 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 15 May 2025 16:27:36 +0200 Subject: Define the notion of a level MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is for now just a variable that will be set during initialization, and that it can be influenced through the `LEVEL` make variable. Both the level and the level "kind" notions are used tracking, at least, which kind of enemy wave we have to send. Signed-off-by: Miquel Sabaté Solà --- include/globals.s | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/globals.s') diff --git a/include/globals.s b/include/globals.s index 395df61..531c812 100644 --- a/include/globals.s +++ b/include/globals.s @@ -34,4 +34,12 @@ ;; | 2 | title over | We are transitioning from title to game | ;; | 1-0 | game | 0: title; 1: game; 2: game over, 3: game over (coin) | zp_flags = $20 + + ;; Current level of the game. + zp_level = $24 + + ;; The level "kind". Note that `zp_level` can go on forever, but the level + ;; "kind" repeats every 8 waves. Hence, this is just a cached version of + ;; masking `zp_level`. + zp_level_kind = $25 .endscope -- cgit v1.2.3