Skip to content

Latest commit

 

History

History
86 lines (60 loc) · 1.77 KB

README.md

File metadata and controls

86 lines (60 loc) · 1.77 KB

Monoceros (UNIX)

Compilation Instructions (UNIX)

# Compile game:
gcc -o main main.c menu.c menu.h tcp_client.c tcp_client.h gamePlay.c gamePlay.h interfaces.h sprites.c sprites.h effects.c effects.h levels.c levels.h planet.c planet.h ai.c ai.h scores.c scores.h -lncursesw -lm -Wall -std=gnu99

# Compile server:
gcc -o server tcp_server.c menu.c menu.h tcp_client.c tcp_client.h gamePlay.c gamePlay.h interfaces.h sprites.c sprites.h effects.c effects.h levels.c levels.h planet.c planet.h ai.c ai.h scores.c scores.h -lncursesw -lm -Wall -std=gnu99

Resources

Essential Git Commands

Get this repository for the first time:

git clone https://github.com/chaderdwins/Monoceros.git

Update your local repository:

git pull

Check the state of your local repository:

git status

Switch to a new branch:

git branch -b my-branch

Switch to an existing branch:

git checkout my-branch

List branches:

git branch --list

Update a branch with changes from the master branch:

# Switch to the branch to update
git checkout my-branch
# Pull in changes from the master branch (will fail if there are conflicts)
git pull origin master

Commit (save) changes:

# View the files that have changed
git status
# Stage changes to a file
git add my-file
# Commit all staged changes
git commit -m "My message describing what these changes do"

Push changes to the remote repository:

git push

NCURSES

tldp.org/HOWTO/NCURSES-Programming-HOWTO