StoryTetris/BlocksBy Arthur NugentCIS 587 Dr. MaximStorySeven different shapes each represented by a different color drop from the top of the box. Each time a row is completely filled in the player wins points. The player also gets points for each block that is played. The object of the game is to completely fill in lines on the board before the blocks reach the top; if the blocks reach the top then the game is over (See picture above).The game is a java applet and is located at www.cpp-datastructures.com/blocks.htm. The web page has 3 different and distinct java applets on it, one for expert players, one for average played and one for kids or beginners. The kid’s applet has larger blocks and they drop at much slower pace. The playing field also has a couple more rows and columns to make the game last longer for the kids.The expert field is also a little deeper and a little narrower, meaning there is allot less room to maneuver the blocks. As a players level increases so does the rate that the blocks fall. In the kids game the level increase after 10 lines, 5 for the average player and every 3 lines for the expert player. The challenge is to beat your session’s high score, luring the player to stay and play. The toolsArthur Nugent – I made it manDoug Code – I made it better manJava development kit 1.3WinEditJava by Example Clayton WalnumJava how to program 2nd editionJava how to program 3rd editionScoring – on a lines killed basisExpert1 line – 25 points2 lines – 100 points3 lines – 250 points4 lines 1000 pointsAverage and kids1 line 10 points2 lines 25 points3 lines 50 points4 lines 100 pointsThe thought behind the expert players getting more points is to challenge the players and to hook them to the game (Better bragging rights). I also made the kids blocks bigger to make it easier to manipulate the blocks.The challengeExperts 300 milliseconds level 150 milliseconds level 93 lines killed per level so if a hot shot player goes for the big points (4 kills) at once they could conceivably jump 2 levels at once and increase the speed the block falls dramatically.Average900 milliseconds – level 1100 milliseconds – level 95 kills per levelkids900 milliseconds – level 1100 milliseconds – level 910 kills per levelA little slower procession from level to level builds up a users confidence so that I might tare it down a little later in the game…he heThe players The bi g L Blockhea d Sti ck Con fu sed l Gr een Ma n Yi n g - zi g Ya n g - za gClass structuresShape – Creates the shape of the blockElement – Creates the movement of the blocksCanvasField – creates the playing fieldStats – score, speed, statsBlocks – runs the appletReferencesDoug Code – Helped make the applet more efficienthttp://www.tetris.com/Tetris / blocksShape
View Full Document