inching towards better class inheritence and multiplayer compatibility
This commit is contained in:
Assets
TextureAtlases
g_accelerator.tresg_assault.tresg_glue_gun.tresg_grenade_launcher.tresg_rocket_launcher.tresg_sniper.tresgun.trestarget_list.tres
Textures
PCs
Blue
Green
Red
Universal
ClassCards
Assault
card_assault.tresg_assault.pngg_assault.png.importtower_assault.gdtower_assault.tscntower_stats.tresweapon.gdweapon_assault.gdweapon_assault.tscnweapon_stats.tres
Blowdart
blowdart.pngblowdart.png.importblowdartweapon.gdcard_blowdart.tresweapon_blowdart.gdweapon_blowdart.tscnweapon_stats.tres
BombLauncher
bomb.gdbomb.pngbomb.png.importbomb.tscnbomb_projectile.gdbomb_projectile.tscnbombweapon.gdcard_bomb_launcher.trescard_grenade_launcher.tresgrenade_launcher.pnggrenade_launcher.png.importtower_bomb_launcher.gdtower_bomb_launcher.tscntower_stats.tresweapon_bomb_launcher.gdweapon_bomb_launcher.tscnweapon_stats.tres
DamageEnhancer
Fireball
card_fireball.tresfireball.gdfireball.pngfireball.png.importfireball.tscnfireball_projectile.gdfireball_projectile.pngfireball_projectile.png.importfireball_projectile.tscnfireballweapon.gdweapon_fireball.gdweapon_fireball.tscnweapon_stats.tres
GammaLaser
Gatling
card_gatling.tresgatling.pnggatling.png.importspeedytower.gdspeedyweapon.gdtower_gatling.gdtower_gatling.tscntower_stats.tresweapon_gatling.gdweapon_gatling.tscnweapon_stats.tres
GlueLauncher
card_glue_launcher.tresglue_gun.pngglue_gun.png.importstickyweapon.gdweapon_glue_launcher.gdweapon_glue_launcher.tscnweapon_stats.tres
Icicle
card_icicle.tresicicle.gdicicle.pngicicle.png.importicicle.tscnicicle_projectile.gdicicle_projectile.pngicicle_projectile.png.importicicle_projectile.tscnicicleweapon.gdweapon_icicle.gdweapon_icicle.tscnweapon_stats.tres
Lightning
Reactor
Refridgerator
RocketLauncher
card_rocket_launcher.tresrocket.gdrocket.pngrocket.png.importrocket.png.krarocket.tscnrocket_launcher.pngrocket_launcher.png.importrocket_projectile.gdrocket_projectile.tscnrocket_weapon.gdtarget_icon.pngtarget_icon.png.importtarget_icon.tscntarget_list.pngtarget_list.png.importtower_rocket_launcher.gdtower_rocket_launcher.tscntower_stats.tresweapon_rocket_launcher.gdweapon_rocket_launcher.tscnweapon_stats.tres
Sniper
card_sniper.tresg_sniper.pngg_sniper.png.importscopetest.pngscopetest.png.importtower_sniper.gdtower_sniper.tscntower_stats.tresweapon_sniper.gdweapon_sniper.tscnweapon_stats.tres
SpeedEnhancer
Resources
TurretStats
accelerator.tresassault.tresblowdart.tresbomblauncher.tresfireball.tresflametower.tresglue.tresicicle.tresreactor.tresrefridgerator.tresrocketlauncher.tressniper.tres
WeaponStats
Scenes
Projectiles
Towers
UI
Weapons
Scripts
AStarGraph3D.gd
EnemyAI
Projectiles
Resources
StatusEffects
Towers
Weapons
card_hand.gddata.gdedit_tool.gdgame.gdground_enemy_controller.gdtower.gdtower_base.gdwave_manager.gdWorlds/GreenPlanet
@ -1,7 +0,0 @@
|
||||
extends Resource
|
||||
class_name TowerStats
|
||||
|
||||
@export var can_target : Data.TargetType
|
||||
@export var damage := 10.0
|
||||
@export var fire_range := 20.0
|
||||
@export var fire_rate := 1.0
|
@ -1,6 +0,0 @@
|
||||
extends Resource
|
||||
class_name WeaponStats
|
||||
|
||||
@export var damage : int
|
||||
@export var fire_rate : float
|
||||
@export var fire_range : float
|
@ -1,13 +1,13 @@
|
||||
extends Resource
|
||||
class_name Card
|
||||
|
||||
enum Faction {GENERIC}
|
||||
enum Faction {GENERIC = 0}
|
||||
|
||||
@export var title : String
|
||||
@export var rarity : Data.Rarity
|
||||
@export var faction : Faction
|
||||
@export var faction : Faction
|
||||
@export var sprite : AtlasTexture
|
||||
@export var turret : PackedScene
|
||||
@export var weapon : PackedScene
|
||||
@export var weapon_stats : WeaponStats
|
||||
@export var tower_stats : TowerStats
|
||||
@export var turret_scene : PackedScene
|
||||
@export var weapon_scene : PackedScene
|
||||
@export var weapon_stats : CardText
|
||||
@export var tower_stats : CardText
|
||||
|
13
Scripts/Resources/card_text.gd
Normal file
13
Scripts/Resources/card_text.gd
Normal file
@ -0,0 +1,13 @@
|
||||
extends Resource
|
||||
class_name CardText
|
||||
|
||||
@export var target_type : Data.TargetType
|
||||
@export var attributes : Array[StatAttribute]
|
||||
@export_multiline var text : String
|
||||
|
||||
|
||||
func get_attribute(attribute : String) -> float:
|
||||
for stat in attributes:
|
||||
if stat.key == attribute:
|
||||
return stat.value
|
||||
return 0.0
|
5
Scripts/Resources/stat_attribute.gd
Normal file
5
Scripts/Resources/stat_attribute.gd
Normal file
@ -0,0 +1,5 @@
|
||||
extends Resource
|
||||
class_name StatAttribute
|
||||
|
||||
@export var key : String
|
||||
@export var value : float
|
Reference in New Issue
Block a user