Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scarfy Platformer Game with Enemy

A simple 2D platformer game built using raylib, featuring:

  • A playable character (Scarfy) with animation and jumping mechanics
  • Static platforms
  • An enemy that moves and shoots projectiles

📦 Requirements

  • C compiler (e.g., GCC)
  • raylib installed
  • make (optional, for easier compilation)
  • Assets:
    • resources/scarfy.png
    • resources/soundEffect/singleFootstep.mp3
    • resources/soundEffect/singleFootstep2.mp3

🛠️ How to Build & Run

Linux/macOS (with Makefile)

make
./scarfy_game

Windows (Command Prompt)

gcc main.c -o scarfy_game -lraylib -lopengl32 -lgdi32 -lwinmm
scarfy_game.exe

🎮 Controls

  • LEFT / RIGHT Arrow : Move Scarfy left or right
  • SPACE / UP Arrow : Jump

💡 Features

  • Animated character sprite with footstep sound
  • Gravity-based jumping
  • Collision detection with platforms
  • Enemy ball that patrols and shoots projectiles downward
  • Collision detection between bullets and the player

📁 Project Structure

.
├── main.c
├── README.md
├── resources
│   ├── scarfy.png
│   └── soundEffect
│       ├── singleFootstep.mp3
│       └── singleFootstep2.mp3

🧠 Notes

  • You can extend this game by adding collectibles, more enemy types, health system, or procedural levels.
  • For infinite worlds, consider using procedural generation with chunk-based logic.

📝 License

This project is open-source and licensed under the MIT License.

About

An arcade platformer where agility is survival. Guide Scarfy through the treacherous Emerald Abyss to reach the other side.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages