so I was making some test with std::vector with codeblocks and the try to test same code on hardware with embitz.
The problem here is in this segment of code:
auto e = std::begin(entities);
while (e != std::end(entities))
//Remove if dead
e = entities.erase(e);
Where entities is a vector of pointers to a base class GameObj
Code works as expected in Code::Blokcs iterating trough all the entities and removing them when aged.
In Embtiz it seems like the auto keyword broke the compiler:
I hope to get chance to, as well as finishing those PEX tutorials (I haven’t completely forgotten them).
The last few months most of my spare time has been preoccupied with another project I’ve been helping with, which was finally released on 2017/12/20 after about 2-3 months of work, and then had a few major updates in the following weeks (even on Christmas day the two programmers, myself and filmote (Simon Holmes), were discussing space-saving updates).
I’ve been having a (somewhat deserved) break since then, focusing more on playing games than writing them, lest my brain start melting.
I’ve some experience with other languages, as the most of us I suppose (Lua, Basic, Python, C# etc).
Basic tutorial (if-then-else, while, etc) are fine but mostly to point out the difference in using limited resources in embedded system. Otherwise any standard online tutorial is good enough.
I’ve choose Pokitto to learn C/C++ for embedded system. I’ve read some C/C++ tutorials and now I’m looing for the best way to use std library (vector, map etc) and C++11 style (auto etc).
This together a general overview of the API (Modules, Libraries, Graphics, Sound) should give all the tools to develop best app for Pokitto.