DOWNLOAD
LATEST RELEASE
Unpack it and run platformer
(platformer.exe on Windows); nothing to install. The
builds aren't code-signed, so Windows SmartScreen and macOS
Gatekeeper warn the first time. Each
release
lists SHA-256 checksums, or build it yourself.
WHAT'S INSIDE
12 LEVELS, 7 WORLDS
Grassland, desert, snow, farm, candy, factory and castle. Finish a level to unlock the next.
RUN, JUMP, CLIMB, SWIM
Hold to jump higher, climb ladders, swim through water and bounce off springs, enemies and moving platforms.
STOMP OR DODGE
Stomp walkers and bats. Keep clear of spiky walkers, spike balls, spikes and bottomless pits.
HIDDEN GEMS
Three gems tucked away in every level. The level select remembers which you found, and your best time and score.
KEYS & CHECKPOINTS
Coins, coin boxes, food and hearts, keys that open locked gates, and flags to restart from.
ONE FILE TO RUN
Plain C11 and raylib. All the art, sound and levels are built into the program.
SEE IT MOVE
FROST CLIMB
Ladders, ledges and a long way down.
SKY GARDEN
Moving platforms over a bottomless sky.
MENUS
MAIN MENU
Mouse, keyboard or gamepad, with matching button prompts.
LEVEL SELECT
Gems found, best time and score for every level.
SETTINGS
Five astronauts to pick from, saved between runs.
LEVEL COMPLETE
Time, score and gems, with new bests marked.
BUILD & PLAY
You need a C11 compiler, GNU Make, curl and
tar. If raylib 5.5 isn't installed,
make downloads and builds it for you.
On Debian or Ubuntu, install the X11 and OpenGL headers first:
sudo apt install libx11-dev libxrandr-dev \ libxinerama-dev libxcursor-dev libxi-dev \ libgl1-mesa-dev
On Windows, build from an MSYS2 MINGW64 shell with
make and mingw-w64-x86_64-gcc
installed.
# get the code git clone https://github.com/HilthonTT/platformer.c cd platformer.c # build and run make run # optimized build make BUILD=release # start at level 3, or play your own ./build/release/platformer 3 ./build/release/platformer my-level.txt
CONTROLS
- ←→AD
- Run
- SPACEZJK
- Jump (hold to jump higher), swim
- ↑↓WS
- Climb ladders; down drops through ledges
- ESCP
- Pause
- R
- Restart the level
- F11ALT+ENTER
- Toggle fullscreen
- GAMEPAD
- D-pad or stick, A to jump, Start to pause, Back to restart
MAKE A LEVEL
A level is a text file: a short header, a --- line,
then the map, one character per tile. The screen shows 15 rows,
so make a map at least that tall.
theme is one of grass,
sand, snow, farm,
candy, factory or
castle. The
built-in levels
use the same format.
title: My Level
theme: grass
---
$
===
P o o o ? w D
##################### ############
- #
- ground
- B
- block
- =
- one-way platform
- H
- ladder
- ^
- spikes
- ~
- water
- ?
- coin box
- L
- locked block (needs a key)
- !
- stops moving things (invisible)
- M
- moving platform, left/right
- V
- moving platform, up/down
- *
- decoration
- P
- player start (exactly one)
- D
- exit door (at least one)
- c
- checkpoint
- o
- coin
- $
- gem (up to 8)
- +
- heart
- k
- key
- f
- food
- S
- spring
- w
- walker (stompable)
- x
- spiky walker
- b
- bat (stompable)
- g
- spike ball