PDA

View Full Version : Tetris?


pachufir
01-31-2009, 01:25 PM
Does anyone have the code for a simple tetris game that i can study? the actionscript, or better yet an .fla, would be greatly appreciated... thanks in advance:)

orange gold
02-01-2009, 02:26 AM
just download sothlink swf extracter.. then search new grounds or ome flash game site for tetris... sothlink will let you take any game/flash file offline and convert it to an fla... xD... other then that... no sorry i dont have a tetris fla but you might be able to find one on google if you dont wana buy sothlink

orange gold
02-01-2009, 02:31 AM
googled it and found one...

tutorial to make it link...
http://www.webdesign.org/web/flash-&-swish/flash-tutorials/tetris.11081.html

download the fla link...
http://www.mediafire.com/download.php?uzox1lgwl1m


just googled flash tetris tutorial :P


have fun!

EightySeven
02-01-2009, 02:36 AM
Sorry, but I'm not sure advising people to rip off other peoples work is the most ethical thing you can suggest on these forums

bluemagica
02-01-2009, 06:01 AM
Yeh orange gold, don't push new guys in the wrong direction! And the tutorial is pretty good, but i think he is gonna have a hard time making sense of all that code!

SCELF
02-03-2009, 07:04 AM
I am actually in the process of learning AS3 just to make the most amazing tetris game -ever- (lol). Actually you can see pics of it

here (http://www.jappleng.com/toybox/downloads/socialcenter/screens/Title-A.jpg) | here (http://www.jappleng.com/toybox/field%10selection.jpg) | and here (http://www.jappleng.com/toybox/Gameplay.jpg).

Single mode, challenge mode, shop (redeem tokens you get from challenge mode), and online mode to play against many players. It's difficult being that I know very little about AS, but I found many tutorials on these forums, google, and on flashkit. TBH, I could really use some help making this free game lol but I figure it'll destroy the challenge of making it all up myself :)

Like I said, flashkit.org is a good place to start, but it's a little messy, buggy, and has a crappy community.

dialectric
04-24-2011, 05:02 PM
Hey All,

I've made the code available for a 2d-array based Actionscript 3 tetris implementation. Its GPL so feel free to reuse it if you make the source available. Any suggestions or bugs, let me know.

http://www.software-giant.com/wiki/main/Site/TetrisClone

- dialectric

dialectric
08-18-2011, 06:49 AM
I initially thought Dr Mario wouldn't be much harder than tetris to code, as the games look similar, and both deal with relatively simple rotating blocks, but having to keep track of the individual pills and colors in Dr Mario requires a significantly different structure.

A more OOP approach than mine might have solved this in a simpler way, but I was able to get it to work with some pretty tangled-looking code, which is available GPL if anyone is interested.

http://www.software-giant.com/wiki/main/Site/DrMario

- dialectric