Hello, I was trying to think of a good game idea that could make use of the FX chip for more than just saving sprites (just for things like levels or other game data)… not because I wanted to immediately jump into the FX stuff or anything, just so that I could account for this in my overall game outline and plan accordingly… well this made me take a step back since I’d never gotten proficient enough to make a regular Arduboy game (which is where I should start anyway to work my way up to FX stuff) so I started trying to think of a game that would be a good fit for the platform in general when I came across this, which I think would be a perfect fit (its actually the game from the anime FLCL, if anyone’s ever seen that)…
And even better, the source code is written in C++: https://github.com/marcello3d/firestarter/releases/tag/0.1.0
The license is creative commons but it also states the graphics and music can’t be used without permission so I reached out to the creator and asked (since I would need to redraw the sprites in monochrome based off of theirs) and they said yes, but I have a few questions while trying to plan this… I was able to find the parts of their code which did the stuff I was looking for, but since it’s quite a bit more advanced than my current understanding I still have a few questions pertaining to what exactly it’s doing (and given that the code is 17 years old I wouldn’t expect the original developer to remember any of this stuff or wanna bug them too much about it, which brings me here)…
First of all, here is my overall outline for the game (and the order in which I plan to do things once I understand them a bit more)… anywhere on the list that i have a number denotes the relevant line numbers in MainGame.cpp which I’m using for reference, although in order to better understand what the code is doing I’ve also included some additional reference material I’m using to help me learn.
Create camera (136/137)
Create global coordinate system in Cartesian (230, 235)
Create global coordination system in isometric (230, 235)
Lines 459 (randomly sets each cell type),
475/489 draws down left/right roads???
Line 540 draws bitmaps (then 553 merges roads automatically using binary ???)
What is line 677? Pause menu map?
Controls (201, 218)
And as for my first couple questions…
-How could I loop global map coordinates so the map repeats? The original game has a finite map but I was wondering if there was some way to make it scroll so that the entire map just repeats… I’ve found a few different methods for this but not sure what would be the most sensible (my guess would be something involving modulo but I’m still not clear how this works or how I would implement it)
-And is there some way i could randomly generate the map(s) on PC and just insert the code into my game? The original game randomly generated the map at runtime, which I would prefer, but given the limited amount of RAM in the arduboy I’m not sure if I’ll be able to do this so was wondering if there was any way i could do it PC side and just insert whatever layout(s) this generates (then if it turns out I do have enough ram to work with at the end I could just edit my game).