Skip to content

SoLong is a 2D game inspired by PACMAN, where the player navigates a maze, avoiding obstacles and enemies. The project emphasizes core game mechanics, user input handling, and graphical rendering using C programming.

Notifications You must be signed in to change notification settings

erikgonk/so_long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SoLong - PACMAN

SoLong is a 2D game developed as part of the 42 curriculum. The game focuses on basic game mechanics and graphical rendering, providing an introduction to interactive applications. It implements a simple player-controlled character navigating through a maze-like environment while avoiding obstacles and enemies. The project aims to enhance skills in C programming, graphical libraries, and game logic.

Screencast.from.04-01-2025.11.33.41.AM.webm

Features

  • Player Movement

    • Move the player character across the screen using keyboard inputs.
  • Map Design

    • Customizable 2D maps with obstacles and paths, created using a simple map file format.
  • Enemies

    • Simple AI-controlled enemies that interact with the player.
  • Game Logic

    • Logic for player movement, collision detection, and game-over conditions.
  • Animations

    • Basic animations for the player character and enemies for a more engaging experience.

Technologies Used

  • 💻 Language: C
  • 🎮 Graphics Library: MiniLibX
  • 🧑‍💻 Additional Technologies: Keyboard Input Handling, Basic AI for Enemies, Game Loop

Goals

The goal of SoLong is to build an interactive 2D game using basic programming principles. The project allows students to practice working with graphical libraries, handling user input, and implementing game mechanics. The bonus features enhance the gameplay and user experience.

How to Run

  1. Clone the repository:
    git clone https://github.com/erikgonk/so_long.git && cd SoLong
    
    
  2. Execute it:
    [ "$(uname)" = "Darwin" ] && cd Mac || cd Linux && make r

About

SoLong is a 2D game inspired by PACMAN, where the player navigates a maze, avoiding obstacles and enemies. The project emphasizes core game mechanics, user input handling, and graphical rendering using C programming.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published