Giter VIP home page Giter VIP logo

42-so_long's Introduction

So_Long Project

This is a solution for the So_Long project from 42 schools, which involves creating a simple 2D game using the minilibx library. The objective of the game is to collect all the items on the map and reach the exit without being caught by enemies.

DISCLAIMER

This repo contains my own solution for So_Long project. It is uploaded to trac my own progress. It is not recommended for those who are doing the project.

Installation

To run this program, you will need to have the following dependencies installed on your system:

-gcc -make -mlx library

To install minilibx, you can follow the instructions provided in the official repository.

Note : This project made in MacOS so it is possibly not going to work in Linux.

Once you have all the dependencies installed, you can clone this repository and compile the program using the Makefile:

git clone <repository-url>
cd so_long
make

Usage

To run the game, simply run the executable file:

./so_long <map-file>

where <map-file> is the path to the map file you want to use for the game.

Map file format

The map file should have the following format:

111111
100001
101101
100001
111111

where 1 represents a wall, 0 represents an empty space, and P, E, and C represent the player, exit, and collectible items, respectively.

Features

This implementation of the So_long project includes the following features:

  • A fully functional game with a player, enemies, collectibles, and an exit.
  • Movement using WASD.
  • Door animation.
  • Enemy patrol.

42-so_long's People

Contributors

karakuscem avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.