A little game I made with pico 8 for the TweetTweet jam 2 , the point was to code a game using only 560 characters , the point of this game is to kill enemy with your sword , to find the 4 fragment of the Tetraforce , if your character , the green dot , get touched , he die and you have to restart the game.

Heres the source code :

x=64
y=x
s=0
t=0
u={}v={}w={}
for i=1,33 do
u[i]=rnd(127)v[i]=rnd(127)end
function _draw()cls()t=0
if(btn(➡️))x+=1
if(btn(⬅️))x-=1
if(btn(⬆️))y-=1
if(btn(⬇️))y+=1
line(x,y-8,x,y,6)
for i=1,33 do
d=u[i] e=v[i]
if w[i]!=1 then
u[i]+=rnd(2)-1
v[i]+=rnd(2)-1
end
if(e>128)v[i]=1
if(e<0)v[i]=127
if(d>128)u[i]=1
if(d<0)u[i]=1  
if flr(d)==x and(e>=y-9 and e<y) then
u[i]=-9 v[i]=-9 w[i]=1 end
if(flr(d)==x and flr(e)==y) stop()
if(w[i]==1 and(i==12 or i==21 or i==23 or i==32))then t+=1 pset(i/10,i%10,9)end
pset(d,e,8)end if(t>=4)print("win",52,54,9)
pset(x,y,11)end

StatusReleased
PlatformsHTML5
Rating
(1)
AuthorPordrack
Made withPICO-8
TagsPICO-8

Leave a comment

Log in with itch.io to leave a comment.