Skip to content

Commit 4d02a6b

Browse files
committed
Pokemon Medley 16 update
1 parent d545f78 commit 4d02a6b

File tree

4,930 files changed

+487777
-820
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,930 files changed

+487777
-820
lines changed

engine/.gitattributes

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Auto detect text files and perform LF normalization
2+
* text eol=lf
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
7+
# files part of the build
8+
*.asm text
9+
*.pal text
10+
*.link text
11+
*.txt text
12+
13+
# extra files
14+
*.awk text
15+
*.c text
16+
*.h text
17+
*.md text
18+
*.py text
19+
*.sh text
20+
*.sha1 text
21+
22+
# Denote all files that are truly binary and should not be modified.
23+
*.png binary diff=hex
24+
*.lz.* binary diff=hex
25+
*.bin binary diff=hex
26+
*.blk binary diff=hex
27+
*.rle binary diff=hex
28+
*.attrmap binary diff=hex
29+
*.tilemap binary diff=hex
30+
31+
# Declare files that will always have CRLF line endings on checkout.
32+
*.patch.template text eol=crlf linguist-language=INI
33+
34+
# these are generated but just in case
35+
*.lz binary diff=hex
36+
*.2bpp binary diff=hex
37+
*.1bpp binary diff=hex

engine/.gitignore

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# compiled objects
2+
*.o
3+
4+
# compiled graphics
5+
*.1bpp
6+
*.2bpp
7+
*.lz
8+
*.gbcpal
9+
*.dimensions
10+
*.animated.tilemap
11+
*.sgb.tilemap
12+
gfx/pokemon/*/bitmask.asm
13+
gfx/pokemon/*/frames.asm
14+
!gfx/pokemon/unown/bitmask.asm
15+
!gfx/pokemon/unown/frames.asm
16+
17+
# compiled roms
18+
*.gbc
19+
*.gb
20+
*.patch
21+
22+
# rgbds extras
23+
*.map
24+
*.sym
25+
26+
# tool binaries
27+
*.exe
28+
29+
# precompiled python
30+
*.pyc
31+
*$py.class
32+
33+
# compare.sh
34+
baserom.txt
35+
pokecrystal.txt
36+
37+
# used_space.py
38+
used_space.png
39+
40+
# save game files
41+
*.sgm
42+
*.sav
43+
*.rtc
44+
*.sn*
45+
*.sa*
46+
*.sg1
47+
48+
# vim configuration
49+
# http://www.vim.org/scripts/script.php?script_id=441
50+
.lvimrc
51+
52+
# swap files for vim and gedit
53+
.*.swp
54+
*~
55+
56+
# macos files
57+
.DS_STORE

engine/INSTALL.md

