Update syntax of demo game.
Chris Pressey
4 years ago
46 | 46 | byte vic_border @ 53280 |
47 | 47 | byte vic_bg @ 53281 |
48 | 48 | |
49 | table[256] byte screen1 @ 1024 | |
50 | table[256] byte screen2 @ 1274 | |
51 | table[256] byte screen3 @ 1524 | |
52 | table[256] byte screen4 @ 1774 | |
53 | ||
54 | table[256] byte colormap1 @ 55296 | |
55 | table[256] byte colormap2 @ 55546 | |
56 | table[256] byte colormap3 @ 55796 | |
57 | table[256] byte colormap4 @ 56046 | |
49 | byte table[256] screen1 @ 1024 | |
50 | byte table[256] screen2 @ 1274 | |
51 | byte table[256] screen3 @ 1524 | |
52 | byte table[256] screen4 @ 1774 | |
53 | ||
54 | byte table[256] colormap1 @ 55296 | |
55 | byte table[256] colormap2 @ 55546 | |
56 | byte table[256] colormap3 @ 55796 | |
57 | byte table[256] colormap4 @ 56046 | |
58 | 58 | |
59 | 59 | buffer[2048] screen @ 1024 |
60 | 60 | byte joy2 @ $dc00 |
65 | 65 | |
66 | 66 | pointer ptr @ 254 |
67 | 67 | |
68 | table[256] word actor_pos | |
68 | word table[256] actor_pos | |
69 | 69 | word pos |
70 | 70 | word new_pos |
71 | 71 | |
72 | table[256] word actor_delta | |
72 | word table[256] actor_delta | |
73 | 73 | word delta |
74 | 74 | |
75 | 75 | byte button_down : 0 // effectively static-local to check_button |
76 | table[32] byte press_fire_msg: "PRESS`FIRE`TO`PLAY" | |
76 | byte table[32] press_fire_msg: "PRESS`FIRE`TO`PLAY" | |
77 | 77 | |
78 | 78 | byte save_x |
79 | 79 | word compare_target |