-
Notifications
You must be signed in to change notification settings - Fork 7
/
sprites.go
66 lines (56 loc) · 1018 Bytes
/
sprites.go
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
package main
import "github.com/nsf/termbox-go"
const (
bulletSprite = "."
fgBullet = white
bgBullet = termbox.ColorBlack
playerSprite = ` /\
OOxxOO
OXOOXO`
playerSpriteWidth = 6
playerSpriteHeight = 3
fgPlayer = neonGreen
bgPlayer = termbox.ColorBlack
livesSprite = `⏣ `
alienSpriteWidth = 8
alienSpriteHeight = 4
ufoSpriteWidth = 9
ufoSpriteHeight = 3
fgUfo = magenta
bgUfo = termbox.ColorBlack
fgBarricade = neonGreen
bgBarricade = termbox.ColorBlack
barricadeSpriteWidth = 11
barricadeSpriteHeight = 5
barricadeSprite = ` xxx
xxxxxxx
xxxxxxxxxxx
xxx xxx
xxx xxx`
)
var (
smAlienSprite = [2]string{` xx
xOOx
xxxxxx
/\/\`, ` xx
xOOx
xxxxxx
\ /`}
mdAlienSprite = [2]string{` x x
xxOOxx
xxxx
/ \`, `
xxOOxx
x xxxx x
/ \`}
lgAlienSprite = [2]string{` xx
xOxxOx
xxxxxx
/||\`, ` xx
xOxxOx
xxxxxx
\||/`}
ufoSprite = ` xxxxx
xxoxOxoxx
## ##`
)