-
Notifications
You must be signed in to change notification settings - Fork 1
/
titles.asm
35 lines (34 loc) · 1.45 KB
/
titles.asm
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
showTitles:
ld de,titleTxt
call print
; wait until the user lets go of the stick/buttons
wait_stickup:
in a,($1)
cp 0
jp nz ,wait_stickup
; now accept input
wait_input:
in a,($1)
and $10 ; should have 16 in a
cp $10 ; do we have 16 in a?
jp nz,wait_input
ret
titleTxt:
db $1B, "[1;37;40m", " - = Z o m b i e s ! = -\r\n\r\n"
db $1B, "[2;37;40m", " A turn based strategy game\r\n\r\n"
db $1B, "[1;34;40m", "RC2014 version (c)2020 James Grimwood\r\n"
db $1B, "[1;34;40m", " https://ncot.uk - @ncot_tech\r\n\r\n"
db $1B, "[1;33;40m", "Characters\r\n"
db $1B, "[1;31;40m", " @ - You! Z - Zombie\r\n"
db $1B, "[1;31;40m", " # - Swamp % - Quicksand\r\n\r\n"
db $1B, "[1;33;40m", "Objective\r\n"
db $1B, "[1;31;40m", "Survive by luring the zombies into the quicksand.\r\n"
db $1B, "[1;31;40m", "Zombies will move in straight lines towards you.\r\n"
db $1B, "[1;31;40m", "Zombies will eat you; do not fall into the quicksand or\r\n"
db $1B, "[1;31;40m", "swamp otherwise you will drown!\r\n\r\n"
db $1B, "[1;33;40m", "Controls\r\n"
db $1B, "[1;34;40m", "Requires RC2014 Joystick input\r\n"
db $1B, "[1;34;40m", "Up/Down/Left/Right to move.\r\n"
db $1B, "[1;34;40m", "Fire to stand still.\r\n"
db $1B, "[1;34;40m", "Zombies always take one step after your go.\r\n\r\n"
dz $1B, "[1;33;40m", "Press Fire to play!"