Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ class_name ProjectileTemplateCustom2D

## Template for Custom Projectile 2D that using ProjectileBehavior

## Base damage dealt by the projectile
@export var damage: float = 1.0
## Movement speed of the projectile in pixels per second
@export var speed : float = 100
# ## The normalized Direction of the projectile moving toward
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
extends ProjectileUpdater2D
class_name ProjectileUpdaterCustom2D

# var projectile_damage: float = 1.0

# var projectile_rotation_speed : float

# var behavior_static_context : Dictionary
# var behavior_dynamic_context : Dictionary
# var behavior_persist_context : Dictionary

# var behavior_context : Dictionary
# var projectile_behaviors : Array[ProjectileBehavior] = []


var velocity: Vector2
var life_time_second: float
var life_distance: float
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ gradient = SubResource("Gradient_td4cq")
[sub_resource type="Resource" id="Resource_m0abk"]
script = ExtResource("9_gvipp")
texture = ExtResource("11_thm6q")
direction_projectile_behaviors = Array[ExtResource("5_704py")]([null])
metadata/_custom_type_script = "uid://d3yyxyx6shhya"

[sub_resource type="Resource" id="Resource_vcjro"]
Expand Down
Loading