Shop OBEX P1 Docs P2 Docs Learn Events
Help with final project! — Parallax Forums

Help with final project!

AcrutAcrut Posts: 5
edited 2010-05-05 02:34 in BASIC Stamp
We're trying to program a nice push botton game, and need serious help. We're trying to program a pong, space invader, tetris, frogger etc etc. We have succsefully plugged two old NES controlers to the BS2, but we are having the worst of times putting the code together for any of them. Pls help us with some examples of codes or any toher realting info that might help us put the project together. This final project means a lot to us and have ran out of knowledge and ideas to get it working.

Thanks, Anuar

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2010-05-04 19:22
    I'd think the BS2 was fairly limited for this sort of thing. The Propeller-based Game Machine would be perfect, though.
  • AcrutAcrut Posts: 5
    edited 2010-05-04 19:35
    Allan thank you for the prompt response unfortunately this is all we have to work with...any suggestions?

    on another note we're outside the US so purchasing the Propeller-based Game Machine for as much as we would like to; is out of our reach.

    -Anuar
  • Spiral_72Spiral_72 Posts: 791
    edited 2010-05-04 19:50
    I dunno, pong shouldn't be too hard. I've written this game in basic for the PC and for some calculators. I don't think my programs would be useful though because they used floating point numbers for the X & Y increments. You'll have to do it all with timing.

    What will be your display? LED's? LCD?


    You could probably make a crude Frogger or MAYBE, MAYBE a Breakout kind of game. I'd forget Tetris and Space Invaders.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "puff"...... Smile, there went another one.

    Post Edited (Spiral_72) : 5/4/2010 7:57:00 PM GMT
  • metron9metron9 Posts: 1,100
    edited 2010-05-04 20:39
    Acrut said...
    We're trying to program a nice push botton game, and need serious help. We're trying to program a pong, space invader, tetris, frogger etc etc. We have succsefully plugged two old NES controlers to the BS2, but we are having the worst of times putting the code together for any of them. Pls help us with some examples of codes or any toher realting info that might help us put the project together. This final project means a lot to us and have ran out of knowledge and ideas to get it working.


    Thanks, Anuar

    I have a few questions before I can help you out.

    What class is this final project for? Is it computer science? What grade level, Elementary school? high school? College? what year Freshman,Senior?

    You have "ran out of knowledge" for your final project? You have taken a class that has now ended and you are left with an empty mind? No Ideas?

    What school is this and how much was it to take the class?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Think Inside the box first and if that doesn't work..
    Re-arrange what's inside the box then...
    Think outside the BOX!
  • LeonLeon Posts: 7,620
    edited 2010-05-04 20:50
    When I was at university we were expected to do our own project work. It was many years ago and perhaps things have changed.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Leon Heller
    Amateur radio callsign: G1HSM
  • AcrutAcrut Posts: 5
    edited 2010-05-04 22:21
    With your help we can improve our knowledge and project outcome, it's not that we can't do it ourselves. Personally I believe one of our greatest traits as a race is the fact we can build upon what has already been created, it’s not copying, it’s not plagiarism, and it’s not stealing. It's sharing ones ideas in order to build upon these ideas and previous work to make it greater!

    Did Edison steal Franklin’s electricity to build the light bulb? Or did he use his knowledge and previous work to create an alternate use.

    Tecnol
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2010-05-04 22:48
    Acrut said...
    Personally I believe one of our greatest traits as a race is the fact we can build upon what has already been created,
    Charming.·
    Du bist nichts, Dein Volk ist Alles!

    Lots of people will help you to develop your ideas, but I think that you need to bring a lot more to the table.

    Copy, Plagiarize, Steal, those are harsh words. ·I think the "Newspeak" term for all that is synergy,·and one of·our goons likes to·package deal that into a pile that he calls·learning.

    Here's a link to a game that you can copy/plagiarize/steal -- http://www.thumbstadium.com
  • SRLMSRLM Posts: 5,045
    edited 2010-05-05 02:04
    What sort of screen/output do you have? Do you have to have two players? In any case, I think you should focus on one game at a time, and make sure that it's turn based rather than real time. The BS2 isn't all that fast, and trying to update a display, do some sort of computer opponent, and read input is probably too much unless you're extremely clever. Browse around and find some suitable games that you can emulate, then work from there.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Powered by enthusiasm
  • metron9metron9 Posts: 1,100
    edited 2010-05-05 02:11
    Ok then, lets get started. I suggest you start with with an old mainframe game called cannon. (Perhaps someone here may remember the real name of the game we use to play this game on when connected to a mainframe using a printer for the output.

    Basically, PONG would be hard to do unless you had control of a LCD or the computer screen and the stamp really is not going to make that happen.

    If you want to use the DEBUG command to simulate a cannon ball shot from a cannon you can output a "*" and scroll the screen vertically to simulate the distance.

    You would have to supply the math needed to calculate the path of the cannon ball. I can help you with the code.

    I will leave it up to you to come up with the parameters of the game, as I remember it, you have an input variable for the amount of gun powder and the angle of the cannon to try and hit a specified target. Using the DEBUG command you can get input and output to the computer screen when the stamp is connected.


    Not sure if the controllers would fit in though.

    Another simple game might be 9 led's in a row with a sequenced on off pattern and another line of led's perpendicular to those transecting the center at one of the vectors.

    Sequencing the 9 led's so that they move from left to right and then from right to left would create a bouncing ball. The vertical column could be a gun you fire using one of the controllers or you could use two controllers and alternate shots. Similar to shooting skeet.

    Firing the gun would sequence the led's along the vertical path to intersect the bouncing ball. If the two meet you would get a point. points can be displayed on the computer screen using debug.


    Now, the above "Ideas" and "Knowledge" come from a 52 year old that never had a chance to go to college. So far, I have not run out of knowledge or ideas, it seems I have too many ideas and lack the ability to focus on just one at a time. Something like the above ideas is I think what the rest of the forum members would have liked to see, a general outline of your ideas that would be practical given the constraints of the BS2, computing power, input and output capabilities.

    Your move...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Think Inside the box first and if that doesn't work..
    Re-arrange what's inside the box then...
    Think outside the BOX!
  • FranklinFranklin Posts: 4,747
    edited 2010-05-05 02:34
    Also if you could show us what your hardware looks like (links to the datasheets, schematics of how it's connected and code you are using so we don't have to reinvent the wheel) Also what your timeline is, how much you have to spend and what other parts you may have to use on this project.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
Sign In or Register to comment.