Code Monkey home page Code Monkey logo

so_long's Introduction

So_Long

Sixième projet de 42 et premier projet graphique qui utilise la MiniLibX.

Jeu semblable à Mario Bros avec une vue de profil.

Le but du joueur est de collecter toutes les pièces présentes sur la carte puis de s'échapper avec un minimum de mouvement


Compilation :

Pour compiler le projet, exécutez la commande suivante :

make

Pour compiler les tests unitaires, exécutez la commande suivante :

make test

Utilisation :

Pour lancer le jeu, ./so_long adresse de la carte mode debug

Exemple :

./so_long ./maps/map.ber DEBUG=0

Les tests unitaires s'executent de la façon suivante :

./utest

Commandes :

Clavier Action
W, Saut
S, Déplacement vers le bas
A, Déplacement à gauche
D, Déplacement à droite
ESC, Fermer le jeu

Structuration de la carte :

Caractère Description
* Espace vide 1
0 Espace vide 2
1 Mur
P Joueur
E Porte de sortie
C Pièce collectable
M Monstre
Exemple de carte :
111111111111111111
1P0100000000001001
10*****00000010*01
10**00*0***00**001
10*00******0*00*01
10C00C*0*****00001
100001000C0*0C0001
10001101000M0001E1
111111111111111111

Démonstration :


Correction :

Correcteur 1
Correcteur 2
Correcteur 3

so_long's People

Contributors

florian-a avatar

Stargazers

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