Skip to content

Commit

Permalink
build/assets: .1bpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Icedude907 committed Nov 12, 2023
1 parent a4734a8 commit ce7ac03
Show file tree
Hide file tree
Showing 7 changed files with 397 additions and 408 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*.ss[0-9]
*.sg1

*.1bpp
*.4bpp
*.lz
*.rl
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ clean-assets:
rm -f $(DATA_ASM_SUBDIR)/layouts/layouts.inc $(DATA_ASM_SUBDIR)/layouts/layouts_table.inc
rm -f $(DATA_ASM_SUBDIR)/maps/connections.inc $(DATA_ASM_SUBDIR)/maps/events.inc $(DATA_ASM_SUBDIR)/maps/groups.inc $(DATA_ASM_SUBDIR)/maps/headers.inc
find sound -iname '*.bin' -exec rm {} +
find . \( -iname '*.1bpp' -o -iname '*.4bpp' -o -iname '*.lz' -o -iname '*.rl' -o -iname '*.latfont' -o -iname '*.hwjpnfont' -o -iname '*.fwjpnfont' \) -exec rm {} +
find . \( -iname '*.4bpp' -o -iname '*.lz' -o -iname '*.rl' -o -iname '*.latfont' -o -iname '*.hwjpnfont' -o -iname '*.fwjpnfont' \) -exec rm {} +
find $(DATA_ASM_SUBDIR)/maps \( -iname 'connections.inc' -o -iname 'events.inc' -o -iname 'header.inc' \) -exec rm {} +

tidy: tidynonmodern tidymodern
Expand Down
2 changes: 1 addition & 1 deletion assets.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
%.aif: ;

# FIXME: Lots of mkdir - we need to copy the directory structure
%.1bpp: %.png
$(ASSETS_OBJ_DIR)/%.1bpp: %.png
@mkdir -p $(@D)
$(GFX) $< $@
%.4bpp: %.png
Expand Down
18 changes: 4 additions & 14 deletions graphics_file_rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ $(CASTFORM_OUTDIR)/normal.gbapal: $(patsubst %,$(CASTFORM_OUTDIR)/%/normal.gbapa
$(CASTFORM_OUTDIR)/shiny.gbapal: $(patsubst %,$(CASTFORM_OUTDIR)/%/shiny.gbapal,$(castform_types))
cat $^ >$@


### Spinda
$(SPINDA_OUTDIR)/%.1bpp: $(SPINDAGFXDIR)/%.png
$(GFX) $< $@ -plain -data_width 2

### Tilesets ###

Expand Down Expand Up @@ -697,16 +699,4 @@ $(NAMINGGFXDIR)/cursor_squished.4bpp: %.4bpp: %.png
$(GFX) $< $@ -num_tiles 5 -Wnum_tiles

$(NAMINGGFXDIR)/cursor_filled.4bpp: %.4bpp: %.png
$(GFX) $< $@ -num_tiles 5 -Wnum_tiles

$(SPINDAGFXDIR)/spot_0.1bpp: %.1bpp: %.png
$(GFX) $< $@ -plain -data_width 2

$(SPINDAGFXDIR)/spot_1.1bpp: %.1bpp: %.png
$(GFX) $< $@ -plain -data_width 2

$(SPINDAGFXDIR)/spot_2.1bpp: %.1bpp: %.png
$(GFX) $< $@ -plain -data_width 2

$(SPINDAGFXDIR)/spot_3.1bpp: %.1bpp: %.png
$(GFX) $< $@ -plain -data_width 2
$(GFX) $< $@ -num_tiles 5 -Wnum_tiles
772 changes: 386 additions & 386 deletions src/data/graphics/pokemon.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ const u32 gBattleAnimUnusedPal_Unknown2[] = INCBIN_U32("build/assets/graphics/ba
#include "data/graphics/trainers.h"

const u8 gMonIcon_QuestionMark[] = INCBIN_U8("graphics/pokemon/question_mark/icon.4bpp");
const u8 gMonFootprint_QuestionMark[] = INCBIN_U8("graphics/pokemon/question_mark/footprint.1bpp");
const u8 gMonFootprint_QuestionMark[] = INCBIN_U8("build/assets/graphics/pokemon/question_mark/footprint.1bpp");

const u32 gBattleVSFrame_Gfx[] = INCBIN_U32("graphics/battle_transitions/vs_frame.4bpp.lz");
const u32 gBattleVSFrame_Tilemap[] = INCBIN_U32("graphics/battle_transitions/vs_frame.bin.lz");
Expand Down
8 changes: 4 additions & 4 deletions src/pokemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,10 +1354,10 @@ static const u16 sHoennToNationalOrder[NUM_SPECIES - 1] =

const struct SpindaSpot gSpindaSpotGraphics[] =
{
{.x = 16, .y = 7, .image = INCBIN_U16("graphics/spinda_spots/spot_0.1bpp")},
{.x = 40, .y = 8, .image = INCBIN_U16("graphics/spinda_spots/spot_1.1bpp")},
{.x = 22, .y = 25, .image = INCBIN_U16("graphics/spinda_spots/spot_2.1bpp")},
{.x = 34, .y = 26, .image = INCBIN_U16("graphics/spinda_spots/spot_3.1bpp")}
{.x = 16, .y = 7, .image = INCBIN_U16("build/assets/graphics/spinda_spots/spot_0.1bpp")},
{.x = 40, .y = 8, .image = INCBIN_U16("build/assets/graphics/spinda_spots/spot_1.1bpp")},
{.x = 22, .y = 25, .image = INCBIN_U16("build/assets/graphics/spinda_spots/spot_2.1bpp")},
{.x = 34, .y = 26, .image = INCBIN_U16("build/assets/graphics/spinda_spots/spot_3.1bpp")}
};

#include "data/pokemon/item_effects.h"
Expand Down

0 comments on commit ce7ac03

Please sign in to comment.