Adding loads of icons and starting refactor of weapons and mods
This commit is contained in:
parent
1a959fbc0c
commit
f97521decc
4411 changed files with 74792 additions and 42 deletions
12
combat/projectiles/rock/RockProjectile.tscn
Normal file
12
combat/projectiles/rock/RockProjectile.tscn
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://xil4f66wokxb"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cv3jv78k0qqvc" path="res://combat/projectiles/rock/scripts/rock_projectile.gd" id="1_8myby"]
|
||||
|
||||
[node name="RockProjectile" type="Node2D"]
|
||||
script = ExtResource("1_8myby")
|
||||
speed = null
|
||||
damage = null
|
||||
lifetime = null
|
||||
direction = null
|
||||
target_position = null
|
||||
is_friendly = null
|
||||
19
combat/projectiles/rock/scripts/rock_projectile.gd
Normal file
19
combat/projectiles/rock/scripts/rock_projectile.gd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
class_name RockProjectile
|
||||
extends ProjectileBaseTwo
|
||||
|
||||
func _ready():
|
||||
lifetime_timer = Timer.new()
|
||||
add_child(lifetime_timer)
|
||||
lifetime_timer.one_shot = true
|
||||
lifetime_timer.wait_time = lifetime
|
||||
lifetime_timer.connect("timeout", _on_lifetime_timeout)
|
||||
lifetime_timer.start()
|
||||
|
||||
emit_signal("on_spawned", self)
|
||||
connect("body_entered", _on_body_entered)
|
||||
|
||||
func _physics_process(delta):
|
||||
position += direction * speed * delta
|
||||
|
||||
func _on_lifetime_timeout():
|
||||
super._on_lifetime_timeout()
|
||||
1
combat/projectiles/rock/scripts/rock_projectile.gd.uid
Normal file
1
combat/projectiles/rock/scripts/rock_projectile.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://cv3jv78k0qqvc
|
||||
Loading…
Add table
Add a link
Reference in a new issue