-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal_variables.txt
78 lines (70 loc) · 3.01 KB
/
global_variables.txt
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
.data
frogPosition: .space 8 # (x, y)
frogOrientation: .word 0 # 0 = up, 1 = down, 2 = left, 3 = right
goalRow: .word 0:32
logRow1: .space 128
logRow2: .space 128
logRow3: .space 128
carRow1: .space 128
carRow2: .space 128
carRow3: .space 128
goalStart: .word 0
lifeRowStart: .word 128
goalRowStart: .word 640
safeStart: .word 2176
startStart: .word 3712
logRowStart1: .word 1024
logRowStart2: .word 1408
logRowStart3: .word 1792
carRowStart1: .word 2560
carRowStart2: .word 2944
carRowStart3: .word 3328
goalRowMiddle: .word 24
logRow1Middle: .word 36
logRow2Middle: .word 48
logRow3Middle: .word 60
carRow1Middle: .word 84
carRow2Middle: .word 96
carRow3Middle: .word 108
waterColor: .word 0x002424a3
roadColor: .word 0x00575757
logColor: .word 0x00824d19
carColor: .word 0x00ad1c0c
startColor: .word 0x00408a29
safeColor: .word 0x00baa625
goalColor: .word 0x00408a29
goalBlockColor: .word 0x002a591b
frogLightColor: .word 0x00b800a8
frogDarkColor: .word 0x00570251
frogDieLightColor1: .word 0x00b0e805
frogDieDarkColor1: .word 0x0081ab02
frogDieLightColor2: .word 0x00d97109
frogDieDarkColor2: .word 0x008f4a04
frogWinLightColor: .word 0x00ffc96b
frogLifeColor: .word 0x00d6384f
displayAddress: .word 0x10008000
screen: .space 4096
currLevel: .word 0 # (current level - 1) * 4 that the game is in
maxLevel: .word 4 # (maximum level - 1) * 4 of the game
goalRemain: .word 3 # goal position remaining = 3 at the begining
frogReachedGoal: .word 0 # 0 = not reached, 1 = reached
frogDied: .word 1 # 0 = not die, 1 = die
frogLifeRemain: .word 3 # number of life remaining, start with 3
frogLifeArray: .word 1:3 # life remaining array is an array with 3 elements, 0 = no life, 1 = life
# carLogSpeed: .word 10 # how many main loop cycles to update car/log position once
# carLogCurrLap: .space 4 # which cycles is car/log currently on
logRow1Speed: .word 10, 4 # speed of logRow1 in each level
logRow2Speed: .word 10, 8 # speed of logRow2 in each level
logRow3Speed: .word 10, 6 # speed of logRow3 in each level
carRow1Speed: .word 10, 6 # speed of carRow1 in each level
carRow2Speed: .word 10, 4 # speed of carRow2 in each level
carRow3Speed: .word 10, 8 # speed of carRow3 in each level
logRow1CurrentLap: .word 0 # which cycles is logRow1 currently on, if cycle(lap) == speed, update log position
logRow2CurrentLap: .word 0 # which cycles is logRow2 currently on, if cycle(lap) == speed, update log position
logRow3CurrentLap: .word 0 # which cycles is logRow3 currently on, if cycle(lap) == speed, update log position
carRow1CurrentLap: .word 0 # which cycles is carRow1 currently on, if cycle(lap) == speed, update car position
carRow2CurrentLap: .word 0 # which cycles is carRow2 currently on, if cycle(lap) == speed, update car position
carRow3CurrentLap: .word 0 # which cycles is carRow3 currently on, if cycle(lap) == speed, update car position
retryMessage: .asciiz "Do you want to Retry?"
nextLevelMessage: .asciiz "Do you want to play the next level?"
gameFinishMessage: .asciiz "Congratulations! You have completed all levels of the game"