The Link Your Class | |
The Link of Requirement of This Assignment | |
MU STU ID and FZU STU ID | 20122543_832001317 |
Teammate's MU STU ID and FZU STU ID | 20123566_832001316 |
Teammate's blog link |
|
Teammate's MU STU ID and FZU STU ID | 20123094_832001307 |
Teammate's blog link |
|
PSP Form
Personal Software Process Stages | Estimated time (minutes) | Actual time spent (minutes) |
Planning | 60 | 75 |
Estimate | 5 | 5 |
Development | 1000 | 1260 |
Analysis | 30 | 20 |
Design Spec | -- | -- |
Design Review | -- | -- |
Coding Standard | 20 | 15 |
Design | 40 | 60 |
Coding | 300 | 650 |
Code Review | 10 | 15 |
Test | 60 | 80 |
Test Report | 10 | 15 |
Size Measurement | 10 | 10 |
Postmortem & Process Improvement Plan | 20 | 45 |
Total | 1565 | 2250 |
Week | code number(line) | Cumulative code (lines) | Study Time this week (hours) | Cumulative learning events (hours) | Important Growth |
---|---|---|---|---|---|
1 | 456 | 456 | 8 | 8 | Learn and master the use of wechat small program developer tools |
2 | 748 | 1204 | 9 | 14 | Use development tools for back-end development and debugging code |
Project Description
We use the wechat small program developer tool to develop and create the pie game. We have two game modes in the game: single player and multiplayer. In either game mode, the game will display six dice, six dice 🎲 display six randomly generated numbers, with the displayed number as the final result. At the same time, each result after the settlement will show the player's level of this round of cake and the prize. The multiplayer mode is the same as the single player mode, but allows up to four people to play together online.
Photos of Cooperation
Main development content and key functions
1. Background music:
We set up a function to control the background music on or off the state. At the same time, add the "button" button on the interface, so that the player can choose whether to turn on the background music. We also made background music loop through all the screens.
2. Realization of dice results :
We generate random numbers through random number functions. After the random number is generated, the "dicejudge" function is used to traverse the six random numbers, so as to judge the number of dice. And then let certain combinations of random numbers display the corresponding names.
3. Implementation of multiplayer mode:
In multiplayer, we have two -, three - and four-player rooms that can be played by multiple players simultaneously. And the multi-player mode program development is based on the single-player mode to further improve and improve the program.
Difficulties and solutions
In the process of development, difficult problems are unavoidable. In the multiplayer development, we wanted to allow players to customize the number of people in the game to play multiplayer. In the development of customizing the number of players in the same room, we ran into a problem that was not programatically possible, but after we looked at the relevant data, we solved the problem by setting the number of players in the room.
Reference Materials🔗:http://t.csdn.cn/PFQMyhttp://t.csdn.cn/PFQMy
组件生命周期 | 微信开放文档 (qq.com)https://developers.weixin.qq.com/miniprogram/dev/framework/custom-component/lifetimes.htmlhttp://t.csdn.cn/Lnm4Fhttp://t.csdn.cn/Lnm4F
Project Presentation Video
Github link to 🔗
Summary
In this small program development, we not only learned a lot of programming knowledge, programming ability has been further improved; At the same time, we also have a further understanding of the wechat small program back-end development. Finally, with the joint efforts of my team members and I, we solved the problem and completed the challenge together. It was a really good try!