Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
A jam submission

Prime TimeView game page

A maths puzzle game written in 500 characters for #TweetTweetJam 10
Submitted by dredds — 5 days, 11 hours before the deadline
Add to collection

Play game

Prime Time's itch.io page

Character Count
499

Game Code
u=mget i=mset b=mid h=rnd f=15l={}d=1a=0p=1e=4n=4repeat if a<1do d+=1reload()i(e,n,1)for e=2,d do if(ord("て(⌂き ⌂ (☉🐱⁸²²",e\8+1)&1<<e%8>0)o=h(f)\1r=h(f)\1i(o,r,e)l[e]={x=o,y=r}a+=max(1-d%e)
end end cls(d%2)?d,9
?"웃",e*8,n*8
for n,e in next,l do?n,e.x*8,e.y*8,3
end flip()s=btnp()*12\5/4if s>0do i(e,n)e=f&e+cos(s)n=f&n+sin(s)i(e,n,1)for n,e in next,l do if(u(e.x,e.y)==1)p=max(1-d%n)l[n*p]=c a-=p else o=f&e.x+h(3)\1-1r=f&e.y+h(3)\1-1if(u(o,r)<1)i(e.x,e.y)i(o,r,n)e.x=o e.y=r
end end until p<1or d>99

Leave a comment

Log in with itch.io to leave a comment.

Comments

Submitted

Woah, I *knew* I should've paid more attention in school
...and in that 1997 movie "Cube" (one of my favs 😉)
Actually, I was shocked at how any factors I remembered while playing your fun (+tiny!) entry.
At first, I thought the hardest bit would be determining the right numbers.
Then I quickly realised that the jittery movements made it a mini-game to avoid the "wrong" numbers.
Very clever mix of design elements.
Cool entry, nice one! 👍

Developer

Thank you.

Submitted

This is really neat! Impressive that you've squeezed in the necessary logic for this!

Developer

I managed to find space for another 4 characters! So I have been able to add back colour.

Submitted

The logic on this is so cool! I love the "prime numbers < 100" string you posted on mastodon

Developer

Thank you. It was very hard to implement both the logic required by the game and an attractive presentation. I found a balance eventually, but presentation had to take a back seat.