-
Notifications
You must be signed in to change notification settings - Fork 4
Magma and nails code implementation
New terrains contain Magma and nails which base attack are 10 and 5 respectively. The magma and nails will only appear on the bonus level.
Create the game "nail" obstacle
A row of 5 nails in a straight line suspended in the air
The spawnNailsone function will be called at MainGameScreen.java and will appear when switching to a new map.
"spawnEntityAt" function helps us choose the coordinate position of the center of the nail, from there using nail.png and will scale the size of the rock horizontally and vertically.
Same goes with spawnNailstwo, spawnNailsthree,spawnNailsfour,..
public void spawnNailsone(int xValue) {
for (int i = 0; i < 5; i++) {
GridPoint2 pos = new GridPoint2(xValue +i, 60);
Entity nail = ObstacleFactory.createNail(player);
spawnEntityAt(nail, pos, true, false);
}
}
Create the game "Magma" obstacle
A row of 5 Magmas in a straight line suspended in the air
The spawnFireRocksone function will be called at MainGameScreen.java and will appear when switching to a new map.
"spawnEntityAt" function helps us choose the coordinate position of the center of the Magma, from there using firerock.png and will scale the size of the rock horizontally and vertically.
Same goes with spawnFireRockstwo
public void spawnMagmaOne(int xValue) {
for (int i = 0; i < 5; i++) {
GridPoint2 pos = new GridPoint2(xValue + -4 +i, 50);
Entity frock = ObstacleFactory.createMagma(player);
spawnEntityAt(frock, pos, true, false);
}
}
Create the game "Magma" obstacle
Form a rocks larger pyramid with ten rocks stacked on top of each other, a total of 6 rocks needed
Since the pyramid consists of four floors from the ground, the y coordinate of the rocks will be from 50 to 53, since y=50 the co-ordinate of the magmas will be on the ground
The x coordinate will depend on the location of the Magmas.
The spawnFireRockstwofunction will be called at MainGameScreen.java and will appear when switching to a new map.
"spawnEntityAt" function helps us choose the coordinate position of the center of the magmas, from there using rock.png and will scale the size of the rock horizontally and vertically.
public void spawnMagmaTwo(int xValue) {
GridPoint2 Pos = new GridPoint2(xValue + 22, 50);
Entity rock = ObstacleFactory.createMagma(player);
spawnEntityAt(rock, Pos, true, false);
GridPoint2 PosTwo = new GridPoint2(xValue + 23, 50);
Entity rockTwo = ObstacleFactory.createMagma(player);
spawnEntityAt(rockTwo, PosTwo, true, false);
GridPoint2 PosThree = new GridPoint2(xValue + 23, 51);
Entity rockThree = ObstacleFactory.createMagma(player);
spawnEntityAt(rockThree, PosThree, true, false);
GridPoint2 PosFour = new GridPoint2(xValue + 24, 50);
Entity rockFour = ObstacleFactory.createMagma(player);
spawnEntityAt(rockFour, PosFour, true, false);
GridPoint2 PosFive = new GridPoint2(xValue + 24, 51);
Entity rockFive = ObstacleFactory.createMagma(player);
spawnEntityAt(rockFive, PosFive, true, false);
GridPoint2 PosSix = new GridPoint2(xValue + 24, 52);
Entity rockSix = ObstacleFactory.createMagma(player);
spawnEntityAt(rockSix, PosSix, true, false);
GridPoint2 PosSeven = new GridPoint2(xValue + 25, 50);
Entity rockSeven = ObstacleFactory.createMagma(player);
spawnEntityAt(rockSeven, PosSeven, true, false);
GridPoint2 PosEight = new GridPoint2(xValue + 25, 51);
Entity rockEight = ObstacleFactory.createMagma(player);
spawnEntityAt(rockEight, PosEight, true, false);
GridPoint2 PosNine = new GridPoint2(xValue + 25, 52);
Entity rockNine = ObstacleFactory.createMagma(player);
spawnEntityAt(rockNine, PosNine, true, false);
GridPoint2 PosTen = new GridPoint2(xValue + 25, 53);
Entity rockTen = ObstacleFactory.createMagma(player);
spawnEntityAt(rockTen, PosTen, true, false);
}
- ObstacleFactory.java_createNail
- ForestGameArea.java_spawnMagmaOne
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