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
Search



Donate

Rockbox Technical Forums


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

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Help with Brickmania level arrays?
« previous next »
  • Print
Pages: [1]

Author Topic: Help with Brickmania level arrays?  (Read 2052 times)

Offline froggyman

  • Member
  • *
  • Posts: 214
Help with Brickmania level arrays?
« on: August 31, 2009, 01:39:54 PM »
I started playing brickmania and loved it, but when I found out that there are only 29 levels that you can play through, I decided that I want to add more levels to the game.

When I opened up brickmania's source file, I quickly discovered that it uses arrays to store the bricks used in the level. I was able to figure out what most of the numbers meant (0x1==purple brick,0x2==red brick, and it continued like this down like it does in the .bmp). I found this to be consistent throughout the levels, so I assumed thats what it corresponds to.

But, after studying some more levels I saw that it added numbers to the end of it like 0x21 or 0x35. I think they might correspond to power ups, and whether or not they break right away.

So, could someone who is familiar with brickmania help me out with what those additions might mean?

EDIT: After playing around with it for a while I was able to figure out the arrays completely. I added a comment where the arrays start on the syntax of it. 5 levels completed :) After I finish 21 levels (to put it at 50) I will post something on the Flyspray.

Please post comments on things that would be wanted as levels, to help me with ideas.
« Last Edit: August 31, 2009, 09:20:41 PM by froggyman »
Logged
iPod Video 5.5G 30GB - Now Dead :(
Sansa Fuzev2 4GB

"To prevent this day from getting worse, I'll just read ERROR as GOOD THING"

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Help with Brickmania level arrays?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.044 seconds with 15 queries.