A standalone Pygame prototype for an elemental restoration platformer.
The working title is Lumentera: Reclaim the Light. Lumentera is the living land of Lume, an ancient light-resource now being extracted by MarrowWorks after Prince Pomelo broke his pledge of stewardship.
Prince Pomelo was sworn to protect the old balance, but he sold extraction rights for oil, gold, silver, and sacred Lume. MarrowWorks machines now strip the land, poison its roots and waters, and dim the light that keeps the four kingdoms alive.
The player takes the form native to each elemental world and restores the balance one kingdom at a time:
Progression is tier-based: the player clears Level 1 in each world before the Level 2 tier opens, then does the same for Level 3. Each world grants and later upgrades its own elemental discipline.
The prototype is a Pygame side-scroller with:
main.py is only an entrypoint. The implementation is split by responsibility:
settings.py: constants, colors, asset paths, hero, world, level, and element definitions.assets.py: sprite loading and PlayerSprites.sound.py: procedural sound bank.entities.py: player, enemies, pipes, restoration objects, spells, particles, banners.level.py: level/scenery construction, reset helpers, pipe helpers, enemy collision handling.rendering.py: background, hills, platforms, nature layers, HUD, world start, goals, underground room.game.py: main game loop, state transitions, input handling, progression, and orchestration.main.py: calls game.main().python -m venv .venv
.\.venv\Scripts\python -m pip install -r requirements.txt
.\.venv\Scripts\python main.py
Or use:
.\run.bat
Enter / Space to continue or start.Left / Right or A / D to cycle available worlds.I: toggle Invincible on story/select screens.M: toggle sound.F9: debug unlock all current elements.A / Left: move left.D / Right: move right.Space / W: jump.Space while airborne after Air: double jump, then hold to glide.Down while airborne after Earth: Earth pound.Up after Water: rain cloud.Ctrl after Fire: fire projectile.Down: enter the surface pipe when standing on top of it.D / Right: return from underground when pressing into the right-wall exit pipe.R: restart.Esc: quit.This folder includes the sprite frames and generated world assets required by the prototype:
assets/sprites/tree_hero_framesassets/sprites/mushroom_hero_modern_framesassets/sprites/winged_turtle_modern_framesassets/sprites/wolf_hero_framesassets/sprites/extractor_workerassets/sprites/restorationassets/sprites/environmentassets/sprites/environment/{water,air,fire}assets/sprites/natureassets/sprites/nature/{water,air,fire}assets/sprites/hudassets/sprites/effectsGenerated source sheets and previews are kept under tmp/imagegen and tmp/*_screens as a development paper trail.
For a quick syntax check:
.\.venv\Scripts\python.exe -m py_compile main.py settings.py assets.py sound.py entities.py level.py rendering.py game.py
A separate four-world spike tests a deterministic Rust guest plus a JS hypervisor
(host-fed sprites, live theme swaps, WebAudio, fixed-step loop). See
docs/rust-wasm-spike.md. It does not replace the
Pygame build.
python3 tools/build_rust.py
python3 tools/serve_rust.py # http://localhost:9001/rust/web/