Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding New Tower Variants and Upgrade Feature #127

Merged
merged 46 commits into from
Sep 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
0dddd12
Created new TowerUpgraderComponent class, which listens for an event …
AlasdairS4698737 Aug 31, 2023
9cde24a
Added capabilty for TowerUpgraderComponent to increase the the base a…
AlasdairS4698737 Aug 31, 2023
0d189ca
Merge branch 'main' into Team-2--Alasdair-Branch
AlasdairS4698737 Sep 1, 2023
98c3dc5
Fixed filename typo
AlasdairS4698737 Sep 3, 2023
c75f782
Implemented the upgrading of a tower's max health, including changes …
AlasdairS4698737 Sep 3, 2023
051b6b2
added new methods and config files for tower1 and tower2
shiv-0831 Sep 4, 2023
71079ee
Added the modified files
shiv-0831 Sep 4, 2023
3ebc055
renamed tower1 to fireTower and tower2 with stunTower in relevant files
shiv-0831 Sep 6, 2023
82715be
Added fire rate upgrade functionality to TowerUpgraderComponent, also…
AlasdairS4698737 Sep 6, 2023
705c3e2
TowerUpgraderComponent is now added to tower entities when they are c…
AlasdairS4698737 Sep 6, 2023
23d4e6e
Added repair capability to TowerUpgraderComponent
AlasdairS4698737 Sep 6, 2023
c8f319d
Merge branch 'main' into Shivam-Tower
shiv-0831 Sep 6, 2023
4169819
Merge pull request #97 from UQcsse3200/Team-2--Alasdair-Branch
The-AhmadAA Sep 6, 2023
0b5452e
fixed bug (#104)
Mohamad11Dab Sep 7, 2023
e46afce
created the FireTowerAnimationController, FireTowerCombatTask and com…
shiv-0831 Sep 7, 2023
4bbef11
Added files StunTowerCombatTask, StunTowerAnimationController, stun_t…
shiv-0831 Sep 7, 2023
bfee942
Added the png and atlas file for the DroidTower
Mohamad11Dab Sep 7, 2023
d7870fd
Added all the configurations for the DroidTower
Mohamad11Dab Sep 7, 2023
1863d80
Created the DroidTower entity and added some of the components to it
Mohamad11Dab Sep 7, 2023
71e40d4
Created the DroidAnimationController which listens to events relevant…
Mohamad11Dab Sep 7, 2023
406027b
Averts divide by zero edge case if a tower's firerate is reduced to 0…
AlasdairS4698737 Sep 8, 2023
bd6a871
TowerUpgraderComponent is a component of all tower entities, rather t…
AlasdairS4698737 Sep 8, 2023
0afcd0c
Update TowerCombatTask.java
The-AhmadAA Sep 8, 2023
5549e12
Update TowerUpgraderComponentTest.java
The-AhmadAA Sep 8, 2023
bfc1018
Merge pull request #117 from UQcsse3200/Team-2--Alasdair-Branch
The-AhmadAA Sep 8, 2023
4441a3b
Corrected animation lengths for fireTowers and stunTowers.
shiv-0831 Sep 8, 2023
5447fa5
resoved merge conflict with Team-2--Towers
shiv-0831 Sep 8, 2023
2a1b8e8
Added javadocs to StunTowerAnimationController, FireTowerAnimationCon…
shiv-0831 Sep 8, 2023
ea1063c
Merge pull request #119 from UQcsse3200/Shivam-Tower
The-AhmadAA Sep 8, 2023
46da325
Adjusted the TNT effect so that it only affects target on the same lane
Mohamad11Dab Sep 8, 2023
490cfdf
Added the combat task for Droid tower which triggers animations accor…
Mohamad11Dab Sep 8, 2023
8e804de
Added components to the Droid tower
Mohamad11Dab Sep 8, 2023
7ca10b5
Spawned Droid Tower to the game
Mohamad11Dab Sep 8, 2023
7eff3d7
fixed merge conflicts with Team-2--Towers
Mohamad11Dab Sep 8, 2023
105f823
Merge pull request #120 from UQcsse3200/Mohamad-Tower
The-AhmadAA Sep 8, 2023
96d2bcd
fixed merge conflicts with main
Mohamad11Dab Sep 8, 2023
c383c8a
Merge branch 'Team-2--Towers' into Mohamad-Tower
Mohamad11Dab Sep 8, 2023
e81b332
fixed merge conflict
Mohamad11Dab Sep 8, 2023
f413095
fixed merge conflicts with Team-5--Economy
Mohamad11Dab Sep 9, 2023
551e09f
Spawn 2 income turrets instead of 50
Mohamad11Dab Sep 9, 2023
d58efa3
Spawn 2 income turrets instead of 50
Mohamad11Dab Sep 9, 2023
5d7113c
Merge branch 'main' into Mohamad-Tower
Mohamad11Dab Sep 9, 2023
fb1466a
Added JUnit tests for DroidAnimationController and TNTDamageComponent
Mohamad11Dab Sep 9, 2023
55a56b8
Merge branch 'main' into Mohamad-Tower
Mohamad11Dab Sep 9, 2023
f369560
Increased the Droid health because it's dying quickly
Mohamad11Dab Sep 9, 2023
49a23d4
Integrated the slow-effect projectile with the Droid
Mohamad11Dab Sep 9, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions source/core/assets/configs/tower.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,21 @@
"health": 10,
"baseAttack": 5,
"cost": 1
},
"DroidTower": {
"health": 50,
"baseAttack": 5,
"cost": 1
},
"fireTower": {
"health": 10,
"baseAttack": 10,
"cost": 10
},
"stunTower": {
"health": 10,
"baseAttack": 10,
"cost": 10

}
}
251 changes: 251 additions & 0 deletions source/core/assets/images/towers/DroidTower.atlas
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@