+170
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,170 @@
1+
# Instructions
2+
3+
These instructions explain how to set up the tools required to build **pokecrystal**, including [**rgbds**](https://github.com/gbdev/rgbds), which assembles the source files into a ROM.
4+
5+
If you run into trouble, ask for help on IRC or Discord (see [README.md](README.md)).
6+
7+
8+
## Windows 10 and newer
9+
10+
Download and install [**Windows Subsystem for Linux**](https://docs.microsoft.com/en-us/windows/wsl/install-win10). Then open the **WSL terminal**.
11+
12+
Update WSL's software before continuing. If you chose Debian, Ubuntu, or another distribution that uses `apt-get`, then enter this command:
13+
14+
```bash
15+
apt-get update && apt-get upgrade
16+
```
17+
18+
WSL has its own file system that's not accessible from Windows, but Windows files *are* accessible from WSL. So you're going to want to install pokecrystal within Windows. You'll have to change the **current working directory** every time you open WSL.
19+
20+
For example, if you want to store pokecrystal in **C:\Users\\*\<user>*\Desktop**, enter this command:
21+
22+
```bash
23+
cd /mnt/c/Users/<user>/Desktop
24+
```
25+
26+
(The Windows `C:\` drive is called `/mnt/c/` in WSL. Replace *\<user>* in the example path with your username.)
27+
28+
If this works, then follow [the instructions for **Linux**](#linux) below for whatever distribution you installed for WSL.
29+
30+
Otherwise, continue reading below for [the older Windows instructions](#windows-any-version).
31+
32+
33+
## Windows (any version)
34+
35+
Download [**Cygwin**](http://cygwin.com/install.html): **setup-x86_64.exe** for 64-bit Windows, **setup-x86.exe** for 32-bit.
36+
37+
Run setup and leave the default settings. At the "**Select Packages**" step, choose to install the following, all of which are in the "**Devel**" category:
38+
39+
- `make`
40+
- `git`
41+
- `gcc-core`
42+
43+
Double click on the text that says "**Skip**" next to each package to select the most recent version to install.
44+
45+
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#pre-built) for Windows with Cygwin to install **rgbds 0.7.0**.
46+
47+
**Note:** If you already have an installed rgbds older than 0.7.0, you will need to update to 0.7.0. Ignore this if you have never installed rgbds before. If a version newer than 0.7.0 does not work, try downloading 0.7.0.
48+
49+
Now open the **Cygwin terminal** and enter the following commands.
50+
51+
Cygwin has its own file system that's within Windows, at **C:\cygwin64\home\\*\<user>***. If you don't want to store pokecrystal there, you'll have to change the **current working directory** every time you open Cygwin.
52+
53+
For example, if you want to store pokecrystal in **C:\Users\\*\<user>*\Desktop**:
54+
55+
```bash
56+
cd /cygdrive/c/Users/<user>/Desktop
57+
```
58+
59+
(The Windows `C:\` drive is called `/cygdrive/c/` in Cygwin. Replace *\<user>* in the example path with your username.)
60+
61+
Now you're ready to [build **pokecrystal**](#build-pokecrystal).
62+
63+
64+
## macOS
65+
66+
Install [**Homebrew**](https://brew.sh/). Follow the official instructions.
67+
68+
Open **Terminal** and prepare to enter commands.
69+
70+
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#pre-built) for macOS to install **rgbds 0.7.0**.
71+
72+
Now you're ready to [build **pokecrystal**](#build-pokecrystal).
73+
74+
75+
## Linux
76+
77+
Open **Terminal** and enter the following commands, depending on which distro you're using.
78+
79+
### Debian or Ubuntu
80+
81+
To install the software required for **pokecrystal**:
82+
83+
```bash
84+
sudo apt-get install make gcc git
85+
```
86+
87+
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.7.0** from source.
88+
89+
### OpenSUSE
90+
91+
To install the software required for **pokecrystal**:
92+
93+
```bash
94+
sudo zypper install make gcc git
95+
```
96+
97+
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.7.0** from source.
98+
99+
### Arch Linux
100+
101+
To install the software required for **pokecrystal**:
102+
103+
```bash
104+
sudo pacman -S make gcc git rgbds
105+
```
106+
107+
If you want to compile and install **rgbds** yourself instead, then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.7.0** from source.
108+
109+
### Termux
110+
111+
To install the software required for **pokecrystal**:
112+
113+
```bash
114+
pkg install make clang git sed
115+
```
116+
117+
To install **rgbds**:
118+
119+
```bash
120+
pkg install rgbds
121+
```
122+
123+
If you want to compile and install **rgbds** yourself instead, then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.7.0** from source.
124+
125+
### Other distros
126+
127+
If your distro is not listed here, try to find the required software in its repositories:
128+
129+
- `make`
130+
- `gcc` (or `clang`)
131+
- `git`
132+
- `rgbds`
133+
134+
If `rgbds` is not available, you'll need to follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 0.7.0** from source.
135+
136+
Now you're ready to [build **pokecrystal**](#build-pokecrystal).
137+
138+
139+
## Build pokecrystal
140+
141+
To download the **pokecrystal** source files:
142+
143+
```bash
144+
git clone https://github.com/pret/pokecrystal
145+
cd pokecrystal
146+
```
147+
148+
To build **pokecrystal.gbc**:
149+
150+
```bash
151+
make
152+
```
153+
154+
To build **pokecrystal11.gbc**:
155+
156+
```bash
157+
make crystal11
158+
```
159+
160+
### Build with a local rgbds version
161+
162+
If you have different projects that require different versions of `rgbds`, it might not be convenient to install rgbds 0.7.0 globally. Instead, you can put its files in a directory within pokecrystal, such as `pokecrystal/rgbds-0.7.0/`. Then specify it when you run `make`:
163+
164+
```bash
165+
make RGBDS=rgbds-0.7.0/
166+
```
167+
168+
```bash
169+
make RGBDS=rgbds-0.7.0/ crystal11
170+
```

0 commit comments

Comments
 (0)