GithubHelp home page GithubHelp logo

abouabra / 42-solong Goto Github PK

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

SoLong is a project that aims to create a simple 2D game using the minilibx library

Makefile 3.63% C 96.37%
42 42-so-long cprogramming game minilibx mlx

42-solong's Introduction

SoLong

Description

SoLong is a project that aims to create a simple 2D game using the minilibx library. The game is a simple maze where the player has to collect all the collectibles and reach the exit to win the game. it also includes a simple enemy that moves randomly and kills the player if it touches him.

Note:

The project was developed and tested on a macOS system, and it may not work on other operating systems.

Installation

  1. Clone the repository:
git clone https://github.com/abouabra/42-SoLong.git
  1. Change the current working directory:
cd 42-SoLong
  1. Compile the project:
make

Usage

The game can be run using the following command:

./so_long maps/map.ber

The game can be closed by pressing the 'esc' key or by clicking the red cross on the window.

Map

The map is a simple text file with the following characters:

Character Description
1 Wall
0 Empty space
P Player
E Exit
C Collectible

The map should also be surrounded by walls and should only contain valid characters.

Controls

The player can move using the WASD keys.

Screenshots

Main Menu Skin Selection levels menu
Screenshot 1 Screenshot 2 Screenshot 3

Level 2

Screenshot 1

Level 5

Screenshot 2

Level 8

Screenshot 3

Final Note

If you have any suggestions or improvements, feel free to open an issue or submit a pull request.

42-solong's People

Contributors

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