Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


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

1 Team 22 沈昇勳、李宗儒、洪銘駿

2 Among EE students, one particular game is especially popular and has many devoted players: LUMINES. FOREWORDS

3 It 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 semester’s computer programming course. On the MRT Before sleepDuring class

4 COLOR DESIGN “0” to represent “space”, where there is no cube in the cell. “1” means the white cube “2” means the red cube “-1” is the “erasable” white cubes (which are gray cubes) “-2” is the “erasable” red cubes (which are crimson cubes)

5 COLOR DESIGN *erasable: some blocks can be eliminated and increase the player’s score. “9” is the blue blocks, the blocks that appear after blocks in one color are deleted.

6 FUNCTION DESIGN: DROP “drop”: 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.

7 FUNCTION DESIGN: CHANGECOLOR “changecolor”: 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.

8 FUNCTION DESIGN: GETPOINT “getpoint”: This function records how many blocks have been eliminated, thus keeping track of the player’s score.

9 FUNCTION DESIGN: SHOW “show”: 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.

10 FUNCTION DESIGN: SHOW It 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.

11 FUNCTION DESIGN: SHOW We also assigned a variable called “flag”. This variable is used to mark whether a cube is “droppable”. Flag=1 Flag=0

12 FUNCTION DESIGN: CONTROL “control”: 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.

13 FUNCTION DESIGN: CREATE&SHIFT As 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.

14 FILM FOR LUMINES C++

15 MIXING: LUMITETRIS In 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.

16 RULES OF LUMITETRIS Each 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 player’s game screen. After 90 seconds, the game is over. The player with more score and more “spaces” wins.

17

18 Team 22 沈昇勳、李宗儒、洪銘駿


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

Similar presentations


Ads by Google