inching towards better class inheritence and multiplayer compatibility

This commit is contained in:
2023-11-15 15:19:40 +11:00
parent f004f64b71
commit 1500c22ccc
204 changed files with 1920 additions and 1951 deletions

View File

@ -0,0 +1,8 @@
[gd_scene load_steps=3 format=3 uid="uid://7f4dfphgiswr"]
[ext_resource type="PackedScene" uid="uid://c8qjlgam6wuo0" path="res://Scenes/Projectiles/projectile.tscn" id="1_136w8"]
[ext_resource type="Script" path="res://Scripts/Projectiles/explosive_projectile.gd" id="2_3adg2"]
[node name="ExplosiveProjectile" instance=ExtResource("1_136w8")]
script = ExtResource("2_3adg2")
explosion_range = 3.0

View File

@ -0,0 +1,10 @@
[gd_scene load_steps=3 format=3 uid="uid://di2wwvkv4wov1"]
[ext_resource type="PackedScene" uid="uid://7f4dfphgiswr" path="res://Scenes/Projectiles/explosive_projectile.tscn" id="1_it3tw"]
[ext_resource type="Script" path="res://Scripts/Projectiles/homing_projectile.gd" id="2_etdxg"]
[node name="HomingProjectile" instance=ExtResource("1_it3tw")]
script = ExtResource("2_etdxg")
acceleration = 30.0
max_speed = 15.0
explosion_range = 6.0

View File

@ -0,0 +1,24 @@
[gd_scene load_steps=3 format=3 uid="uid://c8qjlgam6wuo0"]
[ext_resource type="Script" path="res://Scripts/Projectiles/projectile.gd" id="1_k4v4y"]
[sub_resource type="SphereShape3D" id="SphereShape3D_fgj4t"]
radius = 0.2
[node name="Projectile" type="RigidBody3D" node_paths=PackedStringArray("collision_shape")]
collision_layer = 0
collision_mask = 5
gravity_scale = 0.0
max_contacts_reported = 1
contact_monitor = true
script = ExtResource("1_k4v4y")
collision_shape = NodePath("CollisionShape3D")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_fgj4t")
[node name="Sprite3D" type="Sprite3D" parent="."]
billboard = 1
texture_filter = 0
[connection signal="body_entered" from="." to="." method="_on_body_entered"]

View File

@ -0,0 +1,9 @@
[gd_scene load_steps=3 format=3 uid="uid://beq6rn0babncg"]
[ext_resource type="PackedScene" uid="uid://7f4dfphgiswr" path="res://Scenes/Projectiles/explosive_projectile.tscn" id="1_atrjq"]
[ext_resource type="Script" path="res://Scripts/Projectiles/status_applying_projectile.gd" id="2_4p44n"]
[node name="StatusApplyingProjectile" instance=ExtResource("1_atrjq")]
max_contacts_reported = 0
script = ExtResource("2_4p44n")
status_stats = null