added Graphics and sound Effects and more overhauls
This commit is contained in:
parent
c887a2168c
commit
b9d4288900
214 changed files with 3378 additions and 198 deletions
|
|
@ -1,4 +1,9 @@
|
|||
class_name Upgrade extends Node2D
|
||||
class_name Upgrade extends Node
|
||||
|
||||
@onready var upgradeName: String = ""
|
||||
@onready var description: String = ""
|
||||
|
||||
@export var texture: Texture2D
|
||||
|
||||
func select():
|
||||
Globals.getPlayer()
|
||||
|
|
|
|||
|
|
@ -2,7 +2,5 @@
|
|||
|
||||
[ext_resource type="Script" uid="uid://dww2ci11ovsub" path="res://scenes/upgrade/upgrade.gd" id="1_6bmsu"]
|
||||
|
||||
[node name="Upgrade" type="Node2D"]
|
||||
[node name="Upgrade" type="Node"]
|
||||
script = ExtResource("1_6bmsu")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
|
|
|
|||
9
scenes/upgrade/upgrades/damageUpgrade.gd
Normal file
9
scenes/upgrade/upgrades/damageUpgrade.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class_name DamageUpgrade extends "res://scenes/upgrade/upgrade.gd"
|
||||
|
||||
func _init() -> void:
|
||||
upgradeName = "Damage Upgrade"
|
||||
description = "Do 1 more Damage"
|
||||
|
||||
func select():
|
||||
if Globals.getPlayer() != null:
|
||||
Globals.getPlayer().damageMult + 1
|
||||
1
scenes/upgrade/upgrades/damageUpgrade.gd.uid
Normal file
1
scenes/upgrade/upgrades/damageUpgrade.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bys4gyrcpf45d
|
||||
10
scenes/upgrade/upgrades/dashUpgrade.gd
Normal file
10
scenes/upgrade/upgrades/dashUpgrade.gd
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
class_name DashUpgrade extends "res://scenes/upgrade/upgrade.gd"
|
||||
|
||||
func _init() -> void:
|
||||
upgradeName = "Dash Upgrade"
|
||||
description = "Fast forward jump. Needs 30 seconds to recharge"
|
||||
|
||||
func select():
|
||||
if Globals.getPlayer() != null:
|
||||
Globals.getPlayer().dashUnlocked = true
|
||||
Globals.getPlayer().dashCooldown.start()
|
||||
1
scenes/upgrade/upgrades/dashUpgrade.gd.uid
Normal file
1
scenes/upgrade/upgrades/dashUpgrade.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://qjo545pmsylf
|
||||
9
scenes/upgrade/upgrades/heal100Upgrade.gd
Normal file
9
scenes/upgrade/upgrades/heal100Upgrade.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class_name Heal100Upgrade extends "res://scenes/upgrade/upgrade.gd"
|
||||
|
||||
func _init() -> void:
|
||||
upgradeName = "100% Health"
|
||||
description = "Heals 100% of Health"
|
||||
|
||||
func select():
|
||||
if Globals.getPlayer() != null:
|
||||
Globals.getPlayer().heal(Globals.getPlayer().maxHealth)
|
||||
1
scenes/upgrade/upgrades/heal100Upgrade.gd.uid
Normal file
1
scenes/upgrade/upgrades/heal100Upgrade.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://sry2bgpo2faf
|
||||
9
scenes/upgrade/upgrades/heal50Upgrade.gd
Normal file
9
scenes/upgrade/upgrades/heal50Upgrade.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class_name Heal50Upgrade extends "res://scenes/upgrade/upgrade.gd"
|
||||
|
||||
func _init() -> void:
|
||||
upgradeName = "50% Health"
|
||||
description = "Heals 50% of Health"
|
||||
|
||||
func select():
|
||||
if Globals.getPlayer() != null:
|
||||
Globals.getPlayer().heal(Globals.getPlayer().maxHealth/2)
|
||||
1
scenes/upgrade/upgrades/heal50Upgrade.gd.uid
Normal file
1
scenes/upgrade/upgrades/heal50Upgrade.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://jn86iob1b38s
|
||||
9
scenes/upgrade/upgrades/healthUpgrade.gd
Normal file
9
scenes/upgrade/upgrades/healthUpgrade.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class_name HealthUpgrade extends "res://scenes/upgrade/upgrade.gd"
|
||||
|
||||
func _init() -> void:
|
||||
upgradeName = "Increase Health"
|
||||
description = "Increase the amount of health you can have by 10"
|
||||
|
||||
func select():
|
||||
if Globals.getPlayer() != null:
|
||||
Globals.getPlayer().inceraseMaxhealth(10)
|
||||
1
scenes/upgrade/upgrades/healthUpgrade.gd.uid
Normal file
1
scenes/upgrade/upgrades/healthUpgrade.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dergik7pwn525
|
||||
9
scenes/upgrade/upgrades/minigunUpgrade.gd
Normal file
9
scenes/upgrade/upgrades/minigunUpgrade.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class_name MinigunUpgrade extends "res://scenes/upgrade/upgrade.gd"
|
||||
|
||||
func _init() -> void:
|
||||
upgradeName = "Weapon Minigun"
|
||||
description = "Switch Weapon to Minigun. Shoots fast but has a little bit of spread"
|
||||
|
||||
func select():
|
||||
if Globals.getPlayer() != null:
|
||||
Globals.getPlayer().switchToMinigun()
|
||||
1
scenes/upgrade/upgrades/minigunUpgrade.gd.uid
Normal file
1
scenes/upgrade/upgrades/minigunUpgrade.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dtq4m3wh8ik88
|
||||
9
scenes/upgrade/upgrades/railgunUpgrade.gd
Normal file
9
scenes/upgrade/upgrades/railgunUpgrade.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class_name RailgunUpgrade extends "res://scenes/upgrade/upgrade.gd"
|
||||
|
||||
func _init() -> void:
|
||||
upgradeName = "Weapon Railgun"
|
||||
description = "Switch Weapon to Railgun. Shoots slow but does a lot of damage and penetratres targets"
|
||||
|
||||
func select():
|
||||
if Globals.getPlayer() != null:
|
||||
Globals.getPlayer().switchToRailgun()
|
||||
1
scenes/upgrade/upgrades/railgunUpgrade.gd.uid
Normal file
1
scenes/upgrade/upgrades/railgunUpgrade.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bq5bk33u8io64
|
||||
9
scenes/upgrade/upgrades/selfHealUpgrade.gd
Normal file
9
scenes/upgrade/upgrades/selfHealUpgrade.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class_name SelfHealUpgrade extends "res://scenes/upgrade/upgrade.gd"
|
||||
|
||||
func _init() -> void:
|
||||
upgradeName = "Self Heal Upgrade"
|
||||
description = "Heal yourself after not taking damage for 10 seconds. After that you Heal 1 % health every second"
|
||||
|
||||
func select():
|
||||
if Globals.getPlayer() != null:
|
||||
Globals.getPlayer().selfHealUnlocked = true
|
||||
1
scenes/upgrade/upgrades/selfHealUpgrade.gd.uid
Normal file
1
scenes/upgrade/upgrades/selfHealUpgrade.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://clchossmuoqbm
|
||||
9
scenes/upgrade/upgrades/shotgunUpgrade.gd
Normal file
9
scenes/upgrade/upgrades/shotgunUpgrade.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class_name ShotgunUpgrade extends "res://scenes/upgrade/upgrade.gd"
|
||||
|
||||
func _init() -> void:
|
||||
upgradeName = "Weapon Shotgun"
|
||||
description = "Switch Weapon to Shotgun. Good on short range. Shoots multiple bullets with spread"
|
||||
|
||||
func select():
|
||||
if Globals.getPlayer() != null:
|
||||
Globals.getPlayer().switchToShotgun()
|
||||
1
scenes/upgrade/upgrades/shotgunUpgrade.gd.uid
Normal file
1
scenes/upgrade/upgrades/shotgunUpgrade.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bg61she3fkmn6
|
||||
11
scenes/upgrade/upgrades/speedUpgrade.gd
Normal file
11
scenes/upgrade/upgrades/speedUpgrade.gd
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
class_name SpeedUpgrade extends "res://scenes/upgrade/upgrade.gd"
|
||||
|
||||
@export var damage: int = 1
|
||||
|
||||
func _init() -> void:
|
||||
upgradeName = "Speed Upgrade"
|
||||
description = "Increase speed by 10%"
|
||||
|
||||
func select():
|
||||
if Globals.getPlayer() != null:
|
||||
Globals.getPlayer().addSpeedMult(1.1)
|
||||
1
scenes/upgrade/upgrades/speedUpgrade.gd.uid
Normal file
1
scenes/upgrade/upgrades/speedUpgrade.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://cww4y13d7o6wk
|
||||
9
scenes/upgrade/upgrades/strafeUpgrade.gd
Normal file
9
scenes/upgrade/upgrades/strafeUpgrade.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class_name StrafeUpgrade extends "res://scenes/upgrade/upgrade.gd"
|
||||
|
||||
func _init() -> void:
|
||||
upgradeName = "Strafe Upgrade"
|
||||
description = "Move Left and Right"
|
||||
|
||||
func select():
|
||||
if Globals.getPlayer() != null:
|
||||
Globals.getPlayer().strifeUnlocked = true
|
||||
1
scenes/upgrade/upgrades/strafeUpgrade.gd.uid
Normal file
1
scenes/upgrade/upgrades/strafeUpgrade.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://cp8ig5ipckooe
|
||||
9
scenes/upgrade/upgrades/timeGhostUpgrade.gd
Normal file
9
scenes/upgrade/upgrades/timeGhostUpgrade.gd
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class_name TimeGhostUpgrade extends "res://scenes/upgrade/upgrade.gd"
|
||||
|
||||
func _init() -> void:
|
||||
upgradeName = "Add Timeghost"
|
||||
description = "Adds A Timeghost which repeats all actions you make. Acts as an extra life in case you get destroyed"
|
||||
|
||||
func select():
|
||||
if Globals.getPlayer() != null:
|
||||
Globals.getPlayer().addGhost()
|
||||
1
scenes/upgrade/upgrades/timeGhostUpgrade.gd.uid
Normal file
1
scenes/upgrade/upgrades/timeGhostUpgrade.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://frqtmtgoe3l2
|
||||
Loading…
Add table
Add a link
Reference in a new issue