Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
70b5ab9
Add `_vc` patch targets to `.PHONY`
Rangi42 Nov 13, 2025
f332678
Use more hardware and graphics constants (#532)
Narishma-gb Nov 18, 2025
308189b
Use `ld_hli_a_string` macro to make byte-by-byte strings more obvious…
Rangi42 Nov 24, 2025
e92d1af
Avoid magic numbers for most `CopyData` calls (#542)
Rangi42 Nov 25, 2025
3a4382c
Use more Pokemon data constants, create MOVE_NAME_LENGTH (#543)
Narishma-gb Nov 27, 2025
9a6bb3e
Define player and rival names once, to be used in two places (#545)
Rangi42 Dec 1, 2025
7272d9b
Comment that `farcall` and `callfar` are interchangable
Rangi42 Dec 1, 2025
917a0eb
Correct comment
Rangi42 Dec 1, 2025
8bb0354
Update `StatusScreen`, add `*_STATS_BOX` constants (#546)
Narishma-gb Dec 1, 2025
e1948fe
Clarify how the order of map constants matters for the Town Map (#553)
Rangi42 Dec 15, 2025
e9d3324
Comment more unreferenced local labels (#550)
Narishma-gb Dec 15, 2025
d79c578
Specify a max item length for `list_start` (#552)
Rangi42 Dec 15, 2025
0555b42
Replace magic number `$7` with `SLP_MASK` constant (#555)
jordanmoore753 Dec 26, 2025
772ec10
Identify characters in `_OakSpeechText2B` and `Printer_GetMonStats.ID…
abcboy101 Dec 30, 2025
2f76b96
Update RGBDS to 1.0.1 (although 1.0.0 still works)
Rangi42 Jan 1, 2026
fe1e764
Use macros to enforce "missable/hide/show object" constraints, and re…
Rangi42 Jan 8, 2026
0e49aef
Use macros to enforce "hidden object" constraints, and rename them to…
Rangi42 Jan 8, 2026
7e6fdbb
Do not compile tools with LTO
nishantc1527 Jan 8, 2026
059ae5d
Fix CI for Linux and add CI for macOS (#567)
Rangi42 Jan 17, 2026
4c7ce81
Document SFX event bug inside Rocket Hideout B1F (#566)
CreamElDudJafar Jan 17, 2026
85b9d86
Align move grammar with pokecrystal (#565)
SnorlaxMonster Jan 17, 2026
4e22af1
Replace hard-coded numbers with constants in haze.asm (#564)
DrNyk Jan 17, 2026
70f654b
Use map names with `ToggleData*` symbols (#563)
Narishma-gb Jan 17, 2026
c4f02f1
Use macros for `WildMonEncounterSlotChances` (#562)
Engezerstorung Jan 17, 2026
bc2354d
Merge branch 'master' of https://github.com/pret/pokered
dannye Jan 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/checkdiff.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
set -e

if ! git diff-index --quiet HEAD --; then
echo 'Uncommitted changes detected:'
git diff-index HEAD --
return 1
fi
71 changes: 51 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,29 @@ on:
branches: [ master ]
pull_request:

env:
rgbds_version: v1.0.1

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v6

- name: Checkout rgbds
uses: actions/checkout@master
uses: actions/checkout@v6
with:
path: rgbds
ref: v1.0.0
ref: ${{ env.rgbds_version }}
repository: gbdev/rgbds

- name: Install rgbds
working-directory: rgbds
run: |
sudo apt-get install -yq libpng-dev
sudo make install
sudo apt-get update
sudo apt-get install -yq bison libpng-dev pkg-config
sudo make -j$(nproc) install

- name: Remove rgbds
run: |
Expand All @@ -33,21 +37,13 @@ jobs:
if: ${{ github.repository_owner == 'pret' }}
run: |
make DEBUG=1 -j$(nproc) compare
if ! git diff-index --quiet HEAD --; then
echo 'Uncommitted changes detected:'
git diff-index HEAD --
return 1
fi
.github/checkdiff.sh

- name: Make
if: ${{ github.repository_owner != 'pret' }}
run: |
make -j$(nproc)
if ! git diff-index --quiet HEAD --; then
echo 'Uncommitted changes detected:'
git diff-index HEAD --
return 1
fi
.github/checkdiff.sh

- name: Discord webhook
if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
Expand All @@ -57,22 +53,57 @@ jobs:
.github/webhook.sh

- name: Checkout symbols
if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
if: ${{ github.repository_owner == 'pret' && github.event_name == 'push' }}
uses: actions/checkout@master
with:
path: symbols
ref: symbols

- name: Move symbols
if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
if: ${{ github.repository_owner == 'pret' && github.event_name == 'push' }}
run: |
cp -v *.sym symbols/
cp -v *.map symbols/
cp -v *.sym *.map symbols/

- name: Update symbols
if: ${{ github.event_name == 'push' && github.repository_owner == 'pret' }}
if: ${{ github.repository_owner == 'pret' && github.event_name == 'push' }}
uses: EndBug/add-and-commit@v9
with:
cwd: "./symbols"
add: "*.sym *.map"
message: ${{ github.event.commits[0].message }}

build-macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Checkout rgbds
uses: actions/checkout@v6
with:
path: rgbds
ref: ${{ env.rgbds_version }}
repository: gbdev/rgbds

- name: Install rgbds
working-directory: rgbds
run: |
brew install bison libpng pkg-config
export PATH="$(brew --prefix bison)/bin:$PATH"
sudo make -j$(sysctl -n hw.ncpu) install

- name: Remove rgbds
run: |
rm -rf rgbds

- name: Compare
if: ${{ github.repository_owner == 'pret' }}
run: |
make DEBUG=1 -j$(sysctl -n hw.ncpu) compare
.github/checkdiff.sh

- name: Make
if: ${{ github.repository_owner != 'pret' }}
run: |
make -j$(sysctl -n hw.ncpu)
.github/checkdiff.sh
2 changes: 1 addition & 1 deletion .rgbds-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
20 changes: 10 additions & 10 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ Run setup and leave the default settings. At the "**Select Packages**" step, cho

Double click on the text that says "**Skip**" next to each package to select the most recent version to install.

Then follow the [**rgbds** install instructions](https://rgbds.gbdev.io/install#pre-built) for Windows with Cygwin to install **rgbds 1.0.0**.
Then follow the [**rgbds** install instructions](https://rgbds.gbdev.io/install#pre-built) for Windows with Cygwin to install **rgbds 1.0.1**.

**Note:** If you already have an installed rgbds older than 1.0.0, you will need to update to 1.0.0. Ignore this if you have never installed rgbds before. If a version newer than 1.0.0 does not work, try downloading 1.0.0.
**Note:** If you already have an installed rgbds older than 1.0.0, you will need to update to 1.0.1. Ignore this if you have never installed rgbds before. If a version newer than 1.0.1 does not work, try downloading 1.0.1.

Now open the **Cygwin terminal** and enter the following commands.

Expand All @@ -67,7 +67,7 @@ Install [**Homebrew**](https://brew.sh/). Follow the official instructions.

Open **Terminal** and prepare to enter commands.

Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#pre-built) for macOS to install **rgbds 1.0.0**.
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#pre-built) for macOS to install **rgbds 1.0.1**.

Now you're ready to [build **pokeyellow**](#build-pokeyellow).

Expand All @@ -84,7 +84,7 @@ To install the software required for **pokeyellow**:
sudo apt-get install make gcc git
```

Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 1.0.0** from source.
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 1.0.1** from source.

### OpenSUSE

Expand All @@ -94,7 +94,7 @@ To install the software required for **pokeyellow**:
sudo zypper install make gcc git
```

Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 1.0.0** from source.
Then follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 1.0.1** from source.

### Arch Linux

Expand All @@ -104,7 +104,7 @@ To install the software required for **pokeyellow**:
sudo pacman -S make gcc git rgbds
```

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 1.0.0** from source.
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 1.0.1** from source.

### Termux

Expand All @@ -120,7 +120,7 @@ To install **rgbds**:
pkg install rgbds
```

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 1.0.0** from source.
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 1.0.1** from source.

### Other distros

Expand All @@ -131,7 +131,7 @@ If your distro is not listed here, try to find the required software in its repo
- `git`
- `rgbds`

If `rgbds` is not available, you'll need to follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 1.0.0** from source.
If `rgbds` is not available, you'll need to follow the [**rgbds** instructions](https://rgbds.gbdev.io/install#building-from-source) to build **rgbds 1.0.1** from source.

Now you're ready to [build **pokeyellow**](#build-pokeyellow).

Expand All @@ -153,8 +153,8 @@ make

### Build with a local rgbds version

If you have different projects that require different versions of `rgbds`, it might not be convenient to install rgbds 1.0.0 globally. Instead, you can put its files in a directory within pokeyellow, such as `pokeyellow/rgbds-1.0.0/`. Then specify it when you run `make`:
If you have different projects that require different versions of `rgbds`, it might not be convenient to install rgbds 1.0.1 globally. Instead, you can put its files in a directory within pokeyellow, such as `pokeyellow/rgbds-1.0.1/`. Then specify it when you run `make`:

```bash
make RGBDS=rgbds-1.0.0/
make RGBDS=rgbds-1.0.1/
```
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ RGBGFXFLAGS ?= -Weverything
.SECONDEXPANSION:
.PRECIOUS:
.SECONDARY:
.PHONY: all yellow yellow_debug clean tidy compare tools
.PHONY: \
all \
yellow \
yellow_debug \
yellow_vc \
clean \
tidy \
compare \
tools

all: $(roms)
yellow: pokeyellow.gbc
Expand Down
2 changes: 1 addition & 1 deletion constants/event_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@
const EVENT_BEAT_ROCKET_HIDEOUT_1_TRAINER_3
const EVENT_BEAT_ROCKET_HIDEOUT_1_TRAINER_4
const_skip
const EVENT_677 ; ???
const EVENT_ENTERED_ROCKET_HIDEOUT
const_skip 7
const EVENT_67F ; ???
const_skip
Expand Down
6 changes: 5 additions & 1 deletion constants/gfx_constants.asm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ DEF SCREEN_BLOCK_HEIGHT EQU 5 ; blocks
DEF SURROUNDING_WIDTH EQU SCREEN_BLOCK_WIDTH * BLOCK_WIDTH ; tiles
DEF SURROUNDING_HEIGHT EQU SCREEN_BLOCK_HEIGHT * BLOCK_HEIGHT ; tiles

DEF SPRITEBUFFERSIZE EQU 7 * 7 * TILE_1BPP_SIZE
DEF PIC_WIDTH EQU 7 ; tiles
DEF PIC_HEIGHT EQU PIC_WIDTH ; tiles
DEF PIC_SIZE EQU PIC_WIDTH * PIC_HEIGHT ; tiles

DEF SPRITEBUFFERSIZE EQU PIC_WIDTH * PIC_HEIGHT * TILE_1BPP_SIZE

; DMGPalToCGBPal
DEF CONVERT_BGP EQU 0
Expand Down
Loading