Godot 4 2D Game Development
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_51ab3167/2d-game-dev.
About this skill
Problem
Many 2D game projects become hard to maintain once scripts pile up: collision layers conflict, scene references break, movement depends on frame rate, and there is no reliable verification loop. This skill treats Godot 4.x + GDScript as the fixed stack and pushes development toward a runnable, screenshot-able, export-ready result.
How It Works
The core workflow is “verify after every system”: set up project.godot, directory conventions, and TileMapLayer levels; split player, enemy, bullet, and HUD into separate scenes; and use signal, autoload, CharacterBody2D, and Area2D to keep coupling low. It also provides templates for platformer controls, top-down movement, enemy AI, pickups, damage, pause, audio, art import, and AnimatedSprite2D, then asks for headless runs and screenshot checks.
Boundaries
It fits pixel-style 2D games, prototype validation, and publishing preparation. It does not replace Godot documentation for 3D, networking, advanced animation state machines, or large multiplayer architecture. When using free assets, you still need to verify each license and commercial scope.
Use Cases
- Generate a runnable Godot 4 2D project scaffold from an empty folder using hand-written project.godot and .tscn files.
- Build a platformer prototype with CharacterBody2D controls, collision layers, pickups, and damage areas, then verify each system.
- Add a HUD, pause menu, BGM, SFX, and AnimatedSprite2D animation to a pixel game, then screenshot-check occlusion.
- Prepare a Web export target by checking pixel rendering, camera bounds, TileMapLayer collisions, and package size.
Best For
- Indie game developers who need to turn 2D gameplay ideas into playable prototypes quickly.
- Learners completing Godot 4 and GDScript course projects or portfolio mini-games.
- Automation engineers who want agents to run Godot headless and screenshot-check 2D scenes.
- Small content creators preparing pixel games for itch.io or Web publication.
Related Skills
Guides Java Spring Boot backend development across REST APIs, data access, security, microservices, testing, deployment, and troubleshooting.
A systematic code error fixing skill that follows a five-step workflow: Reproduce, Isolate, Understand, Fix, Verify, to help developers resolve code errors.
Restores Lanhu designs to target framework code using schema JSON, design tokens, and image assets.
Automatically detects engineering or competition code, analyzes bugs, vulnerabilities, algorithm complexity, and edge cases, then produces risk-level findings with before/after fixes.