DroidTower.png
size: 1024, 64
format: RGBA8888
filter: Nearest, Nearest
repeat: none
attackDown
rotate: false
xy: 72, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 4
attackDown
rotate: false
xy: 212, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 1
attackDown
rotate: false
xy: 457, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 3
attackDown
rotate: false
xy: 597, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 0
attackDown
rotate: false
xy: 737, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 2
attackUp
rotate: false
xy: 247, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 3
attackUp
rotate: false
xy: 422, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 0
attackUp
rotate: false
xy: 422, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 4
death
rotate: false
xy: 422, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 0
idle
rotate: false
xy: 422, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 0
attackUp
rotate: false
xy: 632, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 2
attackUp
rotate: false
xy: 842, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 1
death
rotate: false
xy: 2, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 1
death
rotate: false
xy: 177, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 6
death
rotate: false
xy: 387, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 8
death
rotate: false
xy: 527, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 5
death
rotate: false
xy: 702, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 7
goDown
rotate: false
xy: 37, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 1
death
rotate: false
xy: 37, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 3
goUp
rotate: false
xy: 37, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 2
goDown
rotate: false
xy: 282, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 3
goUp
rotate: false
xy: 282, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 0
goDown
rotate: false
xy: 562, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 5
goDown
rotate: false
xy: 772, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 4
goUp
rotate: false
xy: 142, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 1
death
rotate: false
xy: 142, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 4
goDown
rotate: false
xy: 142, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 2
goUp
rotate: false
xy: 352, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 3
death
rotate: false
xy: 352, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 2
goDown
rotate: false
xy: 352, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 0
walk
rotate: false
xy: 107, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 1
walk
rotate: false
xy: 317, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 3
walk
rotate: false
xy: 492, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 0
walk
rotate: false
xy: 667, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 2
walk
rotate: false
xy: 807, 2
size: 33, 38
orig: 33, 38
offset: 0, 0
index: 4
Binary file added source/core/assets/images/towers/DroidTower.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
83 changes: 83 additions & 0 deletions source/core/assets/images/towers/fire_tower_atlas.atlas
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@

fire_tower_atlas.png
size: 1024, 64
format: RGBA8888
filter: Nearest, Nearest
repeat: none
attack
rotate: false
xy: 122, 2
size: 58, 58
orig: 58, 58
offset: 0, 0
index: 1
attack
rotate: false
xy: 302, 2
size: 58, 58
orig: 58, 58
offset: 0, 0
index: 3
attack
rotate: false
xy: 422, 2
size: 58, 58
orig: 58, 58
offset: 0, 0
index: 0
attack
rotate: false
xy: 602, 2
size: 58, 58
orig: 58, 58
offset: 0, 0
index: 2
idle
rotate: false
xy: 62, 2
size: 58, 58
orig: 58, 58
offset: 0, 0
index: 1
idle
rotate: false
xy: 182, 2
size: 58, 58
orig: 58, 58
offset: 0, 0
index: 3
idle
rotate: false
xy: 362, 2
size: 58, 58
orig: 58, 58
offset: 0, 0
index: 0
idle
rotate: false
xy: 542, 2
size: 58, 58
orig: 58, 58
offset: 0, 0
index: 2
prep_attack
rotate: false
xy: 2, 2
size: 58, 58
orig: 58, 58
offset: 0, 0
index: 1
prep_attack
rotate: false
xy: 242, 2
size: 58, 58
orig: 58, 58
offset: 0, 0
index: 0
prep_attack
rotate: false
xy: 482, 2
size: 58, 58
orig: 58, 58
offset: 0, 0
index: 2
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading