Tetris

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

User avatar
Benj
Matrix Staff
Posts: 14313
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4405 times
Been thanked: 4128 times
Contact:

Tetris

Postby Benj » Thu Sep 17, 2015 9:43 pm

Hello All,

I am currently working in my spare time on a pixel coffee table. The hardware is now complete and I will be posting a blog about the build shortly. In the mean time here is a version of Tetris you can play inside the Flowcode 6 simulator.

Screenshot.jpg
Screenshot.jpg (90.58 KiB) Viewed 8266 times


Sim.jpg
Sim.jpg (32.21 KiB) Viewed 8265 times


Simply extract the archive to your computer, open the Flowcode project file and click the play button. Ensure the system panel is open to see the simulation.

http://www.rowlandtechnology.com/projec ... Tetris.zip

Controls can be either using the arrow cursor keys, left = left, right = right, up = spin, down = move down. Just click any of the blank space by the flowchart to allow keypresses to work. Or you can simulate the table's IR sensors by clicking on the pixels on the panel. The touchable control areas are shown by the coloured rectangles shown before the game starts.

A couple of bugs I am aware of with the sim,

1) Music track only plays once but also doesn't end when you stop the simulation. Sorry about this I did try multiple other methods and couldn't get it to work, must be doing something wrong.
2) Redraw can occasionally be a bit slow
3) Speed up seems to transition from slow to fast all at once and makes game quite short

The Pong macros are a work in progress...
These users thanked the author Benj for the post (total 5):
acestu (Thu Sep 17, 2015 9:55 pm) • medelec35 (Thu Sep 17, 2015 10:11 pm) • kersing (Thu Sep 17, 2015 10:14 pm) • jgu1 (Fri Sep 18, 2015 1:27 pm) • Steve001 (Sat Sep 19, 2015 9:11 am)
Rating: 26.32%
 

User avatar
Benj
Matrix Staff
Posts: 14313
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4405 times
Been thanked: 4128 times
Contact:

Re: Tetris

Postby Benj » Fri Sep 18, 2015 11:00 am

Vid of game in action.

These users thanked the author Benj for the post:
medelec35 (Fri Sep 18, 2015 6:11 pm)
Rating: 5.26%
 

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8420
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2403 times
Been thanked: 3437 times
Contact:

Re: Tetris

Postby medelec35 » Fri Sep 18, 2015 12:16 pm

Hi Ben,
I had had a go with Flowcode simulator.
Its impressive and I must admit I did enjoy it.

Want a another go just typing about it. :lol:


Martin
These users thanked the author medelec35 for the post:
Benj (Fri Sep 18, 2015 6:05 pm)
Rating: 5.26%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
Benj
Matrix Staff
Posts: 14313
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4405 times
Been thanked: 4128 times
Contact:

Re: Tetris

Postby Benj » Fri Sep 18, 2015 6:12 pm

Cheers Martin,

Its surprising just how playable it is. Not sure which is better in the sim or using the actual table.

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1083
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 440 times
Been thanked: 490 times
Contact:

Re: Tetris

Postby Steve001 » Sat Sep 19, 2015 9:11 am

like martin i enjoyed that :D looking forward to see the table when it's finished

Steve
These users thanked the author Steve001 for the post:
Benj (Sat Sep 19, 2015 11:24 am)
Rating: 5.26%
 
Success always occurs in private and failure in full view.

User avatar
Benj
Matrix Staff
Posts: 14313
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4405 times
Been thanked: 4128 times
Contact:

Re: Tetris

Postby Benj » Mon Sep 21, 2015 10:08 am

Cheers Steve,

looking forward to see the table when it's finished


Here is a quick video I took a few weeks back when I was testing the IR response.



Full build guide is coming soon...
These users thanked the author Benj for the post (total 2):
Steve001 (Mon Sep 21, 2015 12:47 pm) • medelec35 (Wed Oct 28, 2015 9:43 pm)
Rating: 10.53%
 

User avatar
Benj
Matrix Staff
Posts: 14313
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4405 times
Been thanked: 4128 times
Contact:

Re: Tetris

Postby Benj » Tue Oct 27, 2015 6:11 pm

Tetris in action using the hardware, menu system and more games coming shortly.

[youtube=https://www.youtube.com/watch?v=xaqN2Ipex20][/youtube]
These users thanked the author Benj for the post:
medelec35 (Wed Oct 28, 2015 9:43 pm)
Rating: 5.26%
 

User avatar
Benj
Matrix Staff
Posts: 14313
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4405 times
Been thanked: 4128 times
Contact:

Re: Tetris

Postby Benj » Wed Oct 28, 2015 7:08 pm

Blog part 1 has now been released - http://www.matrixtsl.com/blog/rgb-led-p ... le-part-1/

Two more parts should be coming soon...

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8420
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2403 times
Been thanked: 3437 times
Contact:

Re: Tetris

Postby medelec35 » Wed Oct 28, 2015 9:42 pm

Hi Ben,
I thought that table is great!
Would love to give it a go.
Good job.
These users thanked the author medelec35 for the post:
Benj (Thu Oct 29, 2015 10:47 am)
Rating: 5.26%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

User avatar
Benj
Matrix Staff
Posts: 14313
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4405 times
Been thanked: 4128 times
Contact:

Re: Tetris

Postby Benj » Thu Nov 26, 2015 6:04 pm

Here is a new blog and an updated version of the software. This time including a graphical menu, Pong and a Game Of Life Cellular Automation.

http://www.matrixtsl.com/blog/rgb-led-p ... le-part-2/

Enjoy :D
These users thanked the author Benj for the post (total 3):
kersing (Thu Nov 26, 2015 6:36 pm) • dazz (Thu Nov 26, 2015 10:51 pm) • medelec35 (Fri Nov 27, 2015 5:55 pm)
Rating: 15.79%
 

User avatar
Benj
Matrix Staff
Posts: 14313
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4405 times
Been thanked: 4128 times
Contact:

Re: Tetris

Postby Benj » Sat Apr 02, 2016 1:45 pm

Finally managed to get the project written up on Instructables. Click the link below for the complete project.

http://www.instructables.com/id/RGB-LED ... ing-Table/



Here is the latest Master firmware now containing multi-player Pong and TicTacToe.

Master.fcfx
(390.04 KiB) Downloaded 197 times
These users thanked the author Benj for the post (total 2):
kersing (Sat Apr 02, 2016 5:43 pm) • Steve001 (Sun Apr 03, 2016 8:23 am)
Rating: 10.53%