Giter Site home page Giter Site logo

kuninoto / 42_so_long Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 1.0 4.82 MB

A small 2D game developed with MiniLibx, the graphic library of the 42School.

Makefile 3.39% C 95.02% Perl 0.44% Shell 1.16%
42 42born2code 42cursus 42porto 42portugal 42projects 42school ecole42 school42 so-long

42_so_long's Introduction

so_long (42Porto - 42Cursus) C Logo 

Grade: 110/100

Screenshot:

Installing and running the project:

1- Installing mlx dependencies

sudo apt-get install make xorg libxext-dev zlib1g-dev libbsd-dev

2- Clone this repository

git clone https://github.com/Kuninoto/42_so_long

3- Navigate to lvl_2_so_long and run make

cd 42_so_long/lvl_2_so_long
make

4- make clean so that you don't keep those object files that you won't need anymore

make clean

5- Run your new, extremely sexy, game, with a map of your choice!

./so_long maps/[which_ever_map_you_want].ber

Creating new maps:

'0' - Free space;  
'1' - Wall;  
'C' - Collectible;  
'E' - Exit;  
'P' - Player's starting position;  
To be valid a map must respect the following:  
	- Be in .ber format;  
	- Be closed by walls;  
	- Be retangular;  
	- Contain only one P;  
	- Contain only one E;  
	- Contain at least one C;  
	- All elements must be accessible (not closed by walls);  
	- Be composed only by valid characters i.e 0, 1, C, E, P;  
(You can check examples of valid maps on maps folder);

Makefile Available Targets:

make or make all - compiles so_long
make bonus - same as all (added for subject purposes)
make clean - wipes all object files
make fclean - deletes so_long and all object files
make re - fclean + all

Useful links:

Assets Credit:

Disclaimer

At 42School, almost every project must be written in accordance to the Norm, the schools' coding standard. As a result, the implementation of certain parts may appear strange and for sure had room for improvement.


Made by Nuno Carvalho (Kuninoto) | [email protected]

42_so_long's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

joelencruz

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.