Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 833 Bytes

README.md

File metadata and controls

50 lines (34 loc) · 833 Bytes

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