forked from picolove/picolove
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scaletest.p8
109 lines (104 loc) · 7.32 KB
/
scaletest.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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
pico-8 cartridge // http://www.pico-8.com
version 32
__lua__
function _init()
screen = 0
ssprexample = {
x=32,
y=32
}
i = 0
end
function _update()
i += 1
if btnp(4) then
screen += 1
end
if screen == 2 then
if btn(0) then
ssprexample.x -= 1
end
if btn(1) then
ssprexample.x += 1
end
if btn(2) then
ssprexample.y -= 1
end
if btn(3) then
ssprexample.y += 1
end
end
end
function _draw()
cls()
color(1)
rect(0,0,127,127)
if screen == 0 then
color(8)
print("top left!",0,0)
print("top right!",90,0)
print("bottom left!",0,123)
print("bottom right!",78,123)
elseif screen == 1 then
color(8)
print("spr is fun!",45,64)
spr(1,1,1)
spr(2,119,1)
spr(3,1,119)
spr(4,119,119)
elseif screen == 2 then
color(8)
print("so is sspr!",43,0)
print(ssprexample.x)
print(ssprexample.y)
spr(7,64,64,4,4)
sspr(40,0,16,16,64,64,ssprexample.x, ssprexample.y)
elseif screen == 3 then
color(8)
print("wow, map support!")
map(0,0,sin(i/100)*4,sin(i/50)*4,16,16)
end
end
__gfx__
000000008888888ee8888888ee000000000000ee0000088888800000111111111111111111111111111111110000000000000000000000000000000000000000
000000008200000ee000008880000000000000080008822222800000100010001000100010001000100010000000000000000000000000000000000000000000
00700700800000000000020880000000000000080082222222800000100010001000100010001000100010000000000000000000000000000000000000000000
00077000800000000000000880000000000200080822222222800000100010001000100010001000100010000000000000000000000000000000000000000000
00077000800000000000000880020000000080080822222222800000111111111111111111111111111111110000000000000000000000000000000000000000
00700700800000000000000880800000000008088222222222888888100010001000100010001000100010000000000000000000000000000000000000000000
0000000080000000000000088800000ee00000888222222222222228100010001000100010001000100010000000000000000000000000000000000000000000
00000000ee000000000000ee8888888ee88888888222222222222228100010001000100010001000100010000000000000000000000000000000000000000000
00000000000000000000000000000000000000008222772222777228111111111111111111111111111111110000000000000000000000000000000000000000
00000000000000000000000000000000000000008222222222222228100010001000100010001000100010000000000000000000000000000000000000000000
00000000000000000000000000000000000000008222227772222228100010001000100010001000100010000000000000000000000000000000000000000000
00000000000000000000000000000000000000008822272227222280100010001000100010001000100010000000000000000000000000000000000000000000
00000000000000000000000000000000000000008822222222222280111111111111111111111111111111110000000000000000000000000000000000000000
00000000000000000000000000000000000000008882222222222800100010001000100010001000100010000000000000000000000000000000000000000000
00000000000000000000000000000000000000008088822222288008100010001000100010001000100010000000000000000000000000000000000000000000
00000000000000000000000000000000000000008888888888800088100010001000100010001000100010000000000000000000000000000000000000000000
00000000000000000022220000000000000000000000000000000000111111111111111111111111111111110000000000000000000000000000000000000000
00000000000000000200002000000000000000000000000000000000100010001000100010001000100010000000000000000000000000000000000000000000
00000000000000002008800200000000000000000000000000000000100010001000100010001000100010000000000000000000000000000000000000000000
2222222200000000208ee80200000000000000000000000000000000100010001000100010001000100010000000000000000000000000000000000000000000
2800000200222200208ee80200000000000000000000000000000000111111111111111111111111111111110000000000000000000000000000000000000000
20000002002002002008800200000000000000000000000000000000100010001000100010001000100010000000000000000000000000000000000000000000
20000002002082000200002000000000000000000000000000000000100010001000100010001000100010000000000000000000000000000000000000000000
22222222002222000022220000000000000000000000000000000000100010001000100010001000100010000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000111111111111111111111111111111110000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000100010001000100010001000100010000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000100010001000100010001000100010000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000100010001000100010001000100010000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000111111111111111111111111111111110000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000100010001000100010001000100010000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000100010001000100010001000100010000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000100010001000100010001000100010000000000000000000000000000000000000000000
__map__
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000005060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000015160000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000020200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000220200100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000220021210022000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000021210000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000020200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000