Tetris

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

Moderator: Benj

Post Reply
User avatar
Benj
Matrix Staff
Posts: 14846
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Tetris

Post by Benj »

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 9314 times
Sim.jpg
Sim.jpg (32.21 KiB) Viewed 9313 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...

User avatar
Benj
Matrix Staff
Posts: 14846
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Tetris

Post by Benj »

Vid of game in action.

[/youtube]

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8876
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: Tetris

Post by medelec35 »

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
Martin

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

User avatar
Benj
Matrix Staff
Posts: 14846
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Tetris

Post by Benj »

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: 1142
Joined: Wed Dec 31, 2008 3:37 pm
Contact:

Re: Tetris

Post by Steve001 »

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

Steve
Success always occurs in private and failure in full view.

User avatar
Benj
Matrix Staff
Posts: 14846
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Tetris

Post by Benj »

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.

[/youtube]

Full build guide is coming soon...

User avatar
Benj
Matrix Staff
Posts: 14846
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Tetris

Post by Benj »

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

[/youtube]

User avatar
Benj
Matrix Staff
Posts: 14846
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Tetris

Post by Benj »

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: 8876
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: Tetris

Post by medelec35 »

Hi Ben,
I thought that table is great!
Would love to give it a go.
Good job.
Martin

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

User avatar
Benj
Matrix Staff
Posts: 14846
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Tetris

Post by Benj »

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

User avatar
Benj
Matrix Staff
Posts: 14846
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Tetris

Post by Benj »

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/

[/youtube]

Here is the latest Master firmware now containing multi-player Pong and TicTacToe.
Master.fcfx
(390.02 KiB) Downloaded 235 times

Post Reply