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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Hey!!! That's Unfair!!!
« previous next »
  • Print
Pages: [1]

Author Topic: Hey!!! That's Unfair!!!  (Read 1966 times)

Offline Edil

  • Member
  • *
  • Posts: 42
Hey!!! That's Unfair!!!
« on: November 08, 2007, 11:08:45 AM »
Ok so the Brickmania game abruptly ended after finishing level 29 with a score of 23400.  >:(

So, now what???  ???

Can I make my own levels or something?

 :P

Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Hey!!! That's Unfair!!!
« Reply #1 on: November 08, 2007, 06:27:03 PM »
the source is available, get hackin' ;)
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Hey!!! That's Unfair!!!
« Reply #2 on: November 08, 2007, 07:31:45 PM »
I'm gonna assume you're not a coder by the fact that you asked this question. Luckily for you, adding brickmania levels is relatively easy.

First, you need to set up a build environment and learn how to create a Rockbox build:
http://www.rockbox.org/twiki/bin/view/Main/DevelopmentGuide

You're looking for this section in apps/plugins/brickmania.c:
Code: [Select]
static unsigned char levels[29][8][10] = {
    { /* level1 */
        {0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1,0x1},
        {0x2,0x1,0x0,0x0,0x0,0x0,0x0,0x0,0x1,0x2},
        {0x0,0x2,0x1,0x0,0x0,0x0,0x0,0x1,0x2,0x0},
        {0x0,0x0,0x2,0x1,0x0,0x0,0x1,0x2,0x0,0x0},
        {0x0,0x0,0x0,0x2,0x1,0x1,0x2,0x0,0x0,0x0},
        {0x7,0x0,0x0,0x7,0x2,0x2,0x7,0x0,0x0,0x7},
        {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0},
        {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0}
    },

...

};
Obviously each of those "0x0", "0x1", etc. numbers means a certain type of brick.

You need to increment that number 29 there every time you add a level.
Logged

Offline Edil

  • Member
  • *
  • Posts: 42
Re: Hey!!! That's Unfair!!!
« Reply #3 on: November 08, 2007, 09:52:36 PM »
Thanks!

You are right this could be an interesting project to start learning and coding.
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Hey!!! That's Unfair!!!
« Reply #4 on: November 08, 2007, 10:07:14 PM »
Yep, good luck! ;D
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: Hey!!! That's Unfair!!!
« Reply #5 on: November 10, 2007, 08:27:19 AM »
i vagually remember an exe in the rockbox zip file to create brickmania levels.. I dont know if its still there or not htough
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  Hey!!! That's Unfair!!!
 

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

Page created in 0.082 seconds with 15 queries.