My second ever game, made for TweetTweetJam 11, where the entire game must fit in 500 characters of code.

Built with Fennel, Lua, Love2D, and L5.

How to play

Hit space exactly when the upper number is the same as the goal time (lower number) and you win!

The Code (499 chars)

The full game source, proving it fits under the limit:


(require :L5) (fn f [] (size 640 480) (textSize 100)) (var c 1440) (var k 0) (fn g [i] (let [d (floor (map i 0 c 0 24))] (: "%02d:%02d" :format d (- i (* d 60))))) (var e false) (var a false) (fn j [] (when (= key "space") (set e (not e)))) (var b (floor (random 0 c))) (fn h [] (when (and (not a) (not e)) (set k (+ k 1))) (when (>= k c) (set k 0)) (background 0 0 0) (text (g k) 175 150) (text (g b) 175 250) (when (and e (= b k)) (set a true)) (when a (text "YOU WIN" 100 400))) {:s f :d h :k j}
  

How I Built It

Hitting 500 characters is genuinely hard. I wrote the game in full, readable Fennel first, then built a custom minifier to automatically shrink variable names and strip whitespace down to the wire.

Originally there was also a sunrise inspired background color animation, but I dropped it for space.

Source Code

Full source including the minifier is available at:
git.travisshears.com/travisshears/time_guesser

Published 10 days ago
StatusPrototype
PlatformsHTML5
Authortravisshears
GenreAction
Made withLÖVE
ContentNo generative AI was used

Leave a comment

Log in with itch.io to leave a comment.