Getting things ready…
Getting things ready…
coin: 0
Section B3 · Games
A 2D pixel-art platformer starring a cat, built in Godot 4.4 as my BCA final project. It plays in the browser on desktop or phone.
“Run, jump, dash, and mind the slimes.”
CatDash is a side-scrolling platformer: a cat runs, jumps and dashes through tile-based levels, collects coins for score, and dodges spikes, patrolling slimes and bottomless kill zones on the way to the exit that loads the next level.
The levels are built on a TileMap with moving platforms, and the world sits in front of six layers of parallax background so the scene has depth as the camera follows the player. A game manager tracks the score on a pixel-font HUD, and background music runs as an autoload so it keeps playing across level changes.
It was made to be played anywhere. The project exports to WebAssembly and runs in the browser, and on-screen touch controls appear on phones alongside keyboard input on desktop, using the mobile renderer with pixel-perfect texture filtering.
Design & programming: Youbal Lakandri · Engine: Godot 4.4 · Art & audio: [asset credits]
CatDash itself, exported from Godot to WebAssembly and running in the page.
The real game, exported from Godot to WebAssembly. Click into it first; arrow keys / A-D to move, space to jump.
A debug build of one level, re-created for this page with the collision layer switched on: bodies that block, trigger areas that fire signals, coins that remove themselves, and the ray a slime uses to turn at a ledge. Walk into things and read the log.
signals — newest first press play, then walk into things…
A simplified re-creation for this page, with node names following CatDash's scenes. The real game is in the frame above.
Platformers live or die on movement. The player is a physics body driven every frame: gravity pulls, input sets horizontal speed, jump only fires from the ground, and the sprite flips and swaps animation to match what the body is doing.
EVERY physics frame:
IF not on floor: velocity.y += gravity * delta
IF "jump" pressed AND on floor: velocity.y = JUMP_VELOCITY
direction = axis("left", "right") # keyboard or touch buttons
velocity.x = direction * SPEED IF direction ELSE decelerate to 0
sprite.flip_h = direction < 0
animation = "jump" IF airborne ELSE ("run" IF moving ELSE "idle")
move_and_slide()Each level is a scene composed from reusable pieces: coins that add to the score, spikes, slimes and kill zones that reset the player, moving platforms, and a next-level trigger. Because every piece is its own scene, building a new level is mostly placing parts, not writing code.
The game is exported for the web and hosted on Netlify, so anyone can play it from a link. Touch controls are a separate UI scene layered over the game, and mouse input can stand in for touch while testing on desktop.
The Godot project is configured for pixel art and for phones. The renderer is the mobile one, the default texture filter is nearest so sprites stay crisp instead of blurring when scaled, and the window uses the canvas-items stretch mode and is not resizable, so the game keeps its pixel grid at any screen size. Music is an autoloaded scene, which is why the soundtrack does not restart when a level changes. Jump is bound to Space and W, and left and right to A and D, as named input actions that the touch buttons also trigger.
The main level scene is built from 81 nodes: one TileMap using a TileSet with eight atlas sources (the ground, spikes and decoration tiles), eight instanced sub-scenes for reusable pieces, two animation players with four animations, a world-boundary shape that catches a fall, and a label for the score. The coin is its own scene with its own script.
STACK
The languages and tools this project is built with.
Libraries & tools