-
Notifications
You must be signed in to change notification settings - Fork 4
Code Smell & Logger Messages
One of Team9's task it to solve some code smells according to the sonar cloud. There are five levels of severity:
- Blocker: We resolved 7 of this.
- Critical: We resolved approximately 30 of this.
- Major: We resolved approximately 50 of this.
- Minor: We resolved approximately 100 of this.
- Info: We did not change any of these. During the process of fixing these code smells. We found the the major causes of code smells are:
- Duplicate code: hard to solve, may cause merge conflicts. (We spent 1/3 of the time solving merge conflicts)
- Bad variable names: Very hard to fix. Need to change the whole contexts and unnecessary.
- Varibales may be "final": Easy to change, based on the suggestions of IDE.
- Lots of commented lines of code: This is easy to solve. Just delete them and no need to worry other teams will uncomment in the future cause this is the last sprint.
- Varibales should be static: Hard to solve, need to change other parts of the class and also need to change classes in other packages.
- Unused Methods & Variabales: Easy to solve, but need some considerations.
- Unused import: This is the easiest code smells to fix.
- Remove some local variables because they can be local variables: Easy to fix. ...there are many more
This image is the proof of our work. Since we have limited time, we couldn't fix all of them. There are about 850 code smells before and now it has only 680 (10/19/2021 1pm.)
With the help from Therese and Week 8 Tutorial. We figured out how to change the level of the logger messages sent to the console in the properties files. However, we did not commit any changes of that file because each memeber in this studio can change them locally.
Instead, we deleted some useless logger messages (each logger has its purpose but some of them are unnecessary in sprint4). For example, the logger.info(Users' operations) including click quit button or click play button and go to main game screen.... These logger messages are unnecessary at this stage. They could be used in some user tests to track how do users play this game.
What we kept are:
- Some important class must at least have one logger messages --- according to Week 8 tutorial slides last page.
- The loadAssets: % ..... Date is kept because it works like a loading page which tells user the loading status.
- Most of the debug level logger messages were kept.
Camera Angle and The Player's Perspective
Achievements Trophies and Cards
πΎ Obstacle/Enemy
βMonster Manual
βObstacles/Enemies
ββ- Alien Plants
ββ- Variation thorns
ββ- Falling Meteorites
ββ- FaceHugger
ββ- AlienMonkey
βSpaceship & Map Entry
βParticle effect
[code for debuff animations](code for debuff animations)
Main Character Movement, Interactions and Animations - Code Guidelines
ItemBar & Recycle system
πΎ Obstacle/Enemy
βObstacle/Enemy
βMonster Manual
βSpaceship Boss
βParticle effects
βOther Related Code
βUML & Sequence diagram of enemies/obstacles
Scoring System Implementation Explanation
Buff and Debuff Implementation
Infinite generating terrains Implementation Explanation
Game Over Screen and functions explaination
Buffer timer before game start
Rocks and woods layout optimization
Magma and nails code implementation
Guide: Adding Background music for a particular screen
History Scoreboard - Score Details
Listening for important events in the Achievements ecosystem
Hunger and Thirst icon code guidelines
Hunger and Thirst User Testing
Buff and Debuff Manual User Testing
The New Button User Test in Setting Page
The Main Menu Buttons User Testing
Infinite loop game and Terrain Testing
https://github.com/UQdeco2800/2021-ext-studio-2.wiki.git
πΎ Obstacle/Enemy
βObstacle testing
ββ- Alien Plants & Variation Thorns
ββ- Falling Meteorites
βEnemy testing
ββ- Alien Monkeys & Facehugger
ββ- Spaceship Boss
βMonster Manual
βParticle-effect
βPlayer attack testing
ββ- Player Attack
Sprint 1
Sprint 2
Sprint 3
Sprint 4
Changeable background & Buffer time testing
Game over screen test sprint 4
New terrain textures on bonus map test sprint 4
Achievements System, Game Records and Unlockable Chapters
Musics Implementation Testing plan