Compare commits

...

1 Commits

Author SHA1 Message Date
Sylvain PILLOT 030beb0811 conversion of Builder by Mb88 to support the fxCGs 2023-03-18 11:05:46 +01:00
10 changed files with 40 additions and 8 deletions

BIN
Builder.g1a Normal file

Binary file not shown.

BIN
Builder.g3a Normal file

Binary file not shown.

View File

@ -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()

View File

@ -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 !

BIN
assets-cg/example.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -0,0 +1,3 @@
example.png:
type: bopti-image
name: img_example

BIN
assets-cg/icon-cg.xcf Normal file

Binary file not shown.

BIN
assets-cg/icon-sel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
assets-cg/icon-uns.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.