Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  New to Rockbox Development, Plugins?
« previous next »
  • Print
Pages: 1 2 [3]

Author Topic: New to Rockbox Development, Plugins?  (Read 9467 times)

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3555
  • creature
Re: New to Rockbox Development, Plugins?
« Reply #30 on: March 15, 2007, 02:52:55 AM »
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.
Logged

Offline neoAKiRAz

  • Member
  • *
  • Posts: 27
Re: New to Rockbox Development, Plugins?
« Reply #31 on: March 15, 2007, 11:21:54 AM »
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?
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: New to Rockbox Development, Plugins?
« Reply #32 on: March 15, 2007, 03:27:55 PM »
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.
Logged

Offline safetydan

  • Developer
  • Member
  • *
  • Posts: 248
Re: New to Rockbox Development, Plugins?
« Reply #33 on: March 15, 2007, 06:29:34 PM »
Also, consider extending an existing plugin rather than submitting another one. We can only include so many versions of Snake.
Logged

  • Print
Pages: 1 2 [3]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  New to Rockbox Development, Plugins?
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.07 seconds with 18 queries.