The coding style in this program is quite sloppy, because as I said, I only converted my already coded snake program to a Rockbox plugin.
I'm not sure if I should submit my plugin because, as you know, there's already a Snake plugin for Rockbox. I know mine is different, of my own coding, and has different features and options I'm planning to make to it. And if it is still welcome, I could submit a Snake Zero when it's ready
I may need some help for complying with portability though. I'll take a look at the notes about your coding style if this works out.
By the way, CrearMundo means CreateWorld
Now it only fills a matrix with zeros, but in my previous version you could create a 2 bit BMP of a fixed resolution in Paint, draw a "world" for the snake, and that function would load it to the game. I have to figure out how can I make worlds with no fixed resolution now... Or maybe allow the previous system to allow multiple resolution. by the way, all ported targets have a 4:3 screen? Or maybe this is not specified in Rockbox itself and it would be better for the plugin to work in any aspect ratio LCD?