Fix sprite artifacts on stairs by generating all metasprites with -spr8x16
This commit is contained in:
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user