this post was submitted on 03 Aug 2024
26 points (100.0% liked)

Programming

17446 readers
172 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 1 points 3 months ago (1 children)

While impressive, a minifier can bring it down to 1 line of JS! I do like that this can function as a reference for making simple canvas-based games though.

[โ€“] monica_b1998 1 points 3 months ago

you're technically correct, but the number of lines is mentioned to show the approximate complexity of the code. 200 lines means approx 200 instructions (I'm not counting empty lines, comments etc.) and that gives everyone a pretty good idea of how (un)complicated the game is.