Giter Site home page Giter Site logo

ankinzin / so_long Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 197 KB

Game Description: So_Long is a game where the player controls a character in a maze and must collect all the collectibles (represented by a sprite) before reaching the exit (also represented by a sprite). The player must avoid enemies (also represented by a sprite), which move randomly around the maze.

License: MIT License

Makefile 2.42% C 77.07% Objective-C 20.51%

so_long's Introduction

so_long

Welcome to my So_Long project for 42 School! This project is part of the curriculum of the Graphics branch, and its goal is to create a simple 2D game using the MiniLibX library.

Game Description

So_Long is a game where the player controls a character in a maze and must collect all the collectibles (represented by a sprite) before reaching the exit (also represented by a sprite). The player must avoid enemies (also represented by a sprite), which move randomly around the maze.

Installation and Usage

To install and run this game on your machine, please follow these steps:

Clone this repository onto your local machine.

Make sure that you have the MiniLibX library installed. Run the command make to compile the game. Run the game with the command ./so_long [map_path], where map_path is the path to the map file you want to use (maps are located in the maps directory).

Controls

The game is controlled using the arrow keys on the keyboard. The player can move up, down, left, and right.

Map Creation

If you want to create your own maps, you can do so by following these rules:

Maps must be rectangular. Maps must have at least one player, one exit, and one collectible. Maps can have walls (represented by the character 1), empty spaces (represented by the character 0), players (represented by the character P), exits (represented by the character E), and collectibles (represented by the character C). Maps must be saved as a .ber file in the maps directory.

Acknowledgements

I would like to thank the 42 School for providing me with the opportunity to work on this project and learn more about graphics programming. I would also like to thank the MiniLibX team for creating such a powerful and easy-to-use library.

so_long's People

Contributors

ankinzin avatar

Stargazers

Arpit Mehrotra 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.