18
DEMONSTRATION LUMINES BLOCK CHALLENGE Team 22 沈沈沈 沈沈沈沈 沈沈沈 、、

Team 22 沈昇勳、李宗儒、洪銘駿. Among EE students, one particular game is especially popular and has many devoted players: LUMINES. FOREWORDS

Embed Size (px)

Citation preview

PowerPoint

DemonstrationLumines Block ChallengeTeam 22 1Among EE students, one particular game is especially popular and has many devoted players: LUMINES.Forewords

2ForewordsIt is so popular that students play it on the MRT, before sleep, occasionally even during class (just kidding :P)! We decided to do an implementation of this well-received game on C++, which we have learned in last semesters computer programming course.

On the MRTBefore sleepDuring class3color design0 to represent space, where there is no cube in the cell. 1 means the white cube2 means the red cube-1 is the erasable white cubes (which are gray cubes)-2 is the erasable red cubes (which are crimson cubes) 4color design*erasable: some blocks can be eliminated and increase the players score.9 is the blue blocks, the blocks that appear after blocks in one color are deleted.

5Function design: dropdrop: This function makes a cube with space beneath it fall until whatever underneath it is not space anymore; that is, it is at the bottom or on top of other cubes.

6Function design: changecolorchangecolor: This function is used to decide if a cube and the cells on the right, on the bottom right and under it are of the same color. If they are in the same color, then this function turns these four cubes into erasable cubes, which are the cubes in darker colors. We use the for loops to distinguish the colors of the cells.

7Function design: getpointgetpoint: This function records how many blocks have been eliminated, thus keeping track of the players score.

8Function design: showshow: The function that is the integration of all the other functions. This function refreshes the game screen after a period of time, so that it can update and change the display simultaneously.9Function design: showIt turns the numbers in the game screen (an array) into different colors, and then a line would swipe through the screen from the far left to the other end. If the line meets a block that is erasable, it would be eliminated.

10Function design: showWe also assigned a variable called flag. This variable is used to mark whether a cube is droppable.

Flag=1Flag=011Function design: controlcontrol: We used ASCII to make the function able to manipulate the cubes. With this function, the player can control the movements of the random 2*2 blocks. We assign the enter button as clockwise rotate, up as the rotation in the opposite direction, down as drop, left and right as the movement of the cube.12Function design: create&shiftAs for the creation of the random blocks, we designed two functions: create and shift. When a random block is dropped, these two functions will be triggered and thus creating a new random block.

13Film for lumines c++

14Mixing: LumitetrisIn short, LUMINES+ TETRIS= LumiTetris.Tetris Battle is an online competition game. In 2P battle mode, whoever gets the most lines sent or the most KO's wins in this game. Lines sent can only be cleared by placing a tetris piece on top the Bombs.

15Rules of LumitetrisEach player has to eliminate his or her own blocks, but if a player eliminates six or more 2*2 blocks in one round, he or she can force the game screen of the other player to have one more row of cubes that is randomly produced appear at the bottom of this other players game screen. After 90 seconds, the game is over. The player with more score and more spaces wins.16Time toDemonstrateLumitetris!!!17Thanks for yourattentionThe endTeam 22 18