diff --git a/Builder.g1a b/Builder.g1a new file mode 100644 index 0000000..4e12ba1 Binary files /dev/null and b/Builder.g1a differ diff --git a/Builder.g3a b/Builder.g3a new file mode 100644 index 0000000..768c2b9 Binary files /dev/null and b/Builder.g3a differ diff --git a/CMakeLists.txt b/CMakeLists.txt index 96f6aca..51015e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,11 +2,12 @@ # toolchain file and module path of the fxSDK cmake_minimum_required(VERSION 3.15) -project(builder) +project(Builder) include(GenerateG1A) +include(GenerateG3A) include(Fxconv) -find_package(Gint 2.1 REQUIRED) +find_package(Gint 2.9 REQUIRED) set(SOURCES src/main.c @@ -80,6 +81,8 @@ set(ASSETS_fx assets-fx/living/ennemies/zombie2.png # ... ) + + fxconv_declare_assets(${ASSETS} ${ASSETS_fx} ${ASSETS_cg} WITH_METADATA) add_executable(myaddin ${SOURCES} ${ASSETS} ${ASSETS_${FXSDK_PLATFORM}}) @@ -87,6 +90,12 @@ 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 "Builder.g1a" - NAME "Builder" ICON assets-fx/icon.png) + generate_g1a(TARGET myaddin OUTPUT "Builder.g1a" + NAME "Builder" ICON assets-fx/icon.png) +elseif("${FXSDK_PLATFORM_LONG}" STREQUAL fxCG50) + generate_g3a(TARGET myaddin OUTPUT "Builder.g3a" + NAME "Builder" ICONS assets-cg/icon-uns.png assets-cg/icon-sel.png) +elseif("${FXSDK_PLATFORM_LONG}" STREQUAL fx9860G_AS_CG) + generate_g3a(TARGET myaddin OUTPUT "Builder.g3a" + NAME "Builder" ICONS assets-cg/icon-uns.png assets-cg/icon-sel.png) endif() \ No newline at end of file diff --git a/README.md b/README.md index 33ca304..d679998 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,29 @@ A little game like Minecraft or Terraria. +This fork aims at "cross compiling" Builder for the CG architecture. The code and assets are 100% coming from Mb88 repositerory. Not even a single line has been changed. + # Build an install Install gint if you have not already installed it. +##If you are targeting the fx9860g serie (Graph35/75/85/90 in all versions), simply do : + ``` $ fxsdk build-fx -$ bash clear.sh ``` -Copy `Builder.g1a` that is in `./latest-build/` to the main folder of your calculator. +Copy `Builder.g1a` to the main folder of your calculator. + + +##if you are targeting to use a fx-CG10/20/50/Graph 90+E (Prizm serie), a upscaling is then achievable using : + +``` +$ fxsdk build-fx-as-cg +``` + +Copy `Builder.g3a` to the main folder of your calculator. + # Gameplay @@ -58,11 +71,18 @@ EXIT - Quit the game. See tickets. -# Topic +# Topics + +The initial topic by Mb88: https://www.planet-casio.com/Fr/forums/topic17108-last-builder-un-jeu-de-construction-comme-minecraft-et-terraria.html#188890 + +The automated conversion topic by SlyVTT : +https://www.planet-casio.com/Fr/forums/topic17296-1-conversion-automatique-des-projets-gintfxsdk-mono-vers-prizm-cg102050g90e.html#191066 + + # Testing -You can get the latest build in `./latest-build/`. +You can get the latest build in the root directory (Builder.g1a for monocolor Graphs and Builder.g3a for color fxCGs) If you find an issue, please write a ticket ! \ No newline at end of file diff --git a/assets-cg/example.png b/assets-cg/example.png new file mode 100644 index 0000000..8826800 Binary files /dev/null and b/assets-cg/example.png differ diff --git a/assets-cg/fxconv-metadata.txt b/assets-cg/fxconv-metadata.txt new file mode 100644 index 0000000..d435d5f --- /dev/null +++ b/assets-cg/fxconv-metadata.txt @@ -0,0 +1,3 @@ +example.png: + type: bopti-image + name: img_example diff --git a/assets-cg/icon-cg.xcf b/assets-cg/icon-cg.xcf new file mode 100644 index 0000000..75cfa7a Binary files /dev/null and b/assets-cg/icon-cg.xcf differ diff --git a/assets-cg/icon-sel.png b/assets-cg/icon-sel.png new file mode 100644 index 0000000..6b1c285 Binary files /dev/null and b/assets-cg/icon-sel.png differ diff --git a/assets-cg/icon-uns.png b/assets-cg/icon-uns.png new file mode 100644 index 0000000..d6641ee Binary files /dev/null and b/assets-cg/icon-uns.png differ diff --git a/latest-build/Builder.g1a b/latest-build/Builder.g1a deleted file mode 100644 index 4570ac3..0000000 Binary files a/latest-build/Builder.g1a and /dev/null differ