Made images match there definition in fxconv-metadata.txt
This commit is contained in:
parent
a63096e629
commit
c66ddc94a5
|
@ -6,8 +6,8 @@
|
||||||
#include "game_data.hpp"
|
#include "game_data.hpp"
|
||||||
|
|
||||||
struct texture_t builtin_textures[NB_TEXTURES] = {
|
struct texture_t builtin_textures[NB_TEXTURES] = {
|
||||||
{"player_idle_sheet", &player_idle_sheet},
|
{"player_idle_sheet", &img_player_idle_sheet},
|
||||||
{"player_run_sheet", &player_run_sheet}
|
{"player_run_sheet", &img_player_run_sheet}
|
||||||
};
|
};
|
||||||
|
|
||||||
void load_json_into_game_data(json *json_input, game_data_t *bin_output)
|
void load_json_into_game_data(json *json_input, game_data_t *bin_output)
|
||||||
|
@ -20,4 +20,4 @@ void write_game_data_as_bin_into_file(game_data_t *game_data, std::ofstream *bin
|
||||||
|
|
||||||
void free_game_data(game_data_t *game_data)
|
void free_game_data(game_data_t *game_data)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
using nlohmann::json;
|
using nlohmann::json;
|
||||||
|
|
||||||
extern bopti_image_t player_idle_sheet;
|
extern bopti_image_t img_player_idle_sheet;
|
||||||
extern bopti_image_t player_run_sheet;
|
extern bopti_image_t img_player_run_sheet;
|
||||||
|
|
||||||
typedef struct texture_t {
|
typedef struct texture_t {
|
||||||
const char *name;
|
const char *name;
|
||||||
|
@ -28,4 +28,4 @@ void write_game_data_as_bin_into_file(game_data_t *game_data, std::ofstream *bin
|
||||||
|
|
||||||
void free_game_data(game_data_t *game_data);
|
void free_game_data(game_data_t *game_data);
|
||||||
|
|
||||||
#endif // GAME_DATA_HPP
|
#endif // GAME_DATA_HPP
|
||||||
|
|
Loading…
Reference in New Issue