Rockbox Development > Starting Development and Compiling
New to Rockbox Development, Plugins?
bluebrother:
If you intend to submit your plugin to the world (especially if you want it to get included into Rockbox) you should also respect our coding style. Which, from what I saw from the code snippets, basically means no CamelCase (this is C, not C++) and use english. It's much easier doing so from the start instead of converting everything later. You can find our coding style described in the docs/ folder. You might want to do everything in english anyway because some helpful people might not understand your wording -- for example, I have no idea what "CrearMundo" means and guessing ... shouldn't be a good thing here.
Of course, if you don't want to submit your work at anytime you're free to use any style you want. Nevertheless, I personally find it very useful doing all programming (and commenting) in english anyway.
neoAKiRAz:
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?
nls:
some targets have 4:3 screens, some 3:4, at least one has 1:1 and there may be others :-) but you can make the build system include different bitmaps for each screen resolution, this is how it is done in the included plugins.
safetydan:
Also, consider extending an existing plugin rather than submitting another one. We can only include so many versions of Snake.
Navigation
[0] Message Index
[*] Previous page
Go to full version