Shop OBEX P1 Docs P2 Docs Learn Events
Spintris - New game! — Parallax Forums

Spintris - New game!

JT CookJT Cook Posts: 487
edited 2007-12-16 08:44 in Propeller 1
Spintris - 12-15-07 - Source code release

Tetris video game for NTSC or PAL·TVs,·features·2 player with sound from Andrew Arsenault's HSS sound driver.

2 player version includes first to eliminate 25 lines or battle where if a player eliminates 2 or more lines, it will add those lines, minus 1, to the other player's playfield.

Play using the keyboard or gamepads.

Includes source code configurations for Hydra, Hybrid, and Demo boards

History --
  • 12/15/07 -Added keyboard driver, new TV driver(that supports PAL), configuration for Demo/Proto boards, Level and Height options, started peices higher up, 1 player levels up after 25 lines,
    Also added function to read Hybrid flash rom to check for NTSC/PAL
  • 11/07/07 - Fixed Hybrid version so you can start game with 1 button joystick
  • 11/03/07 - Fixed bug where the 2nd controller·would not work
  • 11/02/07 - 1st version

Post Edited (JT Cook) : 12/16/2007 3:24:05 AM GMT
256 x 192 - 4K
256 x 192 - 4K

Comments

  • JT CookJT Cook Posts: 487
    edited 2007-11-02 20:47
    Here is my first version of the new game I am working on. It is a Tetris game with sound and 2 player. Binary only for the time being, but there is both a Hybrid and Hydra version.

    What is next on my list to do is add levels (for different speeds) and height (to throw random blocks on the screen if you choose) and also give it a little prettier presentation. Also I want to close up the blocks if a line is eliminated so it doesn't look like it is open.

    For the longest time, I wanted a 2 player version of tetris like for the gameboy where if you eliminate multiple lines, it would throw some of those lines on the other player's play field. Also while checking out different tetris games, I saw the tengen version of tetris has smooth blocks (instead of solid rectangular blocks) and "borrowed" the block piece graphics·from that version.

    Any comments, questions, bugs feel free to post.

    Post Edited (JT Cook) : 11/2/2007 8:58:38 PM GMT
  • mparkmpark Posts: 1,305
    edited 2007-11-02 21:49
    Cool! I'm looking forward to trying it out. I bet my wife will get a kick out of it too.
  • AndreLAndreL Posts: 1,004
    edited 2007-11-02 22:21
    You know you have to add networking to it [noparse]:)[/noparse]

    Andre'
  • CardboardGuruCardboardGuru Posts: 443
    edited 2007-11-03 02:41
    Very nice!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Help to build the Propeller wiki - propeller.wikispaces.com
    Prop Room Robotics - my web store for Roomba spare parts in the UK
  • BaggersBaggers Posts: 3,019
    edited 2007-11-03 08:58
    Excellent [noparse]:)[/noparse]
  • phillip vphillip v Posts: 48
    edited 2007-11-03 19:56
    I was unable to get the 2nd controller in 2 player mode to work on hydra????? I checked my hardware thats not it, may be a bug????·but other than that the game looks and plays realy well....

    Post Edited (phillip v) : 11/3/2007 8:01:25 PM GMT
  • JT CookJT Cook Posts: 487
    edited 2007-11-03 20:27
    I'll be honest, I haven't tried 2 player mode because I didn't have a 2nd controller. I did just pick one up though last night and I give it a try, but it very well could be a bug. If so, I should be able to upload a new build tonight after I get off work. Thanks for letting me know.
  • JT CookJT Cook Posts: 487
    edited 2007-11-04 00:55
    It was a bug, I fixed the code and the second controller works now. Thanks again for the tip. smile.gif
  • phillip vphillip v Posts: 48
    edited 2007-11-04 02:51
    I took the game to a friends house... even as a 1 player it was still a hityeah.gif ... the high score of the night was 77lines... and no other bugs were found smile.gif ... I'll down load the new version tomorrow and we will give it a test drive.....
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2007-11-04 04:07
    Any chance we can get you to release a copy that has Demoboard clock settings?
    I've got everything else covered.. (Unless you are using the keyboard instead of the NES controllers)

    Thanks
    Oldbitcollector

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Buttons . . . check. Dials . . . check. Switches . . . check. Little colored lights . . . check.

    — Calvin, of 'Calvin and Hobbes.
  • JT CookJT Cook Posts: 487
    edited 2007-11-04 05:54
    Oldbitcollector: Is the audio, video, and controller pins the same as the Hydra? If so I can probably make a new build for you tomorrow, just tell me the crystal and mutliplier values.

    phillip v: I'm glad you guys had fun with it. I just finished playing 2 player against my fiance for 45 minutes and I think that is the only Hydra game I could get her to play smile.gif

    Andre: Maybe, but don't hold your breath.

    Post Edited (JT Cook) : 11/4/2007 6:08:41 AM GMT
  • Spork FrogSpork Frog Posts: 212
    edited 2007-11-04 12:51
    Bug/feature request- Holding down should really only drop the current block, whereas now I can hold it to make the whole thing speed up. Maybe add a little delay before it drops like a rock while holding down? See the orig. versions of Tetris to see what I mean.

    Also, and auto-repeat on left/right would be really handy.

    Overall, tis a wonderful game.
  • JT CookJT Cook Posts: 487
    edited 2007-11-06 03:20
    Having the pieces always drop if you hold down isn't a bug, but I do like the suggestion of having to push down for each new piece, I'll look into that the next time I have time to work on it.

    I don't understand what you mean by auto repeat for left to right tho?
  • Spork FrogSpork Frog Posts: 212
    edited 2007-11-06 23:06
    I meant instead of having to press left or right once for each square, to instead be able to hold it to have the pieces slide left or right. Compare it to auto-repeat on a keyboard. Press a key once, and you get one character. Hold it, and after a delay, a stream of characters come out.
  • JT CookJT Cook Posts: 487
    edited 2007-11-07 17:05
    Spork Frog·- Hmm, I might have to look into adding that too then,

    Also I updated the Hybrid version so if you have a one button atari style joystick you can start and play a game.
  • BaggersBaggers Posts: 3,019
    edited 2007-11-07 17:44
    yeah, almost like you had it at first, but just a delay before moving it again, as it moved too fast [noparse]:)[/noparse] which is why I suggested multiple taps.
  • Paul BakerPaul Baker Posts: 6,351
    edited 2007-11-08 00:42
    Spintris is now listed in the PROJECT master index

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • JT CookJT Cook Posts: 487
    edited 2007-12-16 02:37
    New release!

    Source code, PAL/NTSC video driver (thanks to Baggers), keyboard, Hybrid, Hydra, and Demo board support. Also new game play options and probably some fixes.

    *Edit*
    Fixed a quick bug, now on source release 2. smile.gif

    Post Edited (JT Cook) : 12/16/2007 3:24:39 AM GMT
  • BaggersBaggers Posts: 3,019
    edited 2007-12-16 08:44
    No probs JT Cook, glad to help.
Sign In or Register to comment.