285
社区成员




The Link Your Class | https://bbs.csdn.net/forums/MUEE308FZU202201 |
---|---|
The Link of Requirement of This Assignment | https://bbs.csdn.net/topics/608859318 |
The Aim of This Assignment | Implements the Bobing Software Prototype |
My MU STU ID and FZU STU ID | 20124716 832001109 |
Teammate's MU STU ID and FZU STU ID | 20123426_832001106 |
Teammate's blog link | https://bbs.csdn.net/topics/609106915 |
Teammate's MU STU ID and FZU STU ID | 20124520 832001229 |
Teammate's blog link | |
GitHub link | https://github.com/Shuyue126/EE308-Lab2 |
Video demo link | https://v.douyin.com/rY2QMqc/ |
Personal Software Process Stages | Estimated Time/minutes | Completed Time/minutes |
---|---|---|
Planning | 10 | 20 |
Estimate | 5 | 5 |
Development | 120 | 120 |
Analysis | 100 | 110 |
Design Spec | 40 | 55 |
Design Review | 10 | 15 |
Coding Standard | 15 | 20 |
Design | 60 | 70 |
Coding | 480 | 600 |
Code Review | 100 | 100 |
Test | 180 | 200 |
Test Report | 20 | 35 |
Postmortem & Process Improvement Plan | 30 | 30 |
Total | 1170 | 1380 |
week | Added code (line) | Cumulative code (lines) | Study Time this week (hours) | Cumulative learning time (hours) | Important Growth |
---|---|---|---|---|---|
1 | 500 | 500 | 12 | 9 | Analysis requirements, design program page |
2 | 600 | 1100 | 12 | 21 | Optimize the program and page, improve the multiplayer system |
For the design of the whole program, we referred to the flow of some daily games, designed the main page, login page, menu, mode, results and a series of processes, and then began to design the details of the game.
The first difficulty we encountered was the dice in the game. The six dice had to be rolled randomly and judged automatically, and the result was displayed in the next screen.
This is the most important point of the whole mini-game.
We set six global variables that correspond to the number of sides on the die from 1 to 6. After starting the game, calculate the result of each die and increment the variable by 1 for each point on the die. Finally, according to the final results of the six variables, the award can be inferred and displayed in the next interface.
Another big issue is how to save data for three players in multiplayer.
After reviewing the literature, we taught ourselves "node.js" and created a small server to import data into the database.
About the dice animation change:
At first, when we were thinking about dice and how to realize the number of dice corresponding to them, we designed static dice with animation of 360 degree rotation from the beginning to the end of dice casting. Later, we improved the dice and realize three-dimensional animation of dice casting. We use the random function [Math.random()*6] to guarantee the random number of dice.The randomness of the points. Finally we match the random roll with the die: the die animation changes the corresponding die face as the roll of the die changes.
For coding:
We chose JS to write this program, because I have not learned it before, so I spent a lot of time in learning the code, and often the program runs wrong. The logical thinking is very confusing at the beginning, and then I become proficient with writing more.
As for multiplayer mode:
From fighting with human machine to learning to set up a database to store data can be played between real people. At first, we did not know how to save data and account password data, so we planned to set the game to be played by multiple people and human machines without networking. In the later process of studying JS code, we learned [node.js] to establish a database, which can effectively save the account password.