Fix sprite artifacts on stairs by generating all metasprites with -spr8x16

This commit is contained in:
2026-06-23 19:51:09 +02:00
parent 7d3003203c
commit 8d71a23ae9
11 changed files with 15 additions and 15 deletions
+5 -5
View File
@@ -22,11 +22,11 @@ generate_images: $(SCRIPTS_DIR)/generate_assets.py $(SCRIPTS_DIR)/generate_enemy
# Convert image assets to C source files # Convert image assets to C source files
generate_c_assets: generate_images generate_c_assets: generate_images
$(PNG2ASSET) $(ASSETS_DIR)/tiles.png -c $(SRC_DIR)/tiles.c -map -bpp 2 -noflip -keep_palette_order $(PNG2ASSET) $(ASSETS_DIR)/tiles.png -c $(SRC_DIR)/tiles.c -map -bpp 2 -noflip -keep_palette_order
$(PNG2ASSET) $(ASSETS_DIR)/player.png -c $(SRC_DIR)/player.c -sw 16 -sh 16 -bpp 2 -noflip -keep_palette_order $(PNG2ASSET) $(ASSETS_DIR)/player.png -c $(SRC_DIR)/player.c -sw 16 -sh 16 -bpp 2 -noflip -keep_palette_order -spr8x16
$(PNG2ASSET) $(ASSETS_DIR)/enemy.png -c $(SRC_DIR)/enemy.c -sw 16 -sh 16 -bpp 2 -noflip -keep_palette_order -sp 0x10 $(PNG2ASSET) $(ASSETS_DIR)/enemy.png -c $(SRC_DIR)/enemy.c -sw 16 -sh 16 -bpp 2 -noflip -keep_palette_order -sp 0x10 -spr8x16
$(PNG2ASSET) $(ASSETS_DIR)/gameover.png -c $(SRC_DIR)/gameover.c -bpp 2 -noflip -keep_palette_order $(PNG2ASSET) $(ASSETS_DIR)/gameover.png -c $(SRC_DIR)/gameover.c -bpp 2 -noflip -keep_palette_order -spr8x16
$(PNG2ASSET) $(ASSETS_DIR)/victory.png -c $(SRC_DIR)/victory.c -bpp 2 -noflip -keep_palette_order $(PNG2ASSET) $(ASSETS_DIR)/victory.png -c $(SRC_DIR)/victory.c -bpp 2 -noflip -keep_palette_order -spr8x16
$(PNG2ASSET) $(ASSETS_DIR)/stamina.png -c $(SRC_DIR)/stamina.c -bpp 2 -noflip -keep_palette_order $(PNG2ASSET) $(ASSETS_DIR)/stamina.png -c $(SRC_DIR)/stamina.c -bpp 2 -noflip -keep_palette_order -spr8x16
$(PNG2ASSET) $(ASSETS_DIR)/title_bg.png -c $(SRC_DIR)/title_bg.c -map -bpp 2 -noflip -keep_palette_order -max_palettes 1 $(PNG2ASSET) $(ASSETS_DIR)/title_bg.png -c $(SRC_DIR)/title_bg.c -map -bpp 2 -noflip -keep_palette_order -max_palettes 1
$(PNG2ASSET) $(ASSETS_DIR)/stairs_sprite.png -c $(SRC_DIR)/stairs_sprite.c -sw 32 -sh 16 -bpp 2 -noflip -keep_palette_order -spr8x16 $(PNG2ASSET) $(ASSETS_DIR)/stairs_sprite.png -c $(SRC_DIR)/stairs_sprite.c -sw 32 -sh 16 -bpp 2 -noflip -keep_palette_order -spr8x16
+1 -1
View File
@@ -1,5 +1,5 @@
//AUTOGENERATED FILE FROM png2asset //AUTOGENERATED FILE FROM png2asset
// Conversion args: /enemy.png -c /enemy.c -sw 16 -sh 16 -bpp 2 -noflip -keep_palette_order -sp 0x10 // Conversion args: /enemy.png -c /enemy.c -sw 16 -sh 16 -bpp 2 -noflip -keep_palette_order -sp 0x10 -spr8x16
#include <stdint.h> #include <stdint.h>
#include <gbdk/platform.h> #include <gbdk/platform.h>
+1 -1
View File
@@ -1,5 +1,5 @@
//AUTOGENERATED FILE FROM png2asset //AUTOGENERATED FILE FROM png2asset
// Conversion args: /enemy.png -c /enemy.c -sw 16 -sh 16 -bpp 2 -noflip -keep_palette_order -sp 0x10 // Conversion args: /enemy.png -c /enemy.c -sw 16 -sh 16 -bpp 2 -noflip -keep_palette_order -sp 0x10 -spr8x16
#ifndef METASPRITE_enemy_H #ifndef METASPRITE_enemy_H
#define METASPRITE_enemy_H #define METASPRITE_enemy_H
+1 -1
View File
@@ -1,5 +1,5 @@
//AUTOGENERATED FILE FROM png2asset //AUTOGENERATED FILE FROM png2asset
// Conversion args: /gameover.png -c /gameover.c -bpp 2 -noflip -keep_palette_order // Conversion args: /gameover.png -c /gameover.c -bpp 2 -noflip -keep_palette_order -spr8x16
#include <stdint.h> #include <stdint.h>
#include <gbdk/platform.h> #include <gbdk/platform.h>
+1 -1
View File
@@ -1,5 +1,5 @@
//AUTOGENERATED FILE FROM png2asset //AUTOGENERATED FILE FROM png2asset
// Conversion args: /gameover.png -c /gameover.c -bpp 2 -noflip -keep_palette_order // Conversion args: /gameover.png -c /gameover.c -bpp 2 -noflip -keep_palette_order -spr8x16
#ifndef METASPRITE_gameover_H #ifndef METASPRITE_gameover_H
#define METASPRITE_gameover_H #define METASPRITE_gameover_H
+1 -1
View File
@@ -1,5 +1,5 @@
//AUTOGENERATED FILE FROM png2asset //AUTOGENERATED FILE FROM png2asset
// Conversion args: /player.png -c /player.c -sw 16 -sh 16 -bpp 2 -noflip -keep_palette_order // Conversion args: /player.png -c /player.c -sw 16 -sh 16 -bpp 2 -noflip -keep_palette_order -spr8x16
#include <stdint.h> #include <stdint.h>
#include <gbdk/platform.h> #include <gbdk/platform.h>
+1 -1
View File
@@ -1,5 +1,5 @@
//AUTOGENERATED FILE FROM png2asset //AUTOGENERATED FILE FROM png2asset
// Conversion args: /player.png -c /player.c -sw 16 -sh 16 -bpp 2 -noflip -keep_palette_order // Conversion args: /player.png -c /player.c -sw 16 -sh 16 -bpp 2 -noflip -keep_palette_order -spr8x16
#ifndef METASPRITE_player_H #ifndef METASPRITE_player_H
#define METASPRITE_player_H #define METASPRITE_player_H
+1 -1
View File
@@ -1,5 +1,5 @@
//AUTOGENERATED FILE FROM png2asset //AUTOGENERATED FILE FROM png2asset
// Conversion args: /stamina.png -c /stamina.c -bpp 2 -noflip -keep_palette_order // Conversion args: /stamina.png -c /stamina.c -bpp 2 -noflip -keep_palette_order -spr8x16
#include <stdint.h> #include <stdint.h>
#include <gbdk/platform.h> #include <gbdk/platform.h>
+1 -1
View File
@@ -1,5 +1,5 @@
//AUTOGENERATED FILE FROM png2asset //AUTOGENERATED FILE FROM png2asset
// Conversion args: /stamina.png -c /stamina.c -bpp 2 -noflip -keep_palette_order // Conversion args: /stamina.png -c /stamina.c -bpp 2 -noflip -keep_palette_order -spr8x16
#ifndef METASPRITE_stamina_H #ifndef METASPRITE_stamina_H
#define METASPRITE_stamina_H #define METASPRITE_stamina_H
+1 -1
View File
@@ -1,5 +1,5 @@
//AUTOGENERATED FILE FROM png2asset //AUTOGENERATED FILE FROM png2asset
// Conversion args: /victory.png -c /victory.c -bpp 2 -noflip -keep_palette_order // Conversion args: /victory.png -c /victory.c -bpp 2 -noflip -keep_palette_order -spr8x16
#include <stdint.h> #include <stdint.h>
#include <gbdk/platform.h> #include <gbdk/platform.h>
+1 -1
View File
@@ -1,5 +1,5 @@
//AUTOGENERATED FILE FROM png2asset //AUTOGENERATED FILE FROM png2asset
// Conversion args: /victory.png -c /victory.c -bpp 2 -noflip -keep_palette_order // Conversion args: /victory.png -c /victory.c -bpp 2 -noflip -keep_palette_order -spr8x16
#ifndef METASPRITE_victory_H #ifndef METASPRITE_victory_H
#define METASPRITE_victory_H #define METASPRITE_victory_H