Thanks to visit codestin.com
Credit goes to github.com

Skip to content

icare-sh/Project_SDL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project_SDL

This is a game in C++ using SDL library

insert image in te readme.md file in github repository using markdown syntax as follows:

Build

Create a build directory and run cmake and make from there

    mkdir build
    cd build
    cmake ..
    make

Run

    ./src/Project_SDL1/SDL_Project <nb_sheeps> <nb_wolves>  

You have to set the number of sheeps and wolves you want to play with.

Gameplay

  • The wolves are controlled by the computer and will try to eat the sheeps.

  • The sheeps are controlled by the computer also and will try to escape the wolves.
    We have two types of sheeps:

    • The men sheep:
    • The women sheep:
    • The women have a special hability,when they are in time of fecondity, they can have babies with men sheep.
  • You can control the shepherd with the q, d, z, s keys.

  • The shepherd dogs move circles around the shepherd, you can control them by left clicking on the screen to select one of them and right clicking in the screen to move them to the selected position.

The game ends when keep 1 sheeps alives or when the wolves are all dead.

Contributors

About

This is a game in C++ using SDL library

Resources

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages