Skip to content

2D console game for maximum of 2 players

License

Notifications You must be signed in to change notification settings

jaqubm/nCurses_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nCurses_game

2D console game for maximum of 2 players

Gameplay

Every player spawns in random place on map. The only goal is to get as many coins as possible and bring them back to the camp, where they can be stored. There are also 2 beasts which moves randomly. They will follow the player as soon as they will be in theirs field of view.

Tech stack

  • ncurses - UNIX console graphics library for C
  • Threads
  • UNIX Sockets

Build

To build this project:

  make

Run

To run server:

  ./server.o

To run game:

  ./game.o

Keybindings

Server

  • q/Q - close the server
  • c - spawn a coin
  • t - spawn a treasure
  • T - spawn a large treasure

Client

  • q/Q - quit the game
  • ↑ - move up
  • ↓ - move down
  • ← - move left
  • → - move right