Coder Social home page Coder Social logo

js13k-2020's Introduction

js13k-2020

JS13KGames entry for 2020, theme is "404 THEME (NOT) FOUND".

Coding Golf - Broken Links

Coding Golf - Broken Links

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.

Stuff I managed to add

Tools used

Stuff I'd have done with more time

  • Fix gamepad support
  • Play the course in 3D rather than top-down
  • Investigate using WebGL for rendering
  • Choose player avatar before starting

Attribution of assets and code tutorial

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.

js13k-2020's People

Contributors

picosonic avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

js13kgames

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.