Arduboy Crosscompiling

Creations

Juice_Lizard

NEW 5 years ago

Sorunome Sorunome

Thank you! That works much better. I can now "play" (read) "The guy who never complains" on my Gamebuino Meta. It is a little bit slower than on Arduboy but it works. (I have to press the buttons longer.) I can also display the title screen from my other game "Cutie E", but it happens nothing when I press some buttons.

jicehel

NEW 5 years ago

I hope you'll have answer, i have never try yet but i read your try and i hope you'll succeed. Of course, a port on Meta let's optimise game with color and good use of curent buttons of the META but to it's fun and quick to cross compile a game and it's can be a good way to see if you want make a Meta version of it.

Juice_Lizard

NEW 5 years ago

Hi Sorunome! Your cross-compiling library is great, but it would be even better if players could choose the background screen color in the settings and if text is shown or not ("Arduboy Game" and "c Settings"). And if game makers could choose those preferences when they code, for the game not begins necessarily on green background with not very useful text.

I tried it in my last game (coming soon on Arduboy and Gamebuino Meta) and I find it much better with total black background screen.

If you don't change your code, I advice the game makers to see in your file "Gamebuino-Arduboy-Compat.ccp" and to change by themselves the colors in "void Gamebuino_Arduboy::drawScreenBackground()". Then, create a binarie file to share the game.

Sorunome

5 years ago

Thanks!


I chose on purpose a background that is neither white nor black so that you could see where the screen of the arduboy is.

As for the text "Arduboy Game", I added that so that nobody would suddenly simply cross-compile tons of arduboy credits of other people and distributing them, leaving out the credits as to where those games actually came from. That is why that text is there.

As for "c Settings", it's, well, so that you know there are more settings ^^


EDIT: OFC there is nothing wrong of you forking the library and modifying it slightly to your needs. Since you are the creator of the game you cross-compile that also means that that giving credits issue is kinda non-existant

jicehel

NEW 5 years ago

Nice news Juice Lizard for the cross compilation, the new game and the tips. Thanks for these informations. 

A good tools to create could be a code transformator to change a arduboy source into meta prepared source where you should just have to transform, remove or add some things to have an optimized META game from an Arduboy game (Color, sound, adjustement of the resolution or in Hi or Low resolution depending of the game). Maybe not easy to do, but it's could be cool too but the cross comilation is a fantastic tool too.

Sorunome

NEW 5 years ago

Juice_Lizard Juice_Lizard

Thanks!


I chose on purpose a background that is neither white nor black so that you could see where the screen of the arduboy is.

As for the text "Arduboy Game", I added that so that nobody would suddenly simply cross-compile tons of arduboy credits of other people and distributing them, leaving out the credits as to where those games actually came from. That is why that text is there.

As for "c Settings", it's, well, so that you know there are more settings ^^


EDIT: OFC there is nothing wrong of you forking the library and modifying it slightly to your needs. Since you are the creator of the game you cross-compile that also means that that giving credits issue is kinda non-existant

maxxcan

NEW 5 years ago

Thanks for this library, works great. 

Only one thing, in the future is possible re-scalar the screen?

Great Work!

Sorunome

5 years ago

Glad you like it!

The screen is at the maximum possible resolution to fit onto the metas screen. While width could be scaled to twice the width, height couldn't, unfortunately.

Sorunome

NEW 5 years ago

maxxcan maxxcan

Glad you like it!

The screen is at the maximum possible resolution to fit onto the metas screen. While width could be scaled to twice the width, height couldn't, unfortunately.

maxxcan

5 years ago

ok, thank you very much for the information.

Great works anyway!

maxxcan

NEW 5 years ago

Sorunome Sorunome

ok, thank you very much for the information.

Great works anyway!

Oasis

NEW 5 years ago

Hi I've followed the instructions but this message keeps popping up!!


Arduino: 1.8.8 (Windows Store 1.8.19.0) (Windows 10), Board: "Gamebuino Meta"

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\ohuss\OneDrive\Documents\Arduino\libraries -fqbn=gamebuino:samd:gamebuino_meta_native -vid-pid=0X2341_0X804D -ide-version=10808 -build-path C:\Users\ohuss\AppData\Local\Temp\arduino_build_721986 -warnings=none -build-cache C:\Users\ohuss\AppData\Local\Temp\arduino_cache_989943 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.CMSIS.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\CMSIS\4.0.0-atmel -prefs=runtime.tools.CMSIS-4.0.0-atmel.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\CMSIS\4.0.0-atmel -prefs=runtime.tools.bossac.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\bossac\1.6.1-arduino -prefs=runtime.tools.bossac-1.6.1-arduino.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\bossac\1.6.1-arduino -prefs=runtime.tools.openocd.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\openocd\0.9.0-arduino -verbose C:\Users\ohuss\OneDrive\Desktop\ID-34-Mystic-Balloon-master\MYBL_AB\MYBL_AB.ino
C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\arduino-builder -compile -logger=machine -hardware C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\hardware -hardware C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\tools-builder -tools C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\hardware\tools\avr -tools C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages -built-in-libraries C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.19.0_x86__mdqgnx93n4wtt\libraries -libraries C:\Users\ohuss\OneDrive\Documents\Arduino\libraries -fqbn=gamebuino:samd:gamebuino_meta_native -vid-pid=0X2341_0X804D -ide-version=10808 -build-path C:\Users\ohuss\AppData\Local\Temp\arduino_build_721986 -warnings=none -build-cache C:\Users\ohuss\AppData\Local\Temp\arduino_cache_989943 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.CMSIS.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\CMSIS\4.0.0-atmel -prefs=runtime.tools.CMSIS-4.0.0-atmel.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\CMSIS\4.0.0-atmel -prefs=runtime.tools.bossac.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\bossac\1.6.1-arduino -prefs=runtime.tools.bossac-1.6.1-arduino.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\bossac\1.6.1-arduino -prefs=runtime.tools.openocd.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\openocd\0.9.0-arduino -prefs=runtime.tools.openocd-0.9.0-arduino.path=C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\openocd\0.9.0-arduino -verbose C:\Users\ohuss\OneDrive\Desktop\ID-34-Mystic-Balloon-master\MYBL_AB\MYBL_AB.ino
Using board 'gamebuino_meta_native' from platform in folder: C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\gamebuino\hardware\samd\1.2.1
Using core 'arduino' from platform in folder: C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\gamebuino\hardware\samd\1.2.1
Detecting libraries used...
"C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__="""MYBL_AB.ino"""" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10808 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER="Arduino LLC"" "-DUSB_PRODUCT="Arduino Zero"" "-IC:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\ohuss\AppData\Local\Temp\arduino_build_721986" "-IC:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\gamebuino\hardware\samd\1.2.1\cores\arduino" "-IC:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\gamebuino\hardware\samd\1.2.1\variants\gamebuino_meta" "C:\Users\ohuss\AppData\Local\Temp\arduino_build_721986\sketch\MYBL_AB.ino.cpp" -o nul
"C:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions "-D__SKETCH_NAME__="""MYBL_AB.ino"""" -w -x c++ -E -CC -DF_CPU=48000000L -DARDUINO=10808 -DARDUINO_SAMD_ZERO -DARDUINO_ARCH_SAMD -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804d -DUSBCON "-DUSB_MANUFACTURER="Arduino LLC"" "-DUSB_PRODUCT="Arduino Zero"" "-IC:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\Users\ohuss\AppData\Local\Temp\arduino_build_721986" "-IC:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\gamebuino\hardware\samd\1.2.1\cores\arduino" "-IC:\Users\ohuss\OneDrive\Documents\ArduinoData\packages\gamebuino\hardware\samd\1.2.1\variants\gamebuino_meta" "-IC:\Users\ohuss\OneDrive\Documents\Arduino\libraries\Gamebuino-Arduboy2-master\src" "C:\Users\ohuss\AppData\Local\Temp\arduino_build_721986\sketch\MYBL_AB.ino.cpp" -o nul
In file included from C:\Users\ohuss\AppData\Local\Temp\arduino_build_721986\sketch\globals.h:1:0,

                 from C:\Users\ohuss\OneDrive\Desktop\ID-34-Mystic-Balloon-master\MYBL_AB\MYBL_AB.ino:17:

C:\Users\ohuss\OneDrive\Documents\Arduino\libraries\Gamebuino-Arduboy2-master\src/Gamebuino-Arduboy2.h:11:30: fatal error: Gamebuino-EEPROM.h: No such file or directory

 #include <Gamebuino-EEPROM.h>

                              ^

compilation terminated.

Using library Gamebuino-Arduboy2-master at version 5.1.0 in folder: C:\Users\ohuss\OneDrive\Documents\Arduino\libraries\Gamebuino-Arduboy2-master
exit status 1
Error compiling for board Gamebuino Meta.

Sorunome

NEW 5 years ago

It doesn't sound like you installed the Gamebuino-EEPROM library! You can find it here: https://github.com/Gamebuino/Gamebuino-EEPROM