Shop OBEX P1 Docs P2 Docs Learn Events
Mercury Mission 1.1 — Parallax Forums

Mercury Mission 1.1

BamseBamse Posts: 561
edited 2008-12-16 01:35 in Propeller 1
After playing way to much Jetpack, Planetary defense and Spacewar it's time to put down the joystick and actually learn something.

So I started "Mercury Mission", a Lunar Lander game.
Current version is 1.1

I hope Eric don't mind that I borrowed his drivers from Spacewar... cool.gif

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

Experience level:
[noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
[noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
[noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
[noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
[noparse][[/noparse] ] I dream in SX28 assembler...

/Bamse

Post Edited (Bamse) : 10/8/2007 4:58:54 AM GMT

Comments

  • BaggersBaggers Posts: 3,019
    edited 2007-09-26 08:13
    Looking good so far Bamse [noparse]:)[/noparse]
  • mparkmpark Posts: 1,305
    edited 2007-09-26 15:26
    Yeah, keep going, Bamse.

    I like the terrain generation. Simple but effective.
  • BamseBamse Posts: 561
    edited 2007-09-27 06:44
    Looking more like a game now...

    Top post was updated with version 0.2...

    No, there is no where to land yet, that would be the next version... wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • BaggersBaggers Posts: 3,019
    edited 2007-09-27 08:28
    Cool, getting better by the minute. I Look forward to being able to land [noparse]:)[/noparse]
  • BamseBamse Posts: 561
    edited 2007-09-28 06:08
    Version 0.3...

    Looking more like a game, and you can land as well... scool.gif

    Follow the arrow in the upper left corner to find the shortest way to the landing pad.
    Land with a velocity less than 20 downward to land safely.

    Next up, sound effects...

    Source can be found in the top post...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • BamseBamse Posts: 561
    edited 2007-09-29 07:30
    There we go, version 0.4..
    Sound effects...

    I hope you don't get surprised by the fact that I'm using Eric's HDMF... tongue.gif

    Thanks Eric for making the HDMF and Spacewar...
    Without it, it would never been a "Mercury Mission"...

    As usually, new files in top post...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • BaggersBaggers Posts: 3,019
    edited 2007-09-29 09:21
    Excellent Bamse, [noparse]:)[/noparse] and I landed, on the fourth attempt, I didn't realise there was only one landing platform, thought you could land on any flat bit at first [noparse]:)[/noparse]

    Great job though.
  • BamseBamse Posts: 561
    edited 2007-10-01 06:10
    Version 0.5, fully playable with scoring... smilewinkgrin.gif
    Not bad for my first attempt to spinning...

    Next version will be 1.0... wink.gif

    Once again, source and eeprom in the top post...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • BaggersBaggers Posts: 3,019
    edited 2007-10-01 10:38
    Cool, plays really well.
    What else are you adding to it, to make it a V1.0? it's pretty tidy and complete as it is now.
    well done.
    Baggers.
  • BamseBamse Posts: 561
    edited 2007-10-01 15:56
    Thanks Baggers.

    Before I make it Version 1.0 I want to clean up the code and add some better comments...

    I'm pretty satisfied how everything works so there might not be any functional changes at all...
    An explosion when you crash would be cool though... wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • BaggersBaggers Posts: 3,019
    edited 2007-10-01 16:05
    yeah [noparse]:)[/noparse] explosions always look cool, which is why i started my pixel plotter for Snake, it started life out as a pixel plotter for an explosion [noparse];)[/noparse]
  • BamseBamse Posts: 561
    edited 2007-10-01 16:44
    Hmm, I pretty much only use vectors so I think I'm going to to make a simple particle system using pixels for the explosion...

    That would look cool...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • BaggersBaggers Posts: 3,019
    edited 2007-10-01 17:29
    Go for it [noparse]:)[/noparse]
    I'd say if you need a hand let me know, but I'm sure you've got it covered [noparse]:)[/noparse]
  • BamseBamse Posts: 561
    edited 2007-10-03 06:59
    My first game... wink.gif
    Source and binary at the top post...

    At the last minute I decided to "speed things up" and increased the speed limits so to say.
    You can now fly faster and you will also be pulled down faster by gravity than before.

    Hope you have just as much fun playing the game as I had writing it...

    I learned a lot and I think I'm ready to start the next game... wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • BaggersBaggers Posts: 3,019
    edited 2007-10-03 07:54
    Cool [noparse]:)[/noparse]
    Nice explosion too.

    I look forward to your next game.

    Baggers
  • ClemensClemens Posts: 236
    edited 2007-10-03 12:38
    Very nice! Got It running on my demoboard-clone!
    Thanks Bamse!
  • JT CookJT Cook Posts: 487
    edited 2007-10-07 01:37
    I just played the game and it is pretty nice. I really like the music in the beginning of the game. The only thing is a I cannot land the ship, I tried landing on wide landing strips and short landing strips and I can do it. Infact the last last attempt showed ship's velocity at 19 after trying to land on this long flat strecth of land.

    Also there is something about the ship that needs look more spacy or something. It looks like a gumball machine dropping from sky, it needs something to make it look more like a ship.

    The landscape is really cool tho.
  • mparkmpark Posts: 1,305
    edited 2007-10-07 04:24
    There's only one landing spot, JT. Watch for the flat area that blinks slowly. Also, the arrow at the top left will guide you there.

    Bamse, great work!

    And what could be more spacey than a gumball machine dropping from the sky, I ask you.
  • BamseBamse Posts: 561
    edited 2007-10-07 06:31
    Howdy...

    I'm not really satisfied with the "gumball" look myself, I might re design the ship to something more UFO looking.
    It would also make sense to make sure there is only one flat surface to land on... eyes.gif

    Let me get started on version 1.1...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • epmoyerepmoyer Posts: 314
    edited 2007-10-07 18:34
    Sweet!

    Hey, thanks for the credit, and sure you're absolutely welcome to use the Spacewar drivers; no problem at all!

    I've been so busy that I haven't been checking the forums in about 2 weeks. Nice job on the game! The first time I ever saw lunar lander was at the Baltimore science museum. That game used to be my favorite reason for going there.

    I'm very happy to see HDMF in use; I believe you're the first person to independently integrate it into a game so congratulations!
  • BamseBamse Posts: 561
    edited 2007-10-08 05:02
    I'm glad you like it...

    New version 1.1, source in top post as usual...

    The "Gumball" lander stays since I'm "graphic artistic challenged", this is the best I can do... smilewinkgrin.gif
    On the other hand, I made sure there is only one flat surface to land on...

    Enjoy...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Living on the planet Earth might be expensive but it includes a free trip around the sun every year...

    Experience level:
    [noparse][[/noparse] ] Let's connect the motor to pin 1, it's a 6V motor so it should be fine.
    [noparse][[/noparse] ] OK, I got my resistors hooked up with the LEDs.
    [noparse][[/noparse]X] I got the Motor hooked up with the H-bridge and the 555 is supplying the PWM.
    [noparse][[/noparse] ] Now, if I can only program the BOE-BOT to interface with he Flux Capacitor.
    [noparse][[/noparse] ] I dream in SX28 assembler...

    /Bamse
  • Ym2413aYm2413a Posts: 630
    edited 2007-10-08 05:22
    Cool, [noparse]:)[/noparse]
    Version 1!
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2008-12-16 01:35
    I've created an empty version of the missing NS_eeprom_drv_010.spin to make it easy for others to play this.
    (The full version of this file is licensed with the Hydra Development Kit. [noparse][[/noparse]recommended purchase])

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Getting started with a Propeller Protoboard?
    Check out: Introduction to the Proboard & Propeller Cookbook 1.4
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card connected? - PropDOS
Sign In or Register to comment.