Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jarpoole committed Dec 29, 2022
1 parent 60ccc2f commit 575311a
Show file tree
Hide file tree
Showing 7 changed files with 99 additions and 170 deletions.
9 changes: 9 additions & 0 deletions Makefile
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)
37 changes: 37 additions & 0 deletions README.md
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)
Binary file removed a.out
Binary file not shown.
Binary file added docs/menu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 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

0 comments on commit 575311a

Please sign in to comment.