-
Notifications
You must be signed in to change notification settings - Fork 1
/
anim1.p8
39 lines (35 loc) · 1.33 KB
/
anim1.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
37
38
39
pico-8 cartridge // http://www.pico-8.com
version 27
__lua__
-- try animation
-- by apa64
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()
cls()
x0 = 10
y0 = 10
x1 = 100
y1 = 10
end
function _update()
y0 += 3
y1 -= 2
if (y0 > 120) then
y0 = 10
end
if (y1 < 10) then
y1 = 120
end
end
function _draw()
cls(black)
line(x0,y0,x1,y1,white)
end
__gfx__
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00077000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00700700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000