Skip to content

Craftsman0001/pixel-platformer-2d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ambre

Godot Engine GDScript Git Status License

Ambre is a 2D pixel-art action-platformer developed with Godot 4. Currently in the prototype phase, the project implements core platforming mechanics (running, jumping) and a combat system against basic enemies.

Note

Originally a personal initiative to create a 2D pixel-art platformer, this project has been integrated into my 2nd-year engineering project at Polytech Dijon (2025-2026).

Gameplay Screenshot

Table of Contents

  1. Features
  2. Controls
  3. Installation
  4. Project Architecture
  5. Credits & License

Features

  • Core Movement:
    • Smooth movement (Left/Right) with friction handling.
    • Jumping physics with gravity management.
  • Combat System:
    • Melee Attack: Player attack animation with specific hitbox toggling logic.
    • Enemy AI: Basic slime using patrol behavior with RayCasts to detect edges and walls.
  • Level Design:
    • Tilemap-based environment using a dedicated Tileset for ground and platforms.
  • Game Loop:
    • Death & Respawn: The player dies upon contact with a Slime or by falling off the map, triggering an automatic respawn after a short delay.

Controls

The game supports Keyboard controls.

Action Key
Move or A D
Jump Z or
Attack A

Installation

Note

You need Godot Engine 4 to edit or run the source code directly.

  1. Download the project:
    • Download the ZIP file via the green Code button.
  2. Import into Godot:
    • Open Godot 4.
    • Click "Import" and select the project.godot file in the folder.
  3. Run:
    • Press Play ▶️ on the main scene.

Project Architecture

The project follows a modular structure where resources are sorted by type:

📂 assets/

Contains all raw media files organized by category:

  • characters/: Spritesheets for the Player, ennemies and NPC's.
  • tilesets/ & background/: Graphics used to build the levels and environments.
  • decorations/ & loot/: visual elements for props and collectibles.
  • ui/ & audio/: User interface assets and sound effects.

📂 scenes/

Contains the Nodes and pre-fabricated objects (.tscn). This includes the Player, Slime, World (levels).

📂 scripts/

Contains all GDScript logic (.gd). The logic is separated from the scene files to keep the code modular (e.g., player.gd, slime.gd).

Credits & License

This project was created for educational and non-profit purposes. It is not intended for commercialization.

  • Code & Development: Nicolas Defour
  • Engine & Technology: Developed with Godot 4. The project focuses on mastering GDScript, the Node system, and 2D physics architecture.
  • Graphics Assets: Pixel Art assets retrieved for free from itch.io. All rights belong to their respective creators.

About

A 2D pixel-art platformer developed with Godot 4

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published