skycoin / cx-game

Game Prototype
7 stars 15 forks source link

cx-game

Game Prototype

CX game is a new 2D console game.

Table of Contents


Installation

cx-game requires Golang version of 1.13+

Compiling on Linux

Install dependencies with

sudo apt update
sudo apt install -y glade xvfb libxinerama-dev libxcursor-dev libxrandr-dev libgl1-mesa-dev libxi-dev libperl-dev libcairo2-dev libpango1.0-dev libglib2.0-dev libopenal-dev libxxf86vm-dev libasound2-dev make

Install Go

Install git using apt

sudo apt update
sudo apt install git

You can use any other code editor, for installing sublime run these commands:

Install sublime using apt

sudo apt update
sudo apt install sublime-text

Usage

Run the program.

git clone https://github.com/skycoin/cx-game.git
cd cx-game
go mod download
go run main.go

A window should appear, with a cat use a, s, d, w to move the cat around.\ \ Open source code in editor

cd cx-game
subl ./

Compiling on MacOS

Install Go

Install git with brew

brew install git

Install sublime with brew

brew install --cask sublime-text

Usage

Run the program.

git clone https://github.com/skycoin/cx-game.git
cd cx-game
go mod download
go run main.go

A window should appear, with a cat use a, s, d, w to move the cat around.\ \ Open source code in editor

cd cx-game
subl ./

Compiling on Windows

Install Go

Install git from executable

Install sublime from executable

Install MinGW

Install OpenAL

Usage

Opening terminal

  1. Click the Start menu.
  2. In the menu's search box, type cmd, then press the Enter key.
  3. In the Command Prompt window that appears, type the following command:

Run the program from terminal

git clone https://github.com/skycoin/cx-game.git
cd cx-game
go mod download
go run main.go

A window should appear, with a cat use a, s, d, w to move the cat around.\ \ Open source code in editor


Libraries Used

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.