Tetris Partner

Post here your demos and examples with the source files.
Forum rules
Always post the games with a screenshot.
The file must have the ged and data files (complete game source)
Use the forum attachment to post the files.
It is always better to use the first post to put the game files

Tetris Partner

Postby tintran » Thu Aug 18, 2011 12:44 am

  • Use A,S,D,W(Player 1) and Arrow Keys(Player 2).
  • Play with a partner or play alone by using both hands on the keyboard.
  • No sound.
Beware:
If you drop your piece on your partner's piece or if your partner's piece drops on your piece, it'll stay stationary just like as if you would drop a piece on bottom of playing field, so stay out of each other's way is a good idea.

Also if you play too fast compared to your partner and you build up your side of the board you'll have less room/time to maneuver your piece so try and stay somewhat in synch.

Pieces will drop faster as you and your partner destroy rows, Tetrises are encouraged because the timer will decrease the same amount each time a row (2,3, or 4 rows(tetris)) is destroyed meaning the timer will decrease by 10ms for a single row and will also decrease by 10ms for a Tetris (4 rows destroyed at once).
post #6 below has joystick support for player1 on Wine/Windows. :arrow: Follow my the link in my signature, it has the latest Windows executable which changes background music and background image.
Attachments
THP.zip
(1.08 MiB) Downloaded 729 times
tetrisPartner03.jpg
tetrisPartner01.jpg
tetrisPartner02.jpg
Last edited by tintran on Wed Feb 29, 2012 9:04 pm, edited 4 times in total.
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Re: Tetris Partner

Postby Turon » Thu Aug 18, 2011 1:19 pm

Looks good! Love the Graphics! :D The Original did not have those graphics.
Turon
 
Posts: 862
Joined: Sun Jan 24, 2010 5:23 pm
Score: 32 Give a positive score

Re: Tetris Partner

Postby SuperSonic » Thu Aug 18, 2011 4:30 pm

Wow, this is amazing :shock:

Tetris is one of my favorite games :D
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: Tetris Partner

Postby tintran » Thu Aug 18, 2011 9:36 pm

:) someone likes it.
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Re: Tetris Partner

Postby SuperSonic » Thu Aug 18, 2011 10:10 pm

Correction, someone loves it! :lol:
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: Tetris Partner

Postby tintran » Sat Aug 20, 2011 6:29 am

Added functionality
  • controls:
    • KEY_2 (above KEY_w)rotates Player 1's piece in counter-clockwise direction
    • KEY_END (above the KEY_UP) rotates Player 2's piece in coutner-clockwise direction
    • Joystick1 support for Player 1 (see attached img for details)
      holding down keys will repeat but not out of control fast(this was the main reason why i disabled the repeat keys on the first post) (done by timer variables in scripts) and holding rotate keys/buttons will also repeat but only as 1/2 speed as move keys
  • graphics:
    • blocks get tossed up a little and then drop as they fade out when lines get destroyed (see attached img).
    • Play and End (triangular buttons) fade out so they don't hurt the eyes and become less distracting to players.
I really wanted to get the second controller to work for Player 2 but there is no GetJoystick2Axis() or GetJoystick2Button() (does anyone know :?: )
joystick works great when GE runs in Wine (so I am guessing it should work for Windows. Linux version seems to not know anything about joystick eventhough 'jstest /dev/input/js0' and jstest /dev/input/js1' works, the code runs with no errors but it joystick don't seem to have any effect under Linux(Fedora)
Attachments
THP.zip
(1.14 MiB) Downloaded 360 times
joystick.jpg
joystick.jpg (35.84 KiB) Viewed 11252 times
linedestruction.jpg
Last edited by tintran on Sun Aug 21, 2011 11:33 pm, edited 1 time in total.
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Re: Tetris Partner

Postby Jagmaster » Sun Aug 21, 2011 2:52 am

Awesome! :mrgreen:
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: Tetris Partner

Postby tintran » Sun Aug 21, 2011 4:24 am

Thanks, i am trying to see if i can get both joysticks going for Linux.
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Re: Tetris Partner

Postby Clokio » Mon Aug 22, 2011 12:49 am

tintran that a great idea 2 players, wow.
Clokio
 
Posts: 229
Joined: Tue May 17, 2011 2:18 pm
Score: 32 Give a positive score

Re: Tetris Partner

Postby tintran » Tue Aug 23, 2011 5:50 am

Turon wrote:Looks good! Love the Graphics! :D The Original did not have those graphics.

added motion blur.
Attachments
screenshot.jpg
tetrispartner.zip
(1.46 MiB) Downloaded 369 times
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Re: Tetris Partner

Postby Jagmaster » Tue Aug 23, 2011 12:39 pm

That motion blur is awesome! I am baffled by how you did all of this. :o
User avatar
Jagmaster
 
Posts: 875
Joined: Sun May 08, 2011 4:14 pm
Location: Not where you think.
Score: 82 Give a positive score

Re: Tetris Partner

Postby tintran » Tue Aug 23, 2011 8:34 pm

not sure which part baffles you :)
but the motion blur was done in Gimp,
  • Layer->Transform->Arbitrary Rotation (with 45) enter in the X,Y for my center
  • Layer->Layer to image size (this step is needed so that i can specify the same center X,Y again for the next step)
  • Filter->Motion Blur-> Radial (enter same X,Y) as step 1 for blur center and 90 for angle.
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Re: Tetris Partner

Postby tintran » Wed Aug 24, 2011 3:47 am

Added joystick support for Linux for player 1 and 2.
run joystickLinux.sh before or after starting the game.
and next piece's color preview.
(sorry about that 1 download, i forgot to uncomment some test code and so rows didn't get destroyed).
TetrisPartner.zip
(1.54 MiB) Downloaded 385 times


single player Tetris (arrow keys and 'end' key to rotate counter clockwise, use Tetris.ged instead of TetrisPartner.ged)
tetris.jpg
Tetris.zip
(1.46 MiB) Downloaded 374 times
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Re: Tetris Partner

Postby lcl » Sun Jan 15, 2012 11:19 pm

This is amazing!
I HAD to bump this because it hasn't gotten the attention it deserves!

This game is done in very good way.
It runs smoothly though it it uses canvas. That's a great example of how to use it efficiently.
The gameplay is also done very nicely and effects are cool, too!

I managed to find one bug that I could report.
See this picture, it explains quite well:
Image

Still great work tintran! :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Tetris Partner

Postby tintran » Mon Jan 16, 2012 12:17 am

If i make it so it pushes the other player's piece down that would be buggy too since it would seem odd that one player's control affect the other player's piece.
If i make it so it so it continues to drop when the space below is freed up it would violate the rule of stopping when no free space is available.

I don't know if it's a bug or a feature.
That happens when two players get in each other's way. Think of it as a penalty for being too risky! :)

note: it uses canvas to draw the pieces, all the motion blur for dropping and rotation is done using actors.
User avatar
tintran
 
Posts: 157
Joined: Fri Dec 24, 2010 1:34 am
Score: 30 Give a positive score

Next

Return to Game Demos

Who is online

Users browsing this forum: No registered users and 1 guest