Match Heart Colour 500

Switch colour and collect hearts the same colour as your character.

If you miss a heart, the game is over. If you touch a heart that doesn't match your current colour, you lose.

A tiny TweetTweetJam-9 entry in 499 characters of code.

Controls:

  • Left/Right/Up/Down: move left/right/up/down
  • Z/X: switch between 4 colours to match.

Code:

_set_fps(60)h=0::s::x=64y=64s=0c=0p={}n=0m=15l=1?"\afed"
::_::cls(1)n-=.1?s,6
?h
if(n<0)d=rnd(2)\1add(p,{x=d*122,y=0,z=rnd(120),u=0,v=.5,w=.5-d,c=rnd(4)\1})m*=.99n+=m
b=btn()x=mid(x+(b&2)/2-(b&1),122)y=mid(y+(b&8)/8-(b&4)/4,123)b=btnp()\16c+=(b&2)/2-(b&1)c%=4for q in all(p)do
q.x+=q.u
q.y+=q.v?"♥",q.x,q.y,6+2*q.c
if(q.u==0and q.y>q.z)q.v=0q.u=q.w
if abs(x-q.x)<6and abs(y-q.y)<4do
if(c!=q.c)l=0
del(p,q)s+=1?"\acb"
end
if(q.x<-8or q.x>128)l=0
end?"웃",x,y,6+c*2
if(l<1)h=max(s,h)goto s
flip()goto _
StatusReleased
PlatformsHTML5
Rating
Rated 4.0 out of 5 stars
(1 total ratings)
AuthorSkyBerron
GenreAction
Made withPICO-8
TagsPICO-8, tweettweetjam

Leave a comment

Log in with itch.io to leave a comment.