GithubHelp home page GithubHelp logo

ahmedalfahal / so_long Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 8.45 MB

A simple 2D game written in C language using 42-MLX Library

Makefile 4.13% C 68.71% Objective-C 27.16%
2d-game 42-school mlx42 so-long

so_long's Introduction

so_long

This is a 2D game designed in C using minilibX provided in 42curses.
To play this game u have to be in a macOS use the following commands.
make then ./so_long maps/42.ber Enjoy :)
you can Edit the Map as long as it respects the rules.

Rules of the map

• The map must be rectangular.
• The map must be closed/surrounded by walls
• there should be a valid path in the map.
• the map should at least have one exit, one collectible and one player. etherwise it will show an error.

Elements of the map

1 : Wall
0 : Empty space
E : Exit
P : Player
C : Coin

Demo

Demo

so_long's People

Contributors

ahmedalfahal 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.