waited far too long for an initial commit but here we are
This commit is contained in:
14
Worlds/TestingRange/Enemies/dummy.tres
Normal file
14
Worlds/TestingRange/Enemies/dummy.tres
Normal file
@ -0,0 +1,14 @@
|
||||
[gd_resource type="Resource" script_class="Enemy" load_steps=3 format=3 uid="uid://bdkcwve6d35gl"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/enemy.gd" id="1_o7yng"]
|
||||
[ext_resource type="Texture2D" uid="uid://brjk5pu0up85s" path="res://Assets/TextureAtlases/dummy.tres" id="2_bbk0y"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_o7yng")
|
||||
title = "dummy"
|
||||
target_type = 1
|
||||
sprite = ExtResource("2_bbk0y")
|
||||
health = 100
|
||||
penalty = 10
|
||||
movement_speed = 1.0
|
||||
spawn_cooldown = 1.0
|
83
Worlds/TestingRange/Enemies/target_dummy.tscn
Normal file
83
Worlds/TestingRange/Enemies/target_dummy.tscn
Normal file
@ -0,0 +1,83 @@
|
||||
[gd_scene load_steps=12 format=3 uid="uid://cgcslt0rsg6e3"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/target_dummy.gd" id="1_f72ee"]
|
||||
[ext_resource type="Resource" uid="uid://bdkcwve6d35gl" path="res://Worlds/TestingRange/Enemies/dummy.tres" id="2_7pldl"]
|
||||
[ext_resource type="Script" path="res://Scripts/health.gd" id="3_8hqew"]
|
||||
[ext_resource type="PackedScene" uid="uid://cqtew0t8sttpm" path="res://Scenes/damage_particle.tscn" id="4_0ruff"]
|
||||
[ext_resource type="Script" path="res://Scripts/hitbox.gd" id="4_yinjs"]
|
||||
[ext_resource type="PackedScene" uid="uid://ri8r03wqy80t" path="res://Scenes/8_direction_sprite.tscn" id="5_t0dpu"]
|
||||
[ext_resource type="Texture2D" uid="uid://brjk5pu0up85s" path="res://Assets/TextureAtlases/dummy.tres" id="6_agkvc"]
|
||||
[ext_resource type="Texture2D" uid="uid://r202vo47jw1q" path="res://Assets/Textures/enemyhealth.png" id="8_m8sgd"]
|
||||
[ext_resource type="Script" path="res://Scripts/StatusEffector.gd" id="8_melp1"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_21dgw"]
|
||||
radius = 0.7173
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_ieafj"]
|
||||
viewport_path = NodePath("Dog/SubViewport")
|
||||
|
||||
[node name="PathFollow3D" type="PathFollow3D" node_paths=PackedStringArray("status_manager") groups=["Enemies"]]
|
||||
loop = false
|
||||
script = ExtResource("1_f72ee")
|
||||
stats = ExtResource("2_7pldl")
|
||||
status_manager = NodePath("Dog/StatusEffector")
|
||||
|
||||
[node name="Dog" type="CharacterBody3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.204674, 0)
|
||||
collision_layer = 4
|
||||
collision_mask = 3
|
||||
|
||||
[node name="Health" type="Node" parent="Dog"]
|
||||
script = ExtResource("3_8hqew")
|
||||
damage_particle_scene = ExtResource("4_0ruff")
|
||||
|
||||
[node name="Hitbox" type="CollisionShape3D" parent="Dog"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.527022, 0)
|
||||
shape = SubResource("SphereShape3D_21dgw")
|
||||
script = ExtResource("4_yinjs")
|
||||
|
||||
[node name="DirectionSprite" parent="Dog" instance=ExtResource("5_t0dpu")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.642479, 0)
|
||||
pixel_size = 0.04
|
||||
texture = ExtResource("6_agkvc")
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="Dog"]
|
||||
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 1.47182, 0)
|
||||
pixel_size = 0.02
|
||||
billboard = 1
|
||||
texture_filter = 0
|
||||
texture = SubResource("ViewportTexture_ieafj")
|
||||
|
||||
[node name="StatusEffector" type="Node3D" parent="Dog" node_paths=PackedStringArray("hbox")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.18114, 0)
|
||||
script = ExtResource("8_melp1")
|
||||
hbox = NodePath("../SubViewport/HBoxContainer")
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="Dog"]
|
||||
transparent_bg = true
|
||||
size = Vector2i(200, 55)
|
||||
render_target_update_mode = 4
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Dog/SubViewport"]
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_bottom = 32.0
|
||||
grow_horizontal = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="ProgressBar" type="TextureProgressBar" parent="Dog/SubViewport"]
|
||||
visible = false
|
||||
offset_top = 36.0
|
||||
offset_right = 200.0
|
||||
offset_bottom = 236.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
step = 0.0
|
||||
value = 100.0
|
||||
fill_mode = 6
|
||||
texture_progress = ExtResource("8_m8sgd")
|
||||
tint_progress = Color(0, 1, 0, 1)
|
||||
|
||||
[connection signal="health_changed" from="Dog/Health" to="." method="_on_health_health_changed"]
|
||||
[connection signal="health_depleted" from="Dog/Health" to="." method="_on_health_health_depleted"]
|
||||
[connection signal="took_damage" from="Dog/Hitbox" to="Dog/Health" method="take_damage"]
|
139
Worlds/TestingRange/Levels/training_arena.tscn
Normal file
139
Worlds/TestingRange/Levels/training_arena.tscn
Normal file
@ -0,0 +1,139 @@
|
||||
[gd_scene load_steps=24 format=3 uid="uid://uv7hjsgisy31"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://r8cr41blojpm" path="res://Assets/Textures/stone wall 7.png" id="1_45ikc"]
|
||||
[ext_resource type="PackedScene" uid="uid://dxgxbtf68lcv5" path="res://PCs/hero.tscn" id="2_w387b"]
|
||||
[ext_resource type="PackedScene" uid="uid://b0nady5xm88bo" path="res://Worlds/GreenPlanet/Enemies/land_enemy.tscn" id="3_y4upj"]
|
||||
[ext_resource type="PackedScene" uid="uid://dsasunnk47n8o" path="res://Scenes/item_card.tscn" id="4_i7krx"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/enemy.gd" id="4_ucmnf"]
|
||||
[ext_resource type="Texture2D" uid="uid://dj13g1w14mekw" path="res://Assets/Textures/eye_dog.png" id="5_15cd7"]
|
||||
[ext_resource type="Resource" uid="uid://bmoreipvttks8" path="res://PCs/Universal/ClassCards/Assault/card_assault.tres" id="5_806m0"]
|
||||
[ext_resource type="Resource" uid="uid://cvf5bxtu6er17" path="res://PCs/Universal/ClassCards/Sniper/card_sniper.tres" id="6_evvng"]
|
||||
[ext_resource type="Resource" uid="uid://q23ludhji5p4" path="res://PCs/Universal/ClassCards/Gatling/card_gatling.tres" id="8_k80ff"]
|
||||
[ext_resource type="PackedScene" uid="uid://ddbbwx0yy16lh" path="res://Scenes/tower_base.tscn" id="9_imodf"]
|
||||
[ext_resource type="Resource" uid="uid://bvpkvmda845o5" path="res://PCs/Universal/ClassCards/BombLauncher/card_grenade_launcher.tres" id="10_g0syk"]
|
||||
[ext_resource type="Resource" uid="uid://1xke2uy2vfuf" path="res://PCs/Universal/ClassCards/Flamethrower/card_flamethrower.tres" id="11_d3sci"]
|
||||
[ext_resource type="Resource" uid="uid://dh5fjnbp8auw1" path="res://PCs/Universal/ClassCards/RocketLauncher/card_rocket_launcher.tres" id="11_jk0fe"]
|
||||
[ext_resource type="Resource" uid="uid://bhmbk26whdsys" path="res://PCs/Universal/ClassCards/GlueLauncher/card_glue_launcher.tres" id="12_7lpov"]
|
||||
[ext_resource type="PackedScene" uid="uid://cgcslt0rsg6e3" path="res://Worlds/TestingRange/Enemies/target_dummy.tscn" id="14_rvk27"]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_mqtlc"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_75uqo"]
|
||||
albedo_texture = ExtResource("1_45ikc")
|
||||
uv1_scale = Vector3(30, 15, 1)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_3mcyj"]
|
||||
size = Vector3(15, 1, 30)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_jx270"]
|
||||
resource_local_to_scene = true
|
||||
atlas = ExtResource("5_15cd7")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="Resource" id="Resource_dn3eg"]
|
||||
resource_local_to_scene = true
|
||||
script = ExtResource("4_ucmnf")
|
||||
title = "dog"
|
||||
target_type = 0
|
||||
sprite = SubResource("AtlasTexture_jx270")
|
||||
spawn_power = 10
|
||||
health = 100
|
||||
penalty = 10
|
||||
movement_speed = 1.0
|
||||
spawn_cooldown = 1.0
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qwrm2"]
|
||||
resource_local_to_scene = true
|
||||
atlas = ExtResource("5_15cd7")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="Resource" id="Resource_bb3cf"]
|
||||
resource_local_to_scene = true
|
||||
script = ExtResource("4_ucmnf")
|
||||
title = "dog"
|
||||
target_type = 0
|
||||
sprite = SubResource("AtlasTexture_qwrm2")
|
||||
spawn_power = 10
|
||||
health = 100
|
||||
penalty = 10
|
||||
movement_speed = 1.0
|
||||
spawn_cooldown = 1.0
|
||||
|
||||
[sub_resource type="Curve3D" id="Curve3D_3hq0c"]
|
||||
_data = {
|
||||
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, -3, 0, 0, -3.045, 0, 0, 0, 0, 0, 0, 0, -3, 0, 0, -3, 0, 0, 0, 3, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 3, 0, 0, 0, -3, 0, 0),
|
||||
"tilts": PackedFloat32Array(0, 0, 0, 0, 0)
|
||||
}
|
||||
point_count = 5
|
||||
|
||||
[node name="Node3D" type="Node3D"]
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="."]
|
||||
physics_material_override = SubResource("PhysicsMaterial_mqtlc")
|
||||
|
||||
[node name="CSGBox3D" type="CSGBox3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(-1, -8.74228e-08, 0, 8.74228e-08, -1, 0, 0, 0, 1, 0, 0, 0)
|
||||
size = Vector3(15, 1, 30)
|
||||
material = SubResource("StandardMaterial3D_75uqo")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_3mcyj")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 0.503804, 0.863818, 0, -0.863818, 0.503804, 0.00649166, 26.8242, 4.02927e-05)
|
||||
|
||||
[node name="Character" parent="." instance=ExtResource("2_w387b")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.805513, 0.5, 2.30163)
|
||||
|
||||
[node name="Enemy" parent="." instance=ExtResource("3_y4upj")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.28337, 0.601179, -1.23188)
|
||||
stats = SubResource("Resource_dn3eg")
|
||||
|
||||
[node name="Enemy2" parent="." instance=ExtResource("3_y4upj")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.26298, 0.601179, -3.22988)
|
||||
stats = SubResource("Resource_bb3cf")
|
||||
|
||||
[node name="assaultcard" parent="." instance=ExtResource("4_i7krx")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.7802, 0.5, 3.16356)
|
||||
card = ExtResource("5_806m0")
|
||||
|
||||
[node name="acceleratorcard" parent="." instance=ExtResource("4_i7krx")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.11938, 0.5, 4.73946)
|
||||
card = ExtResource("8_k80ff")
|
||||
|
||||
[node name="snipercard" parent="." instance=ExtResource("4_i7krx")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.1017, 0.5, 5.17215)
|
||||
card = ExtResource("6_evvng")
|
||||
|
||||
[node name="grenadecard" parent="." instance=ExtResource("4_i7krx")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.385228, 0.5, 6.25718)
|
||||
card = ExtResource("10_g0syk")
|
||||
|
||||
[node name="grenadecard2" parent="." instance=ExtResource("4_i7krx")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.51176, 0.499999, -5.26455)
|
||||
card = ExtResource("11_d3sci")
|
||||
|
||||
[node name="rocketcard" parent="." instance=ExtResource("4_i7krx")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.13185, 0.5, 6.25718)
|
||||
card = ExtResource("11_jk0fe")
|
||||
|
||||
[node name="gluecard" parent="." instance=ExtResource("4_i7krx")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.12773, 0.5, 6.25718)
|
||||
card = ExtResource("12_7lpov")
|
||||
|
||||
[node name="towerbase" parent="." instance=ExtResource("9_imodf")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.77234, 0.5, 2.6958)
|
||||
|
||||
[node name="towerbase2" parent="." node_paths=PackedStringArray("inventory", "block", "collider", "minimap_icon") instance=ExtResource("9_imodf")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0766634, 0.5, -9.7488)
|
||||
inventory = NodePath("../towerbase/Inventory")
|
||||
block = NodePath("../towerbase/CSGBox3D")
|
||||
collider = NodePath("../towerbase/CollisionShape3D")
|
||||
minimap_icon = NodePath("../towerbase/Sprite3D")
|
||||
|
||||
[node name="Path3D" type="Path3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, -9.72541)
|
||||
curve = SubResource("Curve3D_3hq0c")
|
||||
|
||||
[node name="PathFollow3D" parent="Path3D" instance=ExtResource("14_rvk27")]
|
||||
transform = Transform3D(0.707107, 0, -0.707107, 0, 1, 0, 0.707107, 0, 0.707107, -3, 0, 0)
|
Reference in New Issue
Block a user