-
Notifications
You must be signed in to change notification settings - Fork 0
/
missile_2.bas
44 lines (38 loc) · 1.32 KB
/
missile_2.bas
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
rem Základy Batari BASICu
rem
rem Použito v článcích:
rem
rem Tvorba her pro Atari 2600 v Batari BASICu: úkol pro hardcode programátory
rem https://www.root.cz/clanky/tvorba-her-pro-atari-2600-v-batari-basicu-ukol-pro-hardcode-programatory/
rem
rem Tvorba her pro Atari 2600 v Batari BASICu: ovládání čipu TIA
rem https://www.root.cz/clanky/tvorba-her-pro-atari-2600-v-batari-basicu-ovladani-cipu-tia/
rem
rem Tvorba her pro Atari 2600 v Batari BASICu: standardní kernel a zvuky
rem https://www.root.cz/clanky/tvorba-her-pro-atari-2600-v-batari-basicu-standardni-kernel-a-zvuky/
playfield:
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
................................
................................
...XXXX....XXX.....XXX...XXXXX..
...X...X..X...X...X...X....X....
...XXXX...X...X...X...X....X....
...X.X....X...X...X...X....X....
...X..X...X...X...X...X....X....
...X...X...XXX.....XXX.....X....
................................
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
end
missile0x = 64
missile0y = 64
missile0height = 8
mainloop
NUSIZ0 = $30
COLUPF = 14
COLUP0 = $1E
if joy0up then missile0y = missile0y - 1
if joy0down then missile0y = missile0y + 1
if joy0left then missile0x = missile0x - 1
if joy0right then missile0x = missile0x + 1
drawscreen
goto mainloop