Skip to content

The so_long project is a 2D game written in C using the minilibx graphics library. The game involves navigating a player character through a maze, collecting objects and avoiding enemies. The objective of the game is to collect all the objects and reach the exit point of the maze.

Notifications You must be signed in to change notification settings

UchihaShaco/so_long

Repository files navigation

so_long

Project Overview

The so_long project is a 2D game written in C using the minilibx graphics library. The game involves navigating a player character through a maze, collecting objects and avoiding enemies. The objective of the game is to collect all the objects and reach the exit point of the maze.

The so_long project consists of several components:

Map Parsing

The so_long game uses a map file in a specific format to represent the maze. The map file contains the following symbols:

  • 1: Wall
  • 0: Floor
  • C: Collectible object
  • E: Exit point
  • P: Player character
    The so_long program must read the map file and store the map data in memory.

Graphics

The so_long game uses the minilibx graphics library to display the game on the screen. The library provides functions for creating windows, drawing images and shapes, and handling user input.

Game Logic

The so_long game implements the game logic, including player movement, object collection, enemy behavior, and game win/lose conditions.

Error Handling

The so_long program must handle errors that can occur during map parsing, graphics initialization, and game logic.

Conclusion

The so_long project is an engaging and challenging project that requires skills in parsing, memory management, graphics programming, and game logic. The project is an excellent exercise for any C programmer interested in game development or graphics programming.

About

The so_long project is a 2D game written in C using the minilibx graphics library. The game involves navigating a player character through a maze, collecting objects and avoiding enemies. The objective of the game is to collect all the objects and reach the exit point of the maze.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published