PicoPicoGameEngine

Quick Links

ピコピココード

g=ppgraph
floor=math.floor
B=ppscreen:size()
Bw=B.width
Bh=B.height

tex=pptex:load("main.png")

t=1
n={2,3}
x=160-16*4
y=200

function drawbg()
 g:fill(B,g.cyan)
 g:fill(0,100,Bw,Bh-100,g.green)
end

function start()
 drawbg()
 t=t+0.1
 if t>=#n+1 then
   t=1
 end
 g:pivot(x,y)
 g:scale(4)
 g:put(x,y,n[floor(t)],tex)
 g:scale(1)
end