Click on game to activate controls.
|
At the beginning of the project my partner and I started by playing different flash games online so we could get a feel of what they were, and to get ideas for out own. When we were brainstorming for ideas my partner, Alicia, came up with Tetris. Tetris is really a game that she can spend hours on so she pitched the idea to me and I was all for it. Originally she wan't going to use it, so I used it. We searched for a flash version of Tetris code and found one right away. We started working in Adobe Flash 3.0. The tutorial was pretty straight forward, for the most part all we had to do was copy and paste the code. However, the problems started when we didn't know where to paste some of the code. It was easily fixed after that. We also discovered that some of the code was incorrect. We fixed that problem by going into the comments and seeing what other coders had said about fixing it. Soon after we had fixed all of out problems and continued with our game making. Our last problem was modifying. My partner and I both wanted to insert images on our tetrominos, unfortunately the tutorial we used din't allow for that to be done so we had to think of another idea. We both ended up with monochromatic scheme, I had grey and my partner had gold. I think our biggest success was actually finishing our game, considering that we had to start over so many times. I was very excited for the end product of my game. Many of our classmates enjoyed the games, but their Tetris skills weren't as good as Alicia's. The parts of the code that I modified were the colors of the bricks and the background and the speed of the dropping bricks.
|
Original code for block colors
Modified code for block colors
In original Tetris game, the Tetrominoes are different colors, (red, blue, green, purple, etc.,). When coming up with modification ideas I came up with a grey monochromatic scheme. My partner decided to use the same theme except using gold instead of grey.
Original code for background
Modified code for background
The original Tetris background in the tutorial was a dark grey checker board. I could have stayed with that, but it was too similar to my blocks so I changed it.
Original code for dropping speed
Modified code for dropping speed
In an average Tetris game, the longer you play the faster the blocks fall. We didn't have that option in the tutorial so I decided my game should just be a bit of a faster pace than usual. The actual speed is the number in the parenthesis. "(500)" and "(125)". In the tutorial the speed it falls at is 500 milliseconds. When we was first trying to change this Alicia thought the number had to go up to go faster, so she changed it to 1000 and 5000. Those were barely moving. After fiddling around with the speed we found a nice balance.