-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.zx81
62 lines (49 loc) · 1.37 KB
/
variables.zx81
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
; *******************************************************************
; * FACTORY - A game for ZX81 computers
; *******************************************************************
; * File: variables.zx81
; * Description: Variables
; * Author: Sebastien Andrivet
; * License: GPLv3
; * Copyrights: Copyright (C) 1984-2023 Sebastien Andrivet
; *******************************************************************
; Maximum number of boxes at the same time on the screen
nb_boxes:
byte 0
; Current speed of the game (the lowest, the fastest)
speed:
byte 0
; Number of steps before decrementing the speed counter
speed_steps:
byte 0
; Multiplier of points (1: normal, >1: bonus)
points_increment:
byte 0
; Last tick (based on FRAMES)
last_frames:
word 0
; Current score (in characters)
score:
block NB_SCORE_DIGITS, _0
; Max score reached?
max_score:
byte 0
; Number of chances
chances:
byte 0
; Current position of Marius (0: bottom, 2: top)
marius_position:
byte 0
; Current position of Louis (0: bottom, 2: top)
louis_position:
byte 0
; Position of the boxes (00: first position, FF: empty)
boxes_positions:
block MAX_BOXES
; Last movements
; 00000001 0x01 Marius was moved up
; 00000010 0x02 Marius was moved down
; 00000100 0x04 Louis was moved up
; 00001000 0x08 Louis was moved down
last_moves:
byte 0