Skip to content

🕹️ This project is a very small 2D game. Its purpose is to make you work with textures, sprites, and some other very basic gameplay elements.

License

Notifications You must be signed in to change notification settings

ricardoreves/42-so-long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

42 So Long

Language Licence Score norminette

🪧 Overview

Description

This project is a very small 2D game with minilibx. Its purpose is to make you work with textures, sprites, and some other very basic gameplay elements.

Goal

It’s time for you to create a basic computer graphics project. So long will help you improve your skills in the following areas: window management, event handling, colors, textures, and so forth. You are going to use the school graphical library: the MiniLibX! This library was developed internally and includes basic necessary tools to open a window, create images and deal with keyboard and mouse events.

📷 Preview

preview

The capybara (Hydrochaeris hydrochaeris), also called capybara, is a small herbivorous mammal belonging to the order of rodents and the family of cavidae. It measures more than a meter long and weighs more than 50 kg. Males weigh between 10 and 15 kg less than females.

🚀 Getting Started

Prerequisites

MiniLibX for Linux requires xorg, x11 and zlib, therefore you will need to install the following dependencies: xorg, libxext-dev and zlib1g-dev. Installing these dependencies on Ubuntu can be done as follows:

sudo apt-get update && sudo apt-get install xorg libxext-dev zlib1g-dev libbsd-dev

Installation

  1. Clone the project.
git clone git@github.com:ricardoreves/42-so-long.git
  1. Navigate to the project directory.
cd 42-so-long
  1. Compile the game. (You can ignore the Minilibx compilation warning)
make

🕹 Usage

  1. Start the game with a map.
./so_long maps/42.ber
  1. Move the player and collect objects, then go to the exit.
Key Action
W Move Up
A Move Left
S Move Down
D Move Right
R Reset Game
ESC Quit Game

📚 References

🧰 Tools

  • XPMConverter - Online tool to convert images PNG to XPM
  • SpriteCutter - Online tool to cut sprite images
  • ImageMagick - Command-line tool to convert, edit, or compose digital images

📝 License

Distributed under the MIT License. See LICENSE for more information.

About

🕹️ This project is a very small 2D game. Its purpose is to make you work with textures, sprites, and some other very basic gameplay elements.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published