EE308 Lab2_2

Xsssy126 2022-11-17 02:09:16

EE308 Lab2_2

The Link Your Classhttps://bbs.csdn.net/forums/MUEE308FZU202201
The Link of Requirement of This Assignmenthttps://bbs.csdn.net/topics/608859318
The Aim of This AssignmentImplements the Bobing Software Prototype
My MU STU ID and FZU STU ID20124716 832001109
Teammate's MU STU ID and FZU STU ID20123426_832001106
Teammate's blog linkhttps://bbs.csdn.net/topics/609106915
Teammate's MU STU ID and FZU STU ID20124520 832001229
Teammate's blog link
GitHub linkhttps://github.com/Shuyue126/EE308-Lab2
Video demo linkhttps://v.douyin.com/rY2QMqc/

Content

  1. PSP and Learning Progress Bar
  2. Key or Difficult Functions, Programming Thinking

1. PSP and Learning Progress Bar

1.1 PSP form

Personal Software Process StagesEstimated Time/minutesCompleted Time/minutes
Planning1020
Estimate55
Development120120
Analysis100110
Design Spec4055
Design Review1015
Coding Standard1520
Design6070
Coding480600
Code Review100100
Test180200
Test Report2035
Postmortem & Process Improvement Plan3030
Total11701380

1.2 Learning Progress Bar

weekAdded code (line)Cumulative code (lines)Study Time this week (hours)Cumulative learning time (hours)Important Growth
1500500129Analysis requirements, design program page
260011001221Optimize the program and page, improve the multiplayer system

2. Programming Thinking, Key or Difficult Functions

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.

  1. 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.

  2. 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.

3. Events that Spend More Time in Activities

  • 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.

4. Pair Programming Experience

  • In this experiment, we started to touch the front-end development software, designed the UI, learned to use Axure for some interactive operations, used JavaScript for programming, and ran on the VScode platform.
  • I learned a lot from this cooperation. Teamwork is very important, because when a person's idea is not perfect, communication and discussion with teammates can often supplement the idea, which can bring better results.
  • At the same time, in programming, the collision of the minds of many people can better check the code, so that the code is constantly improved.
  • This experiment attaches great importance to pairing, allowing the whole team to participate in the development process and benefit from various aspects.

5. Working Photo

在这里插入图片描述

...全文
127 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

285

社区成员

发帖
与我相关
我的任务
社区描述
福州大学 梅努斯国际工程学院 软件工程(2022秋) 教学
软件工程 高校
社区管理员
  • LinQF39
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