aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: cf49809ac566e84ff2441fb67d7847eb8ccb456a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Bunnyland (temporary name)

This is a gameboy game I am coding [live on twitch](https:/www.twitch.tv/astatinchan) ! Come and hang out !

# How to compile

This game is made using Z80 assembly and should be compiled with the assembler I made for it

The assembler is made in golang, check if you have it on your system, If you do not:

```bash
# Arch
sudo pacman -S go

# Debian/Ubuntu
sudo apt install golang

# Windows:
# I don't know lol
```

Clone the assembler:
```bash
git clone https://github.com/AstatinChan/gameboy-asm.git
cd gameboy-asm
```

Compile the assembler:
```bash
go build .
```

And copy it as `gbasm` somewhere in your $PATH
```bash
sudo cp gameboy-asm /usr/local/bin/gbasm
```

We can now download the game sources
```bash
git clone https://github.com/AstatinChan/BunnyLand-Gameboy.git
cd BunnyLand-Gameboy
```

And assemble the ROM
```bash
make build/main.rom
```

The rom is inside of the build/ directory and can be played with the gameboy emulator of your choice (I also made an emulator you can use [here](https://github.com/AstatinChan/gameboy-emulator))