mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Merge branch 'master' of https://github.com/pret/pokecrystal
This commit is contained in:
commit
08e6009e61
5
Makefile
5
Makefile
@ -2,9 +2,9 @@ PYTHON := python
|
|||||||
MD5 := md5sum -c --quiet
|
MD5 := md5sum -c --quiet
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.SUFFIXES: .2bpp
|
|
||||||
.PHONY: all clean crystal crystal11
|
.PHONY: all clean crystal crystal11
|
||||||
.SECONDEXPANSION:
|
.SECONDEXPANSION:
|
||||||
|
.PRECIOUS: %.2bpp %.1bpp
|
||||||
|
|
||||||
poketools := extras/pokemontools
|
poketools := extras/pokemontools
|
||||||
gfx := $(PYTHON) gfx.py
|
gfx := $(PYTHON) gfx.py
|
||||||
@ -60,16 +60,13 @@ pokecrystal.gbc: $(crystal_obj)
|
|||||||
rgblink -n $*.sym -m $*.map -o $@ $^
|
rgblink -n $*.sym -m $*.map -o $@ $^
|
||||||
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 $@
|
||||||
|
|
||||||
|
|
||||||
%.png: ;
|
%.png: ;
|
||||||
%.2bpp: %.png ; $(gfx) 2bpp $<
|
%.2bpp: %.png ; $(gfx) 2bpp $<
|
||||||
%.1bpp: %.png ; $(gfx) 1bpp $<
|
%.1bpp: %.png ; $(gfx) 1bpp $<
|
||||||
%.lz: % ; $(gfx) lz $<
|
%.lz: % ; $(gfx) lz $<
|
||||||
|
|
||||||
|
|
||||||
%.pal: %.2bpp ;
|
%.pal: %.2bpp ;
|
||||||
gfx/pics/%/normal.pal gfx/pics/%/bitmask.asm gfx/pics/%/frames.asm: gfx/pics/%/front.2bpp ;
|
gfx/pics/%/normal.pal gfx/pics/%/bitmask.asm gfx/pics/%/frames.asm: gfx/pics/%/front.2bpp ;
|
||||||
%.bin: ;
|
%.bin: ;
|
||||||
%.blk: ;
|
%.blk: ;
|
||||||
%.tilemap: ;
|
%.tilemap: ;
|
||||||
|
|
||||||
|
@ -226,23 +226,10 @@ endc
|
|||||||
endm
|
endm
|
||||||
|
|
||||||
dict2: macro
|
dict2: macro
|
||||||
if \1 == 0
|
|
||||||
and a
|
|
||||||
else
|
|
||||||
cp \1
|
cp \1
|
||||||
endc
|
jr nz, ._\@
|
||||||
jr nz, \@
|
|
||||||
ld a, \2
|
ld a, \2
|
||||||
\@:
|
._\@:
|
||||||
endm
|
|
||||||
|
|
||||||
dict3: macro
|
|
||||||
if \1 == 0
|
|
||||||
and a
|
|
||||||
else
|
|
||||||
cp \1
|
|
||||||
endc
|
|
||||||
jr z, \2
|
|
||||||
endm
|
endm
|
||||||
|
|
||||||
dict "<DAY>", Char15
|
dict "<DAY>", Char15
|
||||||
@ -281,31 +268,34 @@ endm
|
|||||||
dict "<USER>", PlaceMoveUsersName
|
dict "<USER>", PlaceMoveUsersName
|
||||||
dict "<ENEMY>", PlaceEnemysName
|
dict "<ENEMY>", PlaceEnemysName
|
||||||
dict "<PLAY_G>", PlaceGenderedPlayerName
|
dict "<PLAY_G>", PlaceGenderedPlayerName
|
||||||
dict3 $e4, .place
|
|
||||||
dict3 $e5, .place
|
|
||||||
|
|
||||||
jr .nope
|
cp "゚"
|
||||||
|
jr z, .place ; should be .diacritic
|
||||||
|
cp "゙"
|
||||||
|
jr z, .place ; should be .diacritic
|
||||||
|
jr .not_diacritic
|
||||||
|
|
||||||
|
.diacritic
|
||||||
ld b, a
|
ld b, a
|
||||||
call Diacritic
|
call Diacritic
|
||||||
jp NextChar
|
jp NextChar
|
||||||
.nope
|
|
||||||
|
|
||||||
cp $60
|
.not_diacritic
|
||||||
|
cp $60 ; Regular characters
|
||||||
jr nc, .place
|
jr nc, .place
|
||||||
|
|
||||||
cp $40
|
cp "パ"
|
||||||
jr nc, .handakuten
|
jr nc, .handakuten
|
||||||
|
|
||||||
.dakuten
|
.dakuten
|
||||||
|
|
||||||
cp $20
|
cp $20
|
||||||
jr nc, .daku1
|
jr nc, .daku1
|
||||||
add $80
|
add "カ" - "ガ"
|
||||||
jr .daku2
|
jr .daku2
|
||||||
.daku1
|
.daku1
|
||||||
add $90
|
add "か" - "が"
|
||||||
.daku2
|
.daku2
|
||||||
ld b, $e5 ; dakuten
|
ld b, "゙" ; dakuten
|
||||||
call Diacritic
|
call Diacritic
|
||||||
jr .place
|
jr .place
|
||||||
|
|
||||||
@ -317,7 +307,7 @@ endm
|
|||||||
.han1
|
.han1
|
||||||
add "は" - "ぱ"
|
add "は" - "ぱ"
|
||||||
.han2
|
.han2
|
||||||
ld b, $e4 ; handakuten
|
ld b, "゚" ; handakuten
|
||||||
call Diacritic
|
call Diacritic
|
||||||
|
|
||||||
.place
|
.place
|
||||||
|
@ -191,6 +191,7 @@
|
|||||||
charmap "ビ", $1a
|
charmap "ビ", $1a
|
||||||
charmap "ブ", $1b
|
charmap "ブ", $1b
|
||||||
charmap "ボ", $1c
|
charmap "ボ", $1c
|
||||||
|
; charmap "ベ", $1d
|
||||||
|
|
||||||
charmap "が", $26
|
charmap "が", $26
|
||||||
charmap "ぎ", $27
|
charmap "ぎ", $27
|
||||||
@ -273,11 +274,13 @@
|
|||||||
charmap "ュ", $ae
|
charmap "ュ", $ae
|
||||||
charmap "ョ", $af
|
charmap "ョ", $af
|
||||||
charmap "ィ", $b0
|
charmap "ィ", $b0
|
||||||
|
|
||||||
charmap "あ", $b1
|
charmap "あ", $b1
|
||||||
charmap "い", $b2
|
charmap "い", $b2
|
||||||
charmap "う", $b3
|
charmap "う", $b3
|
||||||
charmap "え", $b4
|
charmap "え", $b4
|
||||||
charmap "お", $b5
|
charmap "お", $b5
|
||||||
|
|
||||||
charmap "か", $b6
|
charmap "か", $b6
|
||||||
charmap "き", $b7
|
charmap "き", $b7
|
||||||
charmap "く", $b8
|
charmap "く", $b8
|
||||||
@ -303,6 +306,7 @@
|
|||||||
charmap "ふ", $cc
|
charmap "ふ", $cc
|
||||||
charmap "へ", $cd
|
charmap "へ", $cd
|
||||||
charmap "ほ", $ce
|
charmap "ほ", $ce
|
||||||
|
|
||||||
charmap "ま", $cf
|
charmap "ま", $cf
|
||||||
charmap "み", $d0
|
charmap "み", $d0
|
||||||
charmap "む", $d1
|
charmap "む", $d1
|
||||||
@ -323,6 +327,10 @@
|
|||||||
charmap "ゃ", $e0
|
charmap "ゃ", $e0
|
||||||
charmap "ゅ", $e1
|
charmap "ゅ", $e1
|
||||||
charmap "ょ", $e2
|
charmap "ょ", $e2
|
||||||
|
|
||||||
charmap "ー", $e3
|
charmap "ー", $e3
|
||||||
|
|
||||||
|
charmap "゚", $e4
|
||||||
|
charmap "゙", $e5
|
||||||
|
|
||||||
charmap "ァ", $e9
|
charmap "ァ", $e9
|
||||||
|
Loading…
Reference in New Issue
Block a user