-
Notifications
You must be signed in to change notification settings - Fork 1
/
sprite1.p8
36 lines (30 loc) · 1.5 KB
/
sprite1.p8
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
pico-8 cartridge // http://www.pico-8.com
version 27
__lua__
-- draw a sprite!
-- by apa64
-- consts
left,right,up,down,fire1,fire2=0,1,2,3,4,5
black,dark_blue,dark_purple,dark_green,brown,dark_gray,light_gray,white,red,orange,yellow,green,blue,indigo,pink,peach=0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
function _init()
x=60
y=60
end
function _update()
x = (x + (rnd(8)-4)) % 128
y = (y + (rnd(8)-4)) % 128
end
function _draw()
cls(black)
spr(1,x,y)
end
print "sprite1"
__gfx__
00000000004440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000c6c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700006660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000006660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000006060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000005050000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000