Shop OBEX P1 Docs P2 Docs Learn Events
X-Racer questions... — Parallax Forums

X-Racer questions...

VaatiVaati Posts: 712
edited 2009-08-14 21:07 in Propeller 1
Well, I now have my DIY HYDRA!· I just need to get another eeprom and the blank HYDRA cards/all the other goodies...· smile.gif

I was playing X-Racer on my DIY HYDRA (or DRAGOON as it has now been christened) and I was struck by a sudden inspiration: what if I could make it more along the lines of MarioKart64, where there is a mini-map, your current place (i.e.; 1st, 2nd, etc up to 8th) and have a better main menu or rather, an actual main menu.

Since I have been using the prop·since March of this year, I'm not too experienced in actual hard long work and coding.· smurf.gif· I did, however, find out how to run the HYDRA games on a dev tool like the demo board/Gadget Gangster Propeller Dev Kit...· Anyways, the code is the same as the JTC_XRacer_010 except I have the xinfreq to 5_000_000, doubled the pll, and changed the tv pins in the tv_params section·to %001_0101 so it has a basepin of 12.

So, is it possible to modify this so it has a main menu, minimap, only 8 other cars (which would go a LOT faster than they normally do so as to make it a fun and challenging game) and a placement system?· I'm not asking for code, just whether it is possible, and any help you can provide.· smile.gif


Thanks.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!

*-NEW-* SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!

Comments

  • JT CookJT Cook Posts: 487
    edited 2009-08-13 13:38
    X-Racer, as it stands right now, takes up almost the full 32K of memory. So there isn't room for really any additions Also the graphics driver really only supports that screen setup, so without modifications to it, a main menu would be pretty tough to do also. But the main chunk of that memory is graphics, so if you pared down the graphics a bit then you could open the door for additions. If you made more room in memory I beleive it would be possible to create a race map (instead of a random map) and have a placement system. The only downside is you really can't add anything graphically. Like you can only have 1 player, and not a selection of many. You can only have 1 background and small set of road side graphics.
  • VaatiVaati Posts: 712
    edited 2009-08-14 16:17
    Oh wow--you made X-Racer? So, you think it would be possible to have a pre-defined course with a minimap? Also, do you know whether it is possible to limit the number of other cars on the road?

    Thanks.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!

    *-NEW-* SD Card Adapter·Now available!· Add extra memory to your next Propeller project with ease!
  • JT CookJT Cook Posts: 487
    edited 2009-08-14 21:07
    The course is randomly generated, so it wouldn't be too hard to change it to a fixed course. How it works now after each track segment is finished (like a turn segment or a straight away), a new one is generated randomly. So instead of randomly generated, just have a track array, and when you get to the end of the array start it over.

    The computer cars are handled the same way. A car is randomly placed in memory, and if it goes outside the limits (of either too far ahead or a little bit behind), a new car is randomly placed. This could also be handled in a similar way where you have computer cars traveling at a constant around the track. But as the game is setup right now, there can only be one computer car on the screen at one time.
Sign In or Register to comment.