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.

Notifications You must be signed in to change notification settings

fbkeskin/42-so_long

Repository files navigation

🐳So Long

"Long ago in a distant land, I, Aku, the shapeshifting master of darkness, unleashed an unspeakable evil. But a foolish samurai warrior wielding a magic sword stepped forth to oppose me. Before the final blow was struck, I tore open a portal in time and flung him into the future where my evil is law. Now the fool seeks to return to the past and undo the future that is Aku."

And thanks for all the fish!

Bu proje, küçük bir 2D oyundur. Amacı textures, sprites ve diğer bazı temel oyun öğeleriyle çalışmanızı sağlamaktır.


📝Usage

  1. Repo'yu clone'layın:
git clone https://github.com/fbkeskin/42-so_long.git
  1. Makefile'ı kullanarak source kodu derleyin:

Unutmayın, mevcut MLX library yalnızca Mac machine'lerde çalışmaktadır.

make

1 executable file oluşmaktadır: so_long.

  1. Oynamak istediğiniz map'i argüman olarak girin ve so_long binary dosyasını execute ederek programı başlatın:

Projenin kök dizininde map_files klasörü altında yer alan map'lerden birini tercih edebilirsiniz.

$>./so_long map_files/42big.ber
movement: 1
movement: 2
movement: 3
movement: 4
movement: 5
movement: 6
.
.
.
movement: 175
movement: 176
movement: 177
###   YOU WON THE GAME TOTAL 177 STEPS!   ###

$>./so_long map_files/mult_exit.ber
Error: number of components is incorrect

$>./so_long gün "uzaklarda bir yerlerde güneşler doğuyor.ber" 
Error: not ber file

$>./so_long gün dönence dönence
Error: 2 arguments must be entered!

Program, bilgisayarınızda bir window açarak oyun arayüzünüz ile etkileşime geçmenizi sağlar. Amaç, tüm collectible nesneleri toplayarak exit'e ulaşmaktır.

  1. Farklı map files ile çalışmak için 3. adımı tekrarlayın.

📚MLX

MinilibX, öğrenciler için tasarlanmış, yeni başlayanlara uygun, C dilinde basit bir X-Window programlama API'sidir.

Useful links:

Linux machine için mlx include etmek: For Linux

🎮CONTROLS

KEYBOARD ACTION
W, Move up
S, Move down
A, Move left
D, Move right
ESC, Close the game window

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages