Fxgl Topdown

Build a top-down 2D game in FXGL — disable gravity for the physics world, implement 8-direction normalized movement, bind the camera to follow the player with world bounds, aim and fire projectiles toward the mouse cursor, spawn a melee attack hitbox in the facing direction, trigger NPC interactions on proximity, handle area/room transitions at screen edges, display a minimap with entity dots, and load Tiled TMX tile-based worlds. Use this skill when building a Zelda-style adventure, twin-stick shooter, top-down RPG, arena shooter, or any bird's-eye-view 2D game.

JohannesRabauer Updated

File contents

JohannesRabauer/fxgl-skills/tree/main/skills/fxgl-topdown commit 3e1fdeabda

Frequently asked questions

npx skillmds@latest add johannesrabauer/fxgl-topdown