temporary add fx graphics to compile the project
|
@ -0,0 +1,3 @@
|
|||
build-cg/*
|
||||
assets-cg/__pycache__/*
|
||||
*.g3a
|
|
@ -1,41 +1,58 @@
|
|||
# Configure with [fxsdk build-fx] or [fxsdk build-cg], which provide the
|
||||
# toolchain file and module path of the fxSDK
|
||||
|
||||
cmake_minimum_required(VERSION 3.15)
|
||||
project(MyAddin)
|
||||
cmake_minimum_required(VERSION 3.18)
|
||||
project(Plague)
|
||||
|
||||
include(GenerateG1A)
|
||||
include(GenerateG3A)
|
||||
include(Fxconv)
|
||||
find_package(Gint 2.1 REQUIRED)
|
||||
|
||||
set(SOURCES
|
||||
src/main.c
|
||||
# ...
|
||||
src/core.c
|
||||
src/display_engine.c
|
||||
src/mutation_engine.c
|
||||
src/data.c
|
||||
src/epidemic_engine.c
|
||||
src/save.c
|
||||
)
|
||||
|
||||
# Shared assets, fx-9860G-only assets and fx-CG-50-only assets
|
||||
set(ASSETS
|
||||
# ...
|
||||
)
|
||||
set(ASSETS_fx
|
||||
assets-fx/example.png
|
||||
# ...
|
||||
|
||||
)
|
||||
|
||||
set(ASSETS_cg
|
||||
assets-cg/example.png
|
||||
# ...
|
||||
assets-cg/plague.png
|
||||
assets-cg/planes.png
|
||||
assets-cg/bground.png
|
||||
assets-cg/mutations.png
|
||||
assets-cg/cursor.png
|
||||
assets-cg/title.png
|
||||
assets-cg/dna.png
|
||||
assets-cg/explosion.png
|
||||
assets-cg/mutations_table/abilities_1.txt
|
||||
assets-cg/mutations_table/abilities_2.txt
|
||||
assets-cg/mutations_table/abilities_3.txt
|
||||
assets-cg/mutations_table/symptoms_1.txt
|
||||
assets-cg/mutations_table/symptoms_2.txt
|
||||
assets-cg/mutations_table/symptoms_3.txt
|
||||
assets-cg/mutations_table/symptoms_4.txt
|
||||
assets-cg/mutations_table/transmissions_1.txt
|
||||
assets-cg/mutations_table/transmissions_2.txt
|
||||
assets-cg/mutations_table/transmissions_3.txt
|
||||
)
|
||||
|
||||
fxconv_declare_assets(${ASSETS} ${ASSETS_fx} ${ASSETS_cg} WITH_METADATA)
|
||||
fxconv_declare_converters(assets-cg/converters.py)
|
||||
|
||||
|
||||
add_executable(myaddin ${SOURCES} ${ASSETS} ${ASSETS_${FXSDK_PLATFORM}})
|
||||
target_compile_options(myaddin PRIVATE -Wall -Wextra -Os)
|
||||
target_link_libraries(myaddin Gint::Gint)
|
||||
|
||||
if("${FXSDK_PLATFORM_LONG}" STREQUAL fx9860G)
|
||||
generate_g1a(TARGET myaddin OUTPUT "MyAddin.g1a"
|
||||
NAME "MyAddin" ICON assets-fx/icon.png)
|
||||
elseif("${FXSDK_PLATFORM_LONG}" STREQUAL fxCG50)
|
||||
generate_g3a(TARGET myaddin OUTPUT "MyAddin.g3a"
|
||||
NAME "MyAddin" ICONS assets-cg/icon-uns.png assets-cg/icon-sel.png)
|
||||
if("${FXSDK_PLATFORM_LONG}" STREQUAL fxCG50)
|
||||
generate_g3a(TARGET myaddin OUTPUT "Plague.g3a"
|
||||
NAME "Plague" ICONS assets-cg/icon-uns.png assets-cg/icon-sel.png)
|
||||
endif()
|
||||
|
|
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 698 B |
After Width: | Height: | Size: 808 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 6.1 KiB |
After Width: | Height: | Size: 4.5 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 21 KiB |
|
@ -66,7 +66,7 @@ int next_frame(struct game *current_game, int *dna_animation, int *vaccine)
|
|||
current_game->time = 0;
|
||||
|
||||
// Display message on research
|
||||
if (!current_game->research && current_game->priority) message("LA RECHERHCE CONTRE VOTRE VIRUS COMMENCE !");
|
||||
if (!current_game->research && current_game->priority) message("LA RECHERCHE CONTRE VOTRE VIRUS COMMENCE !");
|
||||
else if (!*vaccine && (current_game->research == current_game->limit)) {*vaccine = 1; message("LE VACCIN EST TERMINE."); }
|
||||
|
||||
// Update the game
|
||||
|
|
|
@ -32,6 +32,7 @@ int main_loop(struct game *current_game);
|
|||
|
||||
int main(void)
|
||||
{
|
||||
|
||||
extern font_t font_plague;
|
||||
dfont(&font_plague);
|
||||
|
||||
|
|