Please make sure you rename the folder downloaded from Github to Godzilla and open the Godzilla.ino file in the arduino editor in order to compile and upload the game. Sorry for the inconvenience, this will be changed in a future verion to make the download process more seamless.
This issue should now be fixed. To play the game on your Arduboy device, download the source code from Github, open the Arduzilla.ino file in the Arduino editor and compile and upload to your connected Arduboy.
No I realise that I’ll need to set a value for each building, there is still lots of broken/wrong/unimplemented bits in this first version that I haven’t vetted out for other people to view the source yet, thanks for reminding me though!
I tried looking around some forums for thoughts on this the other day, all I wanted was some basic organisation so that I can find bits of my code easier and I saw that Arduino uses these .ino files that seem like a merging of .h and .cpp files.
For now I think I’ll stick to declaring variables in vars.h and then keep object specific functions/methods in there own .ino or .cpp files for my own ease of use.
Ah, sorry for the confusion, as @Pharap pointed out the main.ino is called Godzilla.ino so you will need to rename the extracted folder to Godzilla and then open Godzilla.ino in the arduino editor to build and upload the game
I’ll change this in the future so that it’s more seamless.
What actually happens is that Arduino takes the .ino files and transforms them into .h and/or .cpp files by doing things like declaring functions before they’re used and handling the necessary includes.
(In fact I think it might just fuse all the .ino files into one large .cpp file, but I’d have to check.)
So basically it’s doing some of the work that the programmer would normally be expected to do.
The easiest change would be to just move all your source files into a Godzilla directory on GitHub.
You would still get a <repository name>-master folder.
The best thing would be to create a folder named Godzillainside your repository and put your Godzilla.ino file and any other required .ino, .h, .cpp and .c files in it.
Then, although the user will still get a <repository name>-master folder, there will be a Godzilla folder in it that can be moved or copied into the Arduino sketchbook folder.
This also allows you to put any other files not actually required to compile the sketch (for example .png files used to create sprites), in other places in the repository, without them inadvertently/needlessly being copied into the sketchbook by the user.
It’s your repo itself that gets turned into an Arduzilla-master folder,
so if you had a Godzilla folder in your repo, it would end up being Arduzilla-master/Godzill when unzipped.
(The .zip file that gets generated follows the format <repo name>-<branch name>.)
If you aren’t sure how to do this, I could make a pull request that does it for you and you could merge the PR.
You or anyone else, yeah if you want to continue that topic it’s more helpful for other uses because it applies to more than just your game. It’s ok to get a little off topic but if it continues for 3 or more replies it’s probably of more value to move to a new thread so that new users to the topic don’t get confused.
I’m really excited about this game. It kind of reminds me of rampage meats katamari.
Yeah I’ll make sure to take out the unnecessary files in the next upload, just having issues with GitHub at the moment. Eventually I’ll compile the game to an arduboy game file when I reach v1 and above so I can distribute it pre-compiled ( I think you can do this anyways… )