A 2D platformer built with SFML, featuring smooth controls, obstacles, and enemies. Jump, run, and explore different levels!
- Classic platformer movement (jumping, running)
- Animated character
- Simple enemy AI
- Collectibles and obstacles
- Colorful pixel-art style
- ← / → Arrow Keys - Move left/right
- ↑ Arrow Key - Jump (works only when grounded)
- Spacebar - Fire current weapon
- 1-4 Keys - Quick weapon switch:
- 1 - Pistol
- 2 - Minigun
- 3 - Shotgun
- 4 - Rifle
- Coins (C) - Auto-collect on contact (+10 coins)
- Medkits (H) - Auto-heal on contact (+25 HP)
- Invincibility Sphere (I) - Grants temporary invulnerability
- Speed Berry (S) - Temporary movement speed boost
-
On death (HP = 0) player automatically respawns:
- Full health restoration
- Return to starting position
- Reset all temporary effects
-
Moving Platforms (L/U) - Automatically traverse levels - just
- C++ Compiler with C++11 support (g++/clang)
- SFML 2.5.x or newer (Graphics and Window modules)
- CMake (optional, for build automation)
#include <SFML/Graphics.hpp> // Main graphics functionality
#include <SFML/Window.hpp> // Window management
#include <SFML/System.hpp> // Core system functionalitysudo apt-get update && sudo apt-get install -y xvfb libsfml-dev libgtest-dev