Skip to content

A simple puzzle game written in C99.

Notifications You must be signed in to change notification settings

Flaise/dont_eat_my_sheep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Don't Eat My Sheep!

screenshotte

Motivation

Someone wanted to c me write a program in C. So here's a puzzle game written in C99.

How2play

The dragon wants to eat up the livestock so the knight wants to slay the dragon before that can happen. Click on a piece, then click a square next to the piece to make a move. Pieces only move 1 square at a time and not diagonally. After a piece moves, all other pieces must move once before it can move again.

In order to win, the knight must first be moved onto the same square as his horse in order to mount up. Then he can slay the dragon by moving onto the same square as the dragon.

Press R to restart if you fail the puzzle. Press Escape to quit the app.

Installation: Ubuntu

This app requires some packages installed:

apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev

May be used for static linking and it's possible this package will be different depending on your computer's drivers or graphics card:

apt-get install libgbm-dev

Usage

Compile and run:

./start.sh

Run unit tests:

./start.sh test

Credits

Terrain:

Characters:

Cooldown Icon:

Font:

Music: