This is a 2D minigolf arcade game created using JavaScript to run on the Arcade API (not a web-browser). It has it's own UI system build completely from scratch and a level editor and tester.
- GameBase - a module I created to ease the process of making things within the API. This includes:
- Basic text rendering and font support (using a text spritesheet)
- UI elements with click, hover and drag support.
- Draw and click ordering, so elements can be placed atop each-other.
- Buttons with hover events and callbacks
- Text entries with text selection and modification
- Number entries with automatic validation
- Cursor rendering with different types of cursors
- Dropdown elements with automatic closing
- Scroll boxes with automatic resizing
- Console system
- Box2D (a 2D physics engine) written in JS. I didn't write this, but I don't remember the author. I decided to retire my own 2D physics.
- Minigolf level editor. Accessible by pressing
¬
and typingleveledit
. The level editor contains:- Automatically connecting grass blocks
- Ball pushers
- Moving platforms (in dev)
- Download the Arcade API from here. Download the one that supports JavaScript at the bottom of the post, otherwise this won't work.
- Unpack the folder and save it somewhere
- Create a new folder inside the
projects
folder calledgamebase
. - Place the contents of this repository into the
gamebase
folder. You should have a file structure like so:PATH_TO_ARCADE/projects/gamebase/main.js
- Open a command prompt inside the arcade api root folder (where you can see the
projects
folder andtool.exe
) - Type
tool gamebase
. And voila, you're done. You can open the level editor using¬
and typingleveledit
. There's currently no gameplay aside from the editor.