-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
99 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CC=gcc | ||
EXE=jsnake.app | ||
LFLAGS=-lcurses | ||
|
||
$(EXE): | ||
$(CC) ./src/main.c $(LFLAGS) -o $(EXE) | ||
|
||
clean: | ||
rm -rf $(EXE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# jsnake-v1 | ||
|
||
This project is the first game and likely even full program I ever wrote in C. Its very rough around the edges but definitely playable. | ||
|
||
![play](./docs/play.png) | ||
|
||
## Features | ||
|
||
1. Score keeping | ||
2. Single-player mode (`[UP][LEFT][RIGHT][DOWN]` against computer) | ||
3. Two-player mode (`wasd` and `[UP][LEFT][RIGHT][DOWN]`) | ||
|
||
## Dependencies | ||
|
||
Install `ncurses`. On debian based distros like ubuntu for example: | ||
|
||
```bash | ||
apt-get install libncurses5-dev | ||
``` | ||
|
||
Install build tools. On debian based distros like ubuntu for example: | ||
|
||
```bash | ||
sudo apt install gcc make | ||
``` | ||
|
||
## Play | ||
|
||
The game expects an approximately 16x9 aspect ratio for the terminal. Make sure to resize the window as appropriate. | ||
|
||
```bash | ||
make | ||
./jsnake.app | ||
``` | ||
|
||
![menu](./docs/menu.png) | ||
![score](./docs/score.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.