pantin

Pim, a game made with pantin

A small platformer in Godot whose every picture comes from pantin. The hero, the ground, the beetles, the grass and the gears are pantin projects, built into bundles by pantin build and played by the node PantinCharacter of the Godot runtime. Nothing is drawn elsewhere.

Play it The game in the repository

Pim running through the meadow, a beetle, a bush and a flower beside it

The hero

Seven animations, one graph of states

Pim is a small robot of nine bones with an antenna on a spring. Its animations (idle, run, jump, flip, fall, land, hurt) are played by its graph of states, made as the Flow workspace makes them: the game tells it only how fast it runs, whether it stands or rises, and fires jump, flip or hurt. The crossfades, the swing of the antenna and the steps it tells come from the project.

Pim in the cave, a beetle and a crystal behind it

The enemies

Boxes to fight with

Pim has a body that can be bitten and feet that squash; a beetle has a bite and a back. They are the boxes of the Hit workspace, read from the bundle by get_active_boxes() and tested against each other every frame. Land on a back and the beetle is squashed; walk into a bite and a life is lost. No collision shape of Godot is drawn for them.

Pim jumping in the factory over a beetle

Three levels

A meadow, a cave, a factory

Each level has its own ground, platforms, back and decor, each a pantin project: crystals that glow, gears that turn. Coins spin and burst when taken, and the flag waves at the end of the level, leading to the next.

Pim at the flag at the end of the meadow, the grass along the ground

A living world

Grass that answers the hero

Dozens of tufts of grass sway along the ground, each a pantin project with a spring on every blade; when Pim runs through one, the game fires its trigger touch and its graph rustles it. Bushes shake, flowers turn to the hero, platforms squash when it lands on them, and a puff of dust is left at each step it tells.

Play it

From the repository

tools/build_game.sh --release   # the library, and a bundle for each project of art/
godot --path games/platformer   # ← → to run, Space to jump, again in the air to flip

The pictures are the projects of games/platformer/art, made through the MCP of pantin. The first time the game is opened in the editor of Godot, reload the project (Project › Reload Current Project) so that it loads the library. A test plays the three levels in Godot, headless, at each pull request.