mirror of
https://git.planet-casio.com/Slyvtt/Collab_RPG.git
synced 2024-12-29 13:03:43 +01:00
Bug fixes
This commit is contained in:
parent
25ea360713
commit
2547f82238
4 changed files with 31 additions and 34 deletions
|
@ -8,7 +8,8 @@ include(GenerateG1A)
|
||||||
include(GenerateG3A)
|
include(GenerateG3A)
|
||||||
|
|
||||||
include(Fxconv)
|
include(Fxconv)
|
||||||
find_package(Gint 2.10 REQUIRED)
|
find_package(Gint 2.11 REQUIRED)
|
||||||
|
# Gint 2.11 is required, because we're using the new macros like GINT_RENDER_RGB
|
||||||
find_package(LibProf 2.4 REQUIRED)
|
find_package(LibProf 2.4 REQUIRED)
|
||||||
|
|
||||||
#set the color mode either to 1b or 2b
|
#set the color mode either to 1b or 2b
|
||||||
|
@ -90,7 +91,11 @@ elseif("${FXSDK_PLATFORM_LONG}" STREQUAL fx9860G_G3A)
|
||||||
add_executable(myaddin ${SOURCES} ${ASSETS} ${ASSETS_${FXSDK_PLATFORM}} ${ASSETS_${FXSDK_PLATFORM}_${COLORMODE_fx}} )
|
add_executable(myaddin ${SOURCES} ${ASSETS} ${ASSETS_${FXSDK_PLATFORM}} ${ASSETS_${FXSDK_PLATFORM}_${COLORMODE_fx}} )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
target_link_options(myaddin PRIVATE -Wl,-Map=Build_Addin.map -Wl,--print-memory-usage)
|
||||||
|
target_link_libraries(myaddin LibProf::LibProf Gint::Gint)
|
||||||
|
|
||||||
|
|
||||||
|
if("${FXSDK_PLATFORM_LONG}" STREQUAL fx9860G)
|
||||||
# fx colormode
|
# fx colormode
|
||||||
if("${COLORMODE_fx}" STREQUAL 1b)
|
if("${COLORMODE_fx}" STREQUAL 1b)
|
||||||
target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -DCOLOR1BIT)
|
target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -DCOLOR1BIT)
|
||||||
|
@ -100,27 +105,6 @@ if("${COLORMODE_fx}" STREQUAL 2b)
|
||||||
target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -DCOLOR2BIT)
|
target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -DCOLOR2BIT)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# cg colormode
|
|
||||||
if("${COLORMODE_cg}" STREQUAL 1b)
|
|
||||||
target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -DCOLOR1BIT)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if("${COLORMODE_cg}" STREQUAL 2b)
|
|
||||||
target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -DCOLOR2BIT)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if("${COLORMODE_cg}" STREQUAL EGA64)
|
|
||||||
target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -DCOLOREGA)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
|
|
||||||
target_link_options(myaddin PRIVATE -Wl,-Map=Build_Addin.map -Wl,--print-memory-usage)
|
|
||||||
target_link_libraries(myaddin LibProf::LibProf Gint::Gint)
|
|
||||||
|
|
||||||
|
|
||||||
if("${FXSDK_PLATFORM_LONG}" STREQUAL fx9860G)
|
|
||||||
|
|
||||||
if("${COLORMODE_fx}" STREQUAL 1b)
|
if("${COLORMODE_fx}" STREQUAL 1b)
|
||||||
generate_g1a(TARGET myaddin OUTPUT "RPG_1b.g1a"
|
generate_g1a(TARGET myaddin OUTPUT "RPG_1b.g1a"
|
||||||
NAME "RPG PC 1b" ICON assets-fx/1b/icon1b.png)
|
NAME "RPG PC 1b" ICON assets-fx/1b/icon1b.png)
|
||||||
|
@ -134,6 +118,18 @@ if("${FXSDK_PLATFORM_LONG}" STREQUAL fx9860G)
|
||||||
|
|
||||||
|
|
||||||
elseif("${FXSDK_PLATFORM_LONG}" STREQUAL fxCG50)
|
elseif("${FXSDK_PLATFORM_LONG}" STREQUAL fxCG50)
|
||||||
|
# cg colormode
|
||||||
|
if("${COLORMODE_cg}" STREQUAL 1b)
|
||||||
|
target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -DCOLOR1BIT)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if("${COLORMODE_cg}" STREQUAL 2b)
|
||||||
|
target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -DCOLOR2BIT)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if("${COLORMODE_cg}" STREQUAL EGA64)
|
||||||
|
target_compile_options(myaddin PRIVATE -Wall -Wextra -Os -DCOLOREGA)
|
||||||
|
endif()
|
||||||
|
|
||||||
if("${COLORMODE_cg}" STREQUAL 1b)
|
if("${COLORMODE_cg}" STREQUAL 1b)
|
||||||
generate_g3a(TARGET myaddin OUTPUT "RPG_1b.g3a"
|
generate_g3a(TARGET myaddin OUTPUT "RPG_1b.g3a"
|
||||||
|
|
|
@ -45,4 +45,12 @@
|
||||||
#define F_WIDTH (32*PXSIZE)
|
#define F_WIDTH (32*PXSIZE)
|
||||||
#define F_HEIGHT (32*PXSIZE)
|
#define F_HEIGHT (32*PXSIZE)
|
||||||
|
|
||||||
|
/* the color of the text to go to the next dialog phase */
|
||||||
|
/* it improves readability to have something lighter */
|
||||||
|
#if GRAYMODEOK || (GINT_RENDER_RGB && !defined(COLOR1BIT))
|
||||||
|
#define NEXT_COLOR C_DARK
|
||||||
|
#else
|
||||||
|
#define NEXT_COLOR C_BLACK
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -26,14 +26,6 @@ extern font_t fontRPG;
|
||||||
uint32_t *lightVRAMcurrent, *darkVRAMcurrent;
|
uint32_t *lightVRAMcurrent, *darkVRAMcurrent;
|
||||||
#endif //GRAYMODEOK
|
#endif //GRAYMODEOK
|
||||||
|
|
||||||
/* the color of the text to go to the next dialog phase */
|
|
||||||
/* it improves readability to have somathing lighter */
|
|
||||||
#if GRAYMODEOK || (defined(GINT_RENDER_RGB) && !defined(COLOR1BIT))
|
|
||||||
#define NEXT_COLOR C_DARK
|
|
||||||
#else
|
|
||||||
#define NEXT_COLOR C_BLACK
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
void blit() {
|
void blit() {
|
||||||
dupdate();
|
dupdate();
|
||||||
|
|
|
@ -87,6 +87,7 @@ void game_render_indicator(Game *game) {
|
||||||
|
|
||||||
void game_draw(Game *game) {
|
void game_draw(Game *game) {
|
||||||
/* Draw everything. */
|
/* Draw everything. */
|
||||||
|
dclear(C_WHITE);
|
||||||
map_render_by_layer(game, BACKGROUND);
|
map_render_by_layer(game, BACKGROUND);
|
||||||
npc_draw(game);
|
npc_draw(game);
|
||||||
player_draw(game);
|
player_draw(game);
|
||||||
|
|
Loading…
Reference in a new issue