Algorithm-Arena / weekly-challenge-11-mini-code-golf

3 stars 0 forks source link

Submission - mini mini golf (23393 bytes) #3

Open evgenyvinnik opened 5 months ago

evgenyvinnik commented 5 months ago

Code: https://github.com/evgenyvinnik/mini-mini-golf (everything is actually in this file: https://github.com/evgenyvinnik/mini-mini-golf/blob/main/index.html)

Demo: https://evgenyvinnik.github.io/mini-mini-golf/

Video: https://youtu.be/HME9b2U3xfk

Notes: this submission signifies a new low for me: instead of researching how to make a mini-golf game from scratch, I have researched existing mini-golf projects and then I have researched the ways on how to make them smaller.

I have found this amazing game: https://github.com/Antix-Development/Putt-Till-You-Die/, which had very nice visuals and convenient controls for being such a small game. Its license was very permissive, so I just copied everything and then make it shittier to win some kilobytes. I have cut all the sounds and sound effects, reduced variable names etc, and as a result my minified version runs 22.8 KB vs original's 23.3 KB.