Skip to content

jeromeberg/so_long

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

so_long

C 42 Grade: 100%

A small 2D game in C built with MinilibX.

The goal is to collect all the eggs and reach the exit chest.

This project covers keyboard event handling, texture rendering and map parsing.

so_long

Instructions

Prerequisites

  • OS: Linux or MacOS
  • make
  • cc
  • MinilibX (use make mlx to clone it)
  • X11 or xquartz on MacOS (to use minilibx-linux)

Quick Start

# 1. Clone MinilibX from 42 repo
make mlx

# 2. Compile
make

# 3. Start game
./so_long <map.ber> 
# e.g.: maps/subject.ber

Controls

Key Action
W Move forward
A Move left
S Move backward
D Move right
ESC Exit game

Commands

make        # compile
make mlx    # clone mlx
make clean  # remove objects
make fclean # remove objects and executable
make re     # clean and recompile

About

Small 2D game in C built with MinilibX.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors