Drakker wrote:What about petit fatfs and it's really small memory footprint?
Myndale wrote:Drakker wrote:What about petit fatfs and it's really small memory footprint?
...
Thanks again Drakker. Erico: add as many screens as you want, and whatever world size you want!
Skyrunner65 wrote:Please, if anything, share the infinite world code.
Drakker wrote:I haven't managed to get petit fatfs to work and a working example would be quite welcome
spi_init();
PFFS.begin(2, rx, tx);
gb.begin();
digitalWrite(SS, LOW);
int err = PFFS.open_file("LUNARRUN.DAT");
//do file access stuff here
digitalWrite(SS, HIGH);
...After today's efforts I can load individual screens into the game engine and display them on-screen and boy do they look good! Working on integrating it with the flight physics so we can fly around the entire world...gimme another day or so.
erico wrote:I suppose we can now load any assets from disk, like text or music too?
erico wrote:But extra ideas apart, I´d like to ask you (myndale) if it is possible to implement in game an option to mess with the ship parameters like:
-gravity
-speed of rotation
-power of each thrust
erico wrote:What I´m trying to say is that if you hold the rotation buttons it goes on rotating forever which is perfect and in a perfect speed.
But, if you click rotation twice really fast, it won´t compute the second press.
So if a button is released, the delay should be reseted and next press should compute imediately.
Return to Project Guidance & Game development
Users browsing this forum: No registered users and 5 guests