hive.saysi.org

 

PICO-8 Character Design

PICO-8 examples
-- flipbookery
-- by @mrhoatzin & students

dude={
 frames={0,2,4,8,10,10,10,10,10,8,6,4,0},
 sfx={[3]=1},
 w=2,
 h=2,
 x=63,
 y=63,
 scale=4
}

function _draw()
 cls(13)
 local frame=flipbook(dude.frames, dude.sfx)
 sspr(frame%16*8,frame\16*8,
  dude.w*8,dude.h*8,
  dude.x-dude.scale*4*dude.w,dude.y-dude.scale*4*dude.h,
  dude.scale*8*dude.w,
  dude.scale*8*dude.h
  )
end

fr=10
function flipbook(a,b)
 local index=flr((t()*fr)%#a+1)
 --print(index,10,10,8)
 if b and b[index] and stat(46)~=b[index] then sfx(b[index],0) end
 return a[index]
end

Things to try:

2021 PICO-8 Practicums

PICO-8 tutorials page is acessible from the main menu. ↗︎↗︎↗︎

PICO-8 examples PICO-8 examples PICO-8 examples

MINETEST!

Attention WAM HIVE students. As shared in class please install the Minetest program if you have not already done so.

If any trouble or assistance is needed or join us on Zoom next Thursday for HIVE Studio hours: (Thursday 6–9pm — bit.ly/HIVEtimes) or just send an email and we can schedule a time (ned@saysi.org). Thanks and looking forward to you joining us in minetest!

Older articles →