JS13KGames entry for 2020, theme is "404 THEME (NOT) FOUND".
With planet Figadore ravaged by the Regolith virus, all sporting events have been cancelled. Determined to play a round of golf, Fred sneaks on to the "Coding Golf" island golfcourse where he works, to play a game.
Your mission is to help Fred get the lowest score possible on each hole so that he can win the "Broken Links" championship trophy.
Use the left/right cursor keys to rotate the direction the ball will be struck in, then select a golf club using the up/down arrows to adjust the range. Once you're happy, press SPACE/ENTER to start the swing meter. Then pressing SPACE/ENTER a second time will select a strike power (as a percentage), the meter will now move back towards 0. You then need to press SPACE/ENTER a final time as close to 0 as you can to prevent a hooked or sliced shot.
Alternatively you can use a mouse to play, use the scroll wheel will rotate the ball direction, then click for each step of the swing meter operation. You still need to use up/down cursors to change clubs.
A scoreboard is shown after each hole is completed. There are 18 holes in total. With added OS13k trophies.
- 2D top down golf game
- Full screen, but landscape with target 720p (16:9 aspect ratio)
- Multi-layered canvas
- Reasonably realistic physics affecting ball movement (Wind / Gravity / Friction)
- Gamepad support
- Musical songs are "The Chrysanthemum" by Scott Joplin (used in BBC Micro game Repton 2) and "Black & White Rag" by George Botsford (used in BBC Micro game Repton)
- 8-bit tiny font (Repton inspired)
- Simple timelines
- Wichmann-Hill pseudorandom number generator inspired by Sploosh Kaboom minigame in The Legend of Zelda: Wind Waker on Nintendo GameCube
- Trophies via OS13k
- 3D trophy model creation using "Solids of Revolution" method (seen in Beebug magazine Vol.8 No.7 December 1989)
- Ubuntu OS
- vim text editor (also gedit a bit)
- meld visual diff/merge
- MeshLab 3D model viewer
- YUI Compressor JS/CSS compressor
- Google closure compiler
- advzip (uses 7-Zip deflate to compress further)
- Fix gamepad support
- Play the course in 3D rather than top-down
- Investigate using WebGL for rendering
- Choose player avatar before starting
Using some assets from Kenney.nl "Minigolf Kit" (Creative Commons Zero, CC0 license).
Using "The Chrysanthemum" by Scott Joplin (in the public domain since it was published in 1904 - before 1924).
Using "Black & White Rag" by George Botsford (in the public domain since it was published in 1908 - before 1924).
Using code inspired by following a tutorial from @Javidx9.