Skip to content
Permalink
Browse files

updated readme and makefile

  • Loading branch information...
brovador committed Apr 23, 2017
2 parents 91c704a + f6cf004 commit 8f7cf13ca6f30a6fabc0fccb0d99c51c191b2f99
Showing with 36 additions and 3 deletions.
  1. +9 −3 Makefile
  2. +27 −0 README.md
@@ -1,15 +1,21 @@
# ROM name
ROM_NAME = gbsnake.gb

# Tools directory (gbdk, bgb binaries)
TOOLS_DIR = ../../toolchain

# Directories
GBDK_DIR = ../gbdk
GBDK_DIR = $(TOOLS_DIR)/gbdk
SRC_DIR = ./src
DIST_DIR = ./dist
OBJ_DIR = ./obj

# Binaries
CC = ./$(GBDK_DIR)/bin/lcc
EMULATOR = ../tools/bgb/bgb.exe
EMULATOR = $(TOOLS_DIR)/bgb/bgb.exe

# Files
ROM_FILE = $(DIST_DIR)/rom.gb
ROM_FILE = $(DIST_DIR)/$(ROM_NAME)
OBJ_FILES = $(OBJ_DIR)/main.o \
$(OBJ_DIR)/snake-tiles.o \
$(OBJ_DIR)/snake-map.o
@@ -0,0 +1,27 @@
# GBsnake

Simple port of the Snake game written in C for the Nintendo GameBoy.

![Example](http://brovador.github.io/GBsnake/Demo.gif)

Compiled rom is under ```dist``` directory.

# Build (MacOSX)
* Download [gbdk v2.96a](http://www.rpgmaker.it/proflame/gbdk.zip) for MacOSX and the [bgb emulator](http://bgb.bircd.org/) for windows.
* Install ```wine``` using brew:

```
brew install wine
```

* Place both inside the same directory with the folder names ```gbdk``` and ```bgb```:

```
ROOT_DIRECTORY
/gbdk
/bgb
```

* In the ```Makefile``` configure ```$(TOOLS_DIR)``` so it points to ```ROOT_DIRECTORY``` (which contains gbdk and bgb)
* Call ```make clean && make run```

0 comments on commit 8f7cf13

Please sign in to comment.
You can’t perform that action at this time.