juiced the camera a bit and limited weapon ammo
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://smctw4ogm4rx"]
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://smctw4ogm4rx"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="1_gk542"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_qt3yl"]
|
||||
@ -18,8 +18,13 @@ script = ExtResource("1_qt3yl")
|
||||
key = "Fire Delay"
|
||||
value = 0.2
|
||||
|
||||
[sub_resource type="Resource" id="Resource_8cirl"]
|
||||
script = ExtResource("1_qt3yl")
|
||||
key = "Energy"
|
||||
value = 2.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_gk542")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_qt3yl")]([SubResource("Resource_bcrtt"), SubResource("Resource_llper"), SubResource("Resource_7i2dt")])
|
||||
attributes = Array[ExtResource("1_qt3yl")]([SubResource("Resource_bcrtt"), SubResource("Resource_llper"), SubResource("Resource_7i2dt"), SubResource("Resource_8cirl")])
|
||||
text = "Fires a shot every /Fire Delay\\ seconds dealing /Damage\\ damage at a range of /Range\\m"
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://c6e50linnk2i7"]
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://c6e50linnk2i7"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="1_5ldx7"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_pw5it"]
|
||||
@ -18,8 +18,13 @@ script = ExtResource("1_pw5it")
|
||||
key = "Fire Delay"
|
||||
value = 0.8
|
||||
|
||||
[sub_resource type="Resource" id="Resource_dtjel"]
|
||||
script = ExtResource("1_pw5it")
|
||||
key = "Energy"
|
||||
value = 15.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_5ldx7")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_pw5it")]([SubResource("Resource_1txa7"), SubResource("Resource_46kv2"), SubResource("Resource_gb76x")])
|
||||
attributes = Array[ExtResource("1_pw5it")]([SubResource("Resource_1txa7"), SubResource("Resource_46kv2"), SubResource("Resource_gb76x"), SubResource("Resource_dtjel")])
|
||||
text = "Fires every /Fire Delay\\s, applying one stack of Poison at a range of /Range\\m"
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://co6eorobj1xuu"]
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://co6eorobj1xuu"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="1_8i32s"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_kj8v0"]
|
||||
@ -18,8 +18,13 @@ script = ExtResource("1_kj8v0")
|
||||
key = "Range"
|
||||
value = 10.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_67t30"]
|
||||
script = ExtResource("1_kj8v0")
|
||||
key = "Energy"
|
||||
value = 10.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_8i32s")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_kj8v0")]([SubResource("Resource_yb48y"), SubResource("Resource_ewwvw"), SubResource("Resource_qu5dv")])
|
||||
attributes = Array[ExtResource("1_kj8v0")]([SubResource("Resource_yb48y"), SubResource("Resource_ewwvw"), SubResource("Resource_qu5dv"), SubResource("Resource_67t30")])
|
||||
text = "Launch a bomb that deals /Damage\\ damage every /Fire Delay\\ seconds"
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://dhwhwicgpw7yh"]
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://dhwhwicgpw7yh"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_80jfw"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="1_hmbwy"]
|
||||
@ -18,8 +18,13 @@ script = ExtResource("1_80jfw")
|
||||
key = "Range"
|
||||
value = 15.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_y1gjj"]
|
||||
script = ExtResource("1_80jfw")
|
||||
key = "Energy"
|
||||
value = 20.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_hmbwy")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_80jfw")]([SubResource("Resource_68ba3"), SubResource("Resource_gogvm"), SubResource("Resource_pswb4")])
|
||||
attributes = Array[ExtResource("1_80jfw")]([SubResource("Resource_68ba3"), SubResource("Resource_gogvm"), SubResource("Resource_pswb4"), SubResource("Resource_y1gjj")])
|
||||
text = "Conjure a fireball every /Fire Delay\\s that can be thrown to deal /Damage\\ and apply Burning to enemies caught in its blast"
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://yjknwdimtm8g"]
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://yjknwdimtm8g"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="1_7qcx8"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_g5aby"]
|
||||
@ -18,8 +18,13 @@ script = ExtResource("1_g5aby")
|
||||
key = "Range"
|
||||
value = 3.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_rjpjf"]
|
||||
script = ExtResource("1_g5aby")
|
||||
key = "Energy"
|
||||
value = 6.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_7qcx8")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_g5aby")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk")])
|
||||
attributes = Array[ExtResource("1_g5aby")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk"), SubResource("Resource_rjpjf")])
|
||||
text = "Hold to apply Burning to enemies in front of you"
|
||||
|
@ -21,11 +21,13 @@ func _process(delta: float) -> void:
|
||||
time_since_firing_started += delta
|
||||
var progress = clamp(time_since_firing_started / time_to_reach_max_speed, 0, 1.0)
|
||||
current_time_between_shots = lerpf(time_between_shots, final_time_between_shots, progress)
|
||||
if current_energy < energy_cost:
|
||||
time_since_firing_started = 0.0
|
||||
current_time_between_shots = time_between_shots
|
||||
|
||||
|
||||
func _physics_process(_delta: float) -> void:
|
||||
if trigger_held and time_since_firing >= current_time_between_shots:
|
||||
print(current_time_between_shots)
|
||||
time_since_firing -= current_time_between_shots
|
||||
shoot()
|
||||
networked_shoot.rpc()
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=8 format=3 uid="uid://cj2x1jvo8l4ot"]
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=9 format=3 uid="uid://cj2x1jvo8l4ot"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="1_630yu"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_vpmor"]
|
||||
@ -28,10 +28,15 @@ script = ExtResource("1_vpmor")
|
||||
key = "Speed Time"
|
||||
value = 4.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_d1lvi"]
|
||||
script = ExtResource("1_vpmor")
|
||||
key = "Energy"
|
||||
value = 4.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_630yu")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_vpmor")]([SubResource("Resource_fi7tc"), SubResource("Resource_r6h5d"), SubResource("Resource_gwg1i"), SubResource("Resource_ogk1x"), SubResource("Resource_wdp3h")])
|
||||
attributes = Array[ExtResource("1_vpmor")]([SubResource("Resource_fi7tc"), SubResource("Resource_r6h5d"), SubResource("Resource_gwg1i"), SubResource("Resource_ogk1x"), SubResource("Resource_wdp3h"), SubResource("Resource_d1lvi")])
|
||||
text = "Fires a shot every /Fire Delay\\ seconds dealing /Damage\\ damage at a range of /Range\\m
|
||||
|
||||
While held, gradually accelerates to /Speed Multiplier\\x the fire rate over /Speed Time\\s"
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://boj1ho5x0sxtq"]
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://boj1ho5x0sxtq"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="1_8sdo4"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_gheu8"]
|
||||
@ -18,8 +18,13 @@ script = ExtResource("1_gheu8")
|
||||
key = "Fire Delay"
|
||||
value = 0.5
|
||||
|
||||
[sub_resource type="Resource" id="Resource_o1b5x"]
|
||||
script = ExtResource("1_gheu8")
|
||||
key = "Energy"
|
||||
value = 8.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_8sdo4")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_gheu8")]([SubResource("Resource_gbocu"), SubResource("Resource_6a2im"), SubResource("Resource_7npe0")])
|
||||
attributes = Array[ExtResource("1_gheu8")]([SubResource("Resource_gbocu"), SubResource("Resource_6a2im"), SubResource("Resource_7npe0"), SubResource("Resource_o1b5x")])
|
||||
text = "Fires every /Fire Delay\\s, making the target Sticky at a range of /Range\\m"
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://ckjmym1ofww4"]
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://ckjmym1ofww4"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_c13s0"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="1_fpi27"]
|
||||
@ -18,8 +18,13 @@ script = ExtResource("1_c13s0")
|
||||
key = "Range"
|
||||
value = 15.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_cfu7u"]
|
||||
script = ExtResource("1_c13s0")
|
||||
key = "Energy"
|
||||
value = 20.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_fpi27")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_c13s0")]([SubResource("Resource_68ba3"), SubResource("Resource_gogvm"), SubResource("Resource_pswb4")])
|
||||
attributes = Array[ExtResource("1_c13s0")]([SubResource("Resource_68ba3"), SubResource("Resource_gogvm"), SubResource("Resource_pswb4"), SubResource("Resource_cfu7u")])
|
||||
text = "Conjure an icicle every /Fire Delay\\s that can be thrown to deal /Damage\\ and apply Cold to enemies caught in its blast"
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://ipfr7emuarbj"]
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://ipfr7emuarbj"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_biwk3"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_62mnm"]
|
||||
@ -18,8 +18,13 @@ script = ExtResource("1_biwk3")
|
||||
key = "Range"
|
||||
value = 3.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b4805"]
|
||||
script = ExtResource("1_biwk3")
|
||||
key = "Energy"
|
||||
value = 11.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_62mnm")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_biwk3")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk")])
|
||||
attributes = Array[ExtResource("1_biwk3")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk"), SubResource("Resource_b4805")])
|
||||
text = "Hold to apply Radioactive to enemies in front of you"
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://5l758yxfpi1e"]
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://5l758yxfpi1e"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_v7ces"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_1d5nm"]
|
||||
@ -18,8 +18,13 @@ script = ExtResource("1_v7ces")
|
||||
key = "Range"
|
||||
value = 3.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_voaa5"]
|
||||
script = ExtResource("1_v7ces")
|
||||
key = "Energy"
|
||||
value = 7.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_1d5nm")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_v7ces")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk")])
|
||||
attributes = Array[ExtResource("1_v7ces")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk"), SubResource("Resource_voaa5")])
|
||||
text = "Hold to apply Cold to enemies in front of you"
|
||||
|
@ -44,7 +44,9 @@ func _process(delta: float) -> void:
|
||||
|
||||
func release_trigger():
|
||||
super.release_trigger()
|
||||
if targets.size() > 0 and time_since_firing >= time_between_shots:
|
||||
if targets.size() > 0 and current_energy >= energy_cost and time_since_firing >= time_between_shots:
|
||||
current_energy -= energy_cost
|
||||
energy_changed.emit(current_energy)
|
||||
time_since_firing -= time_between_shots
|
||||
shoot()
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://d2yo07m2mp2mp"]
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://d2yo07m2mp2mp"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_1le4i"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_0trth"]
|
||||
@ -18,8 +18,13 @@ script = ExtResource("1_1le4i")
|
||||
key = "Damage"
|
||||
value = 8.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ymyed"]
|
||||
script = ExtResource("1_1le4i")
|
||||
key = "Energy"
|
||||
value = 30.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_0trth")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_1le4i")]([SubResource("Resource_4fjm2"), SubResource("Resource_uwj4j"), SubResource("Resource_6qv5v")])
|
||||
attributes = Array[ExtResource("1_1le4i")]([SubResource("Resource_4fjm2"), SubResource("Resource_uwj4j"), SubResource("Resource_6qv5v"), SubResource("Resource_ymyed")])
|
||||
text = "Every /Fire Delay\\s, hold to target up to /Target Limit\\ enemies and release to fire homing rockets that deal /Damage\\ damage"
|
||||
|
@ -14,7 +14,7 @@ region = Rect2(0, 0, 64, 64)
|
||||
[resource]
|
||||
script = ExtResource("1_5vmtk")
|
||||
title = "Sniper"
|
||||
rarity = 4
|
||||
rarity = 1
|
||||
faction = 0
|
||||
sprite = SubResource("AtlasTexture_fckie")
|
||||
turret_scene = ExtResource("4_k5nhs")
|
||||
|
@ -1,4 +1,4 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://3y7n1vdvf822"]
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://3y7n1vdvf822"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_7xbx2"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="1_t3oy2"]
|
||||
@ -18,8 +18,13 @@ script = ExtResource("1_7xbx2")
|
||||
key = "Range"
|
||||
value = 100.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_7pvmq"]
|
||||
script = ExtResource("1_7xbx2")
|
||||
key = "Energy"
|
||||
value = 10.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_t3oy2")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_7xbx2")]([SubResource("Resource_58kde"), SubResource("Resource_jl4jv"), SubResource("Resource_28kyj")])
|
||||
attributes = Array[ExtResource("1_7xbx2")]([SubResource("Resource_58kde"), SubResource("Resource_jl4jv"), SubResource("Resource_28kyj"), SubResource("Resource_7pvmq")])
|
||||
text = "Fires a shot every /Fire Delay\\ seconds dealing /Damage\\ damage at a range of /Range\\m"
|
||||
|
Reference in New Issue
Block a user