You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
1
.gitignore
vendored
1
.gitignore
vendored
@@ -37,6 +37,7 @@ pokecrystal.txt
|
|||||||
*.dimensions
|
*.dimensions
|
||||||
*.gbcpal
|
*.gbcpal
|
||||||
*.2bpp
|
*.2bpp
|
||||||
|
*.1bpp
|
||||||
*.lz
|
*.lz
|
||||||
*.pal
|
*.pal
|
||||||
*.animated.tilemap
|
*.animated.tilemap
|
||||||
|
@@ -56,10 +56,10 @@ make
|
|||||||
|
|
||||||
To build on Windows, install [**Cygwin**](http://cygwin.com/install.html) with the default settings.
|
To build on Windows, install [**Cygwin**](http://cygwin.com/install.html) with the default settings.
|
||||||
|
|
||||||
In the installer, select the following packages: `make` `git` `gettext`
|
In the installer, select the following packages: `make` `git` `gettext` `gcc-core`
|
||||||
|
|
||||||
Then get [**rgbds 0.2.5**](https://github.com/rednex/rgbds/releases/). Versions 0.3.0 and later are not compatible.
|
Then get [**rgbds 0.2.5**](https://github.com/rednex/rgbds/releases/). Versions 0.3.0 and later are not compatible.
|
||||||
Extract the archive and put `rgbasm.exe`, `rgblink.exe`, `rgbfix.exe` and `rgbgfx.exe` in `C:\cygwin64\usr\local\bin`.
|
Extract the archive and put all the `exe` and `dll` files individually in `C:\cygwin64\usr\local\bin`.
|
||||||
|
|
||||||
In the **Cygwin terminal**:
|
In the **Cygwin terminal**:
|
||||||
|
|
||||||
@@ -67,7 +67,7 @@ In the **Cygwin terminal**:
|
|||||||
|
|
||||||
git clone https://github.com/pret/pokecrystal
|
git clone https://github.com/pret/pokecrystal
|
||||||
cd pokecrystal
|
cd pokecrystal
|
||||||
make tools
|
make tools CC=gcc
|
||||||
```
|
```
|
||||||
|
|
||||||
To build **pokecrystal.gbc**:
|
To build **pokecrystal.gbc**:
|
||||||
|
84
Makefile
84
Makefile
@@ -58,10 +58,6 @@ pokecrystal.gbc: $(crystal_obj)
|
|||||||
rgbfix -Cjv -i BYTE -k 01 -l 0x33 -m 0x10 -p 0 -r 3 -t PM_CRYSTAL $@
|
rgbfix -Cjv -i BYTE -k 01 -l 0x33 -m 0x10 -p 0 -r 3 -t PM_CRYSTAL $@
|
||||||
|
|
||||||
|
|
||||||
define LOUD
|
|
||||||
echo "$1"; $1
|
|
||||||
endef
|
|
||||||
|
|
||||||
# For files that the compressor can't match, there will be a .lz file suffixed with the hash of the correct uncompressed file.
|
# For files that the compressor can't match, there will be a .lz file suffixed with the hash of the correct uncompressed file.
|
||||||
# If the hash of the uncompressed file matches, use this .lz instead.
|
# If the hash of the uncompressed file matches, use this .lz instead.
|
||||||
# This allows pngs to be used for compressed graphics and still match.
|
# This allows pngs to be used for compressed graphics and still match.
|
||||||
@@ -69,11 +65,7 @@ endef
|
|||||||
%.lz: hash = $(shell md5sum $(*D)/$(*F) | sed "s/\(.\{8\}\).*/\1/")
|
%.lz: hash = $(shell md5sum $(*D)/$(*F) | sed "s/\(.\{8\}\).*/\1/")
|
||||||
%.lz: %
|
%.lz: %
|
||||||
$(eval filename := $@.$(hash))
|
$(eval filename := $@.$(hash))
|
||||||
@if [ -f $(filename) ]; then \
|
$(if $(wildcard $(filename)),cp $(filename) $@,tools/lzcomp $< $@)
|
||||||
$(call LOUD, cp $(filename) $@); \
|
|
||||||
else \
|
|
||||||
$(call LOUD, tools/lzcomp $< $@); \
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Terrible hacks to match animations. Delete these rules if you don't care about matching.
|
# Terrible hacks to match animations. Delete these rules if you don't care about matching.
|
||||||
|
|
||||||
@@ -118,20 +110,82 @@ gfx/pics/%/front.animated.tilemap: gfx/pics/%/front.2bpp gfx/pics/%/front.dimens
|
|||||||
|
|
||||||
# Misc file-specific graphics rules
|
# Misc file-specific graphics rules
|
||||||
|
|
||||||
gfx/shrink%.2bpp: gfx/shrink%.png
|
gfx/shrink1.2bpp: rgbgfx += -h
|
||||||
rgbgfx -h -o $@ $<
|
gfx/shrink2.2bpp: rgbgfx += -h
|
||||||
|
|
||||||
gfx/trainers/%.2bpp: gfx/trainers/%.png
|
gfx/trainers/%.2bpp: rgbgfx += -h
|
||||||
rgbgfx -h -o $@ $<
|
gfx/trainers/%.pal: gfx/trainers/%.gbcpal
|
||||||
|
tools/palette -p $< > $@
|
||||||
|
|
||||||
|
gfx/mail/0b9b46.1bpp: tools/gfx += --remove-whitespace
|
||||||
|
gfx/mail/0b9d46.1bpp: tools/gfx += --remove-whitespace
|
||||||
|
gfx/mail/0b9d86.1bpp: tools/gfx += --remove-whitespace
|
||||||
|
gfx/mail/0b9dc6.1bpp: tools/gfx += --remove-whitespace
|
||||||
|
gfx/mail/0b9cfe.1bpp: tools/gfx += --remove-whitespace
|
||||||
|
|
||||||
|
gfx/pokedex/%.2bpp: tools/gfx += --trim-whitespace
|
||||||
|
|
||||||
|
gfx/title/crystal.2bpp: tools/gfx += --interleave --width=48
|
||||||
|
gfx/title/old_fg.2bpp: tools/gfx += --interleave --width=64
|
||||||
|
gfx/title/logo.2bpp: rgbgfx += -x 4
|
||||||
|
|
||||||
|
gfx/trade/ball.2bpp: tools/gfx += --remove-whitespace
|
||||||
|
|
||||||
|
gfx/slots_2.2bpp: tools/gfx += --interleave --width=16
|
||||||
|
gfx/slots_3.2bpp: tools/gfx += --interleave --width=24 --remove-duplicates --keep-whitespace --remove-xflip
|
||||||
|
gfx/slots_3a.2bpp: tools/gfx += --interleave --width=16
|
||||||
|
gfx/slots_3b.2bpp: tools/gfx += --interleave --width=24 --remove-duplicates --keep-whitespace --remove-xflip
|
||||||
|
|
||||||
|
gfx/fx/angels.2bpp: tools/gfx += --trim-whitespace
|
||||||
|
gfx/fx/beam.2bpp: tools/gfx += --remove-xflip --remove-yflip --remove-whitespace
|
||||||
|
gfx/fx/bubble.2bpp: tools/gfx += --trim-whitespace
|
||||||
|
gfx/fx/charge.2bpp: tools/gfx += --trim-whitespace
|
||||||
|
gfx/fx/egg.2bpp: tools/gfx += --remove-whitespace
|
||||||
|
gfx/fx/explosion.2bpp: tools/gfx += --remove-whitespace
|
||||||
|
gfx/fx/hit.2bpp: tools/gfx += --remove-whitespace
|
||||||
|
gfx/fx/horn.2bpp: tools/gfx += --remove-whitespace
|
||||||
|
gfx/fx/lightning.2bpp: tools/gfx += --remove-whitespace
|
||||||
|
gfx/fx/misc.2bpp: tools/gfx += --remove-duplicates --remove-xflip
|
||||||
|
gfx/fx/noise.2bpp: tools/gfx += --remove-whitespace
|
||||||
|
gfx/fx/objects.2bpp: tools/gfx += --remove-whitespace --remove-xflip
|
||||||
|
gfx/fx/pokeball.2bpp: tools/gfx += --remove-xflip --keep-whitespace
|
||||||
|
gfx/fx/reflect.2bpp: tools/gfx += --remove-whitespace
|
||||||
|
gfx/fx/rocks.2bpp: tools/gfx += --remove-whitespace
|
||||||
|
gfx/fx/skyattack.2bpp: tools/gfx += --remove-whitespace
|
||||||
|
gfx/fx/status.2bpp: tools/gfx += --remove-whitespace
|
||||||
|
|
||||||
|
gfx/misc/chris.2bpp: rgbgfx += -h
|
||||||
|
gfx/misc/chris_card.2bpp: rgbgfx += -h
|
||||||
|
gfx/misc/kris.2bpp: rgbgfx += -h
|
||||||
|
gfx/misc/kris_card.2bpp: rgbgfx += -h
|
||||||
|
gfx/misc/kris_back.2bpp: rgbgfx += -h
|
||||||
|
gfx/misc/dude.2bpp: rgbgfx += -h
|
||||||
|
gfx/misc/unknown_egg.2bpp: rgbgfx += -h
|
||||||
|
gfx/misc/player.2bpp: rgbgfx += -h
|
||||||
|
gfx/misc/pokegear.2bpp: rgbgfx += -x2
|
||||||
|
gfx/misc/pokegear_sprites.2bpp: tools/gfx += --trim-whitespace
|
||||||
|
|
||||||
|
gfx/unknown/0e0ea8.2bpp: tools/gfx += --remove-whitespace
|
||||||
|
gfx/unknown/0f8f34.1bpp: tools/gfx += --trim-whitespace
|
||||||
|
gfx/unknown/16c173.2bpp: tools/gfx += --remove-duplicates --remove-xflip
|
||||||
|
gfx/unknown/170d16.2bpp: tools/gfx += --trim-whitespace
|
||||||
|
gfx/unknown/1715a4.2bpp: tools/gfx += --trim-whitespace
|
||||||
|
gfx/unknown/1715a4_nonmatching.2bpp: tools/gfx += --remove-duplicates --remove-xflip
|
||||||
|
gfx/unknown/171db1.2bpp: tools/gfx += --trim-whitespace
|
||||||
|
gfx/unknown/172f1f.2bpp: tools/gfx += --trim-whitespace
|
||||||
|
|
||||||
|
|
||||||
%.bin: ;
|
%.bin: ;
|
||||||
%.blk: ;
|
%.blk: ;
|
||||||
|
|
||||||
%.2bpp: %.png
|
%.2bpp: %.png
|
||||||
rgbgfx -o $@ $<
|
rgbgfx $(rgbgfx) -o $@ $<
|
||||||
|
$(if $(tools/gfx),tools/gfx $(tools/gfx) -o $@ $@)
|
||||||
|
|
||||||
%.1bpp: %.png
|
%.1bpp: %.png
|
||||||
rgbgfx -d1 -o $@ $<
|
rgbgfx $(rgbgfx) -d1 -o $@ $<
|
||||||
|
$(if $(tools/gfx),tools/gfx $(tools/gfx) -d1 -o $@ $@)
|
||||||
|
|
||||||
%.tilemap: %.png
|
%.tilemap: %.png
|
||||||
rgbgfx -t $@ $<
|
rgbgfx -t $@ $<
|
||||||
%.gbcpal: %.png
|
%.gbcpal: %.png
|
||||||
|
@@ -367,7 +367,8 @@ GameFreakLogoPalettes: ; e47ac
|
|||||||
; e47cc
|
; e47cc
|
||||||
|
|
||||||
GameFreakLogo: ; e47cc
|
GameFreakLogo: ; e47cc
|
||||||
INCBIN "gfx/splash/logo.1bpp"
|
INCBIN "gfx/splash/logo1.1bpp"
|
||||||
|
INCBIN "gfx/splash/logo2.1bpp"
|
||||||
; e48ac
|
; e48ac
|
||||||
|
|
||||||
CrystalIntro: ; e48ac
|
CrystalIntro: ; e48ac
|
||||||
|
@@ -2987,7 +2987,7 @@ INCBIN "gfx/misc/kanto.bin"
|
|||||||
PokedexNestIconGFX: ; 922d1
|
PokedexNestIconGFX: ; 922d1
|
||||||
INCBIN "gfx/pokegear/dexmap_nest_icon.2bpp"
|
INCBIN "gfx/pokegear/dexmap_nest_icon.2bpp"
|
||||||
FlyMapLabelBorderGFX: ; 922e1
|
FlyMapLabelBorderGFX: ; 922e1
|
||||||
INCBIN "gfx/pokegear/flymap_label_border.2bpp"
|
INCBIN "gfx/pokegear/flymap_label_border.1bpp"
|
||||||
|
|
||||||
; XXX
|
; XXX
|
||||||
xor a
|
xor a
|
||||||
|
@@ -397,11 +397,11 @@ OakText_ResponseToSetTime: ; 0x908b8
|
|||||||
; 0x908fb
|
; 0x908fb
|
||||||
|
|
||||||
GFX_908fb: ; 908fb
|
GFX_908fb: ; 908fb
|
||||||
INCBIN "gfx/unknown/0908fb.2bpp"
|
INCBIN "gfx/unknown/0908fb.1bpp"
|
||||||
GFX_90903: ; 90903
|
GFX_90903: ; 90903
|
||||||
INCBIN "gfx/unknown/090903.2bpp"
|
INCBIN "gfx/unknown/090903.1bpp"
|
||||||
GFX_9090b: ; 9090b
|
GFX_9090b: ; 9090b
|
||||||
INCBIN "gfx/unknown/09090b.2bpp"
|
INCBIN "gfx/unknown/09090b.1bpp"
|
||||||
; 90913
|
; 90913
|
||||||
|
|
||||||
Special_SetDayOfWeek: ; 90913
|
Special_SetDayOfWeek: ; 90913
|
||||||
|
@@ -387,15 +387,15 @@ AnimateTitleCrystal: ; 10ef32
|
|||||||
; 10ef46
|
; 10ef46
|
||||||
|
|
||||||
TitleSuicuneGFX: ; 10ef46
|
TitleSuicuneGFX: ; 10ef46
|
||||||
INCBIN "gfx/title/suicune.w128.2bpp.lz"
|
INCBIN "gfx/title/suicune.2bpp.lz"
|
||||||
; 10f326
|
; 10f326
|
||||||
|
|
||||||
TitleLogoGFX: ; 10f326
|
TitleLogoGFX: ; 10f326
|
||||||
INCBIN "gfx/title/logo.w160.t4.2bpp.lz"
|
INCBIN "gfx/title/logo.2bpp.lz"
|
||||||
; 10fcee
|
; 10fcee
|
||||||
|
|
||||||
TitleCrystalGFX: ; 10fcee
|
TitleCrystalGFX: ; 10fcee
|
||||||
INCBIN "gfx/title/crystal.w48.interleave.2bpp.lz"
|
INCBIN "gfx/title/crystal.2bpp.lz"
|
||||||
; 10fede
|
; 10fede
|
||||||
|
|
||||||
TitleScreenPalettes:
|
TitleScreenPalettes:
|
||||||
|
@@ -608,8 +608,8 @@ TrainerCard_JohtoBadgesOAM: ; 254c9
|
|||||||
|
|
||||||
CardStatusGFX: INCBIN "gfx/misc/card_status.2bpp"
|
CardStatusGFX: INCBIN "gfx/misc/card_status.2bpp"
|
||||||
|
|
||||||
LeaderGFX: INCBIN "gfx/misc/leaders.w24.2bpp"
|
LeaderGFX: INCBIN "gfx/misc/leaders.2bpp"
|
||||||
LeaderGFX2: INCBIN "gfx/misc/leaders.w24.2bpp"
|
LeaderGFX2: INCBIN "gfx/misc/leaders.2bpp"
|
||||||
BadgeGFX: INCBIN "gfx/misc/badges.2bpp"
|
BadgeGFX: INCBIN "gfx/misc/badges.2bpp"
|
||||||
BadgeGFX2: INCBIN "gfx/misc/badges.2bpp"
|
BadgeGFX2: INCBIN "gfx/misc/badges.2bpp"
|
||||||
|
|
||||||
|
Binary file not shown.
BIN
gfx/battle/balls.png
Normal file
BIN
gfx/battle/balls.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 115 B |
Binary file not shown.
BIN
gfx/battle/enemy_hp_bar_border.png
Normal file
BIN
gfx/battle/enemy_hp_bar_border.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 111 B |
Binary file not shown.
BIN
gfx/battle/expbar.png
Normal file
BIN
gfx/battle/expbar.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 120 B |
Binary file not shown.
BIN
gfx/battle/expbarend.png
Normal file
BIN
gfx/battle/expbarend.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 85 B |
Binary file not shown.
BIN
gfx/battle/expbarend_sgb.png
Normal file
BIN
gfx/battle/expbarend_sgb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 85 B |
Binary file not shown.
BIN
gfx/battle/hp_exp_bar_border.png
Normal file
BIN
gfx/battle/hp_exp_bar_border.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 116 B |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user