My wife and I wanted to modify the already existing games as a first step in order to understand what we would need to do to make a game from scratch but I am struggling a bit with the IDE/build process I need to set-up.
The changes I’d like to do to begin are just to change the game text from english to french, it’s super easy, I’ve seen where it is in the code.
So what I wanted to do is fork the github Snake-ByteBoi project for instance, make the necessary changes, build, and put the resulting artifact on the SD card and that’s it.
But I’m struggling to build the changes and get the necessary binaries.
Do you have a little tutorial for that? What IDE is recommended, what version of CMake, GCC, G++, what dependencies might I need?
To edit a game, all you need to do is clone the repo or download the source code, modify the code with any text editor, open the .ino file with Arduino IDE, select the ByteBoi board and “Game for launcher” partition scheme. Then you can export the binary under Sketch → Export compiled Binary and place it on the SD card.
If you’d like a better development experience, we’re using CLion in our office. You’ll also need the arduino-cli tool somewhere in your PATH. Open the project, and you’ll just need to edit the include paths in CMakeLists.txt so the system picks up the libraries. If you’re on Linux, run the CMBuild build target and after compilation the binary will be placed in the build directory in the root of the project. On windows you’ll have to configure CLion to use Cygwin, WSL or another build system, and modify CMakeLists.txt accordingly.
You can find the source code for all our devices and games on our GitHub page. When you open the repository of the game you’re interested in, you’ll see a big green “Code” button. Click it and you will be presented with a “Download ZIP” button you can click to download the source code.