-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphics.asm
executable file
·92 lines (60 loc) · 2.43 KB
/
graphics.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
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
; /////////////////////////////////////////////////////////////////////////////
; Znake (ZX Spectrum 48K)
; -----------------------------------------------------------------------------
; graphics.asm
; -----------------------------------------------------------------------------
; Copyright (C) 2016, Chris Wyatt
; All rights reserved
; Distributed under the Apache 2 license (see LICENSE)
; /////////////////////////////////////////////////////////////////////////////
graphics:
; blank (used to clear parts of the screen)
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
; snake head up
db 0x00, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e
; snake head right
db 0x00, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0x00
; snake head down
db 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x00
; snake head left
db 0x00, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x00
; snake body up/down
db 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e
; snake body left/right
db 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00
; snake body up-right / left-down
db 0x00, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7e
; snake body down-right / left-up
db 0x7e, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x00
; snake body down-left / right-up
db 0x7e, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0x00
; snake body up-left / right-down
db 0x00, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0x7e
; snake tail up
db 0x00, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e
; snake tail right
db 0x00, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0x00
; snake tail down
db 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x7e, 0x00
; snake tail left
db 0x00, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x00
; food
db 0x00, 0x18, 0x18, 0x66, 0x66, 0x18, 0x18, 0x00
; Border top
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00
; Border right
db 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40, 0x40
; Border bottom
db 0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
; Border left
db 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02
; Border top-right
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x40
; Border bottom-right
db 0x40, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
; Border bottom-left
db 0x02, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
; Border top-left
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x02
; Menu cursor
db 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff