a simple game to play with the kids
Install the GCC toolchain via Mingw-w64.
Install XCode or something, you'll figure it out.
sudo apt install xorg-dev libgl1-mesa-dev
Run from the repository directory so the game can find its assets:
go run ./cmd/fam
- Enter adds a keyboard player. A/D or the arrow keys move, and Space jumps. A quick tap jumps roughly 125 units; hold Space throughout the ascent to reach roughly 188 units. Releasing restores normal gravity.
- Controllers use the left stick to move and the first button to jump. Reconnecting a controller keeps its existing player.
- E spawns fruit and Q spawns a bomb at the mouse. E, Q, Enter, and F act once per press, not on key repeat.
- F toggles fullscreen. Escape opens or closes the pause menu; spawning and editing are disabled while paused.
- Left-drag an object to move it, or drag empty space to draw a platform. Right-click a platform to delete it.
- Loading a level replaces the platforms without removing players or other objects. Reset objects reloads the initial level and removes keyboard players, fruit, and bombs.
go test ./...
go test -tags debug ./...
The debug build enables physics assertions. Sprite draws are queued until
SpriteRenderer.Flush; flush before switching to another renderer to preserve
layering. Static platform geometry is cached until a platform is added, removed,
or a level is loaded.
- up to 16 (!) controllers supported
- imgui powered pause menu (hit esc)
- bananas make you grow bigger
- bombs deflate you
- kid friendly, no death or shooting
- keyboard can spawn objects and drag things around
- works on windows, mac, and probably linux
