the rest of the fucking owl
This commit is contained in:
parent
f89d2ccf53
commit
7f63584f7c
20 changed files with 331 additions and 9 deletions
7
project/buttons.gd
Normal file
7
project/buttons.gd
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
extends CanvasLayer
|
||||
|
||||
func _on_button1_down() -> void:
|
||||
$"../Actor1".request_attack($"../Actor2")
|
||||
|
||||
func _on_button2_down() -> void:
|
||||
$"../Actor2".request_attack($"../Actor1")
|
||||
1
project/buttons.gd.uid
Normal file
1
project/buttons.gd.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://cikkvrxl0xfut
|
||||
3
project/equip_items/chestplate.tres
Normal file
3
project/equip_items/chestplate.tres
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[gd_resource type="Armor" format=3 uid="uid://ciqakeu7a82fw"]
|
||||
|
||||
[resource]
|
||||
9
project/equip_items/weapon1.tres
Normal file
9
project/equip_items/weapon1.tres
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[gd_resource type="Weapon" load_steps=2 format=3 uid="uid://rkcmcib35uj7"]
|
||||
|
||||
[sub_resource type="DamageStats" id="DamageStats_jtxwa"]
|
||||
damage_add = 1
|
||||
damage_mul = 2.0
|
||||
|
||||
[resource]
|
||||
stats = SubResource("DamageStats_jtxwa")
|
||||
base_damage = 5
|
||||
|
|
@ -11,5 +11,6 @@ config_version=5
|
|||
[application]
|
||||
|
||||
config/name="tabtargeting"
|
||||
config/features=PackedStringArray("4.4", "Forward Plus")
|
||||
run/main_scene="uid://b7klcvxm3e578"
|
||||
config/features=PackedStringArray("4.5", "Forward Plus")
|
||||
config/icon="res://icon.svg"
|
||||
|
|
|
|||
95
project/scene.tscn
Normal file
95
project/scene.tscn
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://b7klcvxm3e578"]
|
||||
|
||||
[ext_resource type="Weapon" uid="uid://rkcmcib35uj7" path="res://equip_items/weapon1.tres" id="1_nxogm"]
|
||||
[ext_resource type="Script" uid="uid://cikkvrxl0xfut" path="res://buttons.gd" id="1_ulcgi"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_nxogm"]
|
||||
sky_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
|
||||
ground_horizon_color = Color(0.662243, 0.671743, 0.686743, 1)
|
||||
|
||||
[sub_resource type="Sky" id="Sky_3253y"]
|
||||
sky_material = SubResource("ProceduralSkyMaterial_nxogm")
|
||||
|
||||
[sub_resource type="Environment" id="Environment_u3cyc"]
|
||||
background_mode = 2
|
||||
sky = SubResource("Sky_3253y")
|
||||
tonemap_mode = 2
|
||||
glow_enabled = true
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_drvgu"]
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_drvgu"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_nxogm"]
|
||||
size = Vector3(-5, -5, -5)
|
||||
|
||||
[node name="Scene" type="Node3D"]
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Environment_u3cyc")
|
||||
|
||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(0.433659, -0.651449, 0.622538, 0, 0.690882, 0.722967, -0.901077, -0.313521, 0.299607, 0, 0, 0)
|
||||
shadow_enabled = true
|
||||
|
||||
[node name="Actor1" type="ActorBody" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.59845)
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Actor1"]
|
||||
shape = SubResource("SphereShape3D_drvgu")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Actor1"]
|
||||
mesh = SubResource("CylinderMesh_drvgu")
|
||||
|
||||
[node name="Equipment" type="Equipment" parent="Actor1"]
|
||||
weapon = ExtResource("1_nxogm")
|
||||
|
||||
[node name="ActorStateMachine" type="ActorStateMachine" parent="Actor1"]
|
||||
|
||||
[node name="Actor2" type="ActorBody" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1.66257)
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Actor2"]
|
||||
shape = SubResource("SphereShape3D_drvgu")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="Actor2"]
|
||||
mesh = SubResource("CylinderMesh_drvgu")
|
||||
|
||||
[node name="Equipment" type="Equipment" parent="Actor2"]
|
||||
weapon = ExtResource("1_nxogm")
|
||||
|
||||
[node name="ActorStateMachine" type="ActorStateMachine" parent="Actor2"]
|
||||
|
||||
[node name="Camera3D" type="Camera3D" parent="."]
|
||||
transform = Transform3D(0.251056, -0.361214, 0.898051, 0, 0.927765, 0.373166, -0.967973, -0.0936855, 0.232921, 1.89697, 0.912457, 1.11904)
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
script = ExtResource("1_ulcgi")
|
||||
|
||||
[node name="Button" type="Button" parent="CanvasLayer"]
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_top = -113.0
|
||||
offset_right = 327.0
|
||||
grow_vertical = 0
|
||||
text = "Attack (Actor 1)"
|
||||
|
||||
[node name="Button2" type="Button" parent="CanvasLayer"]
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
anchor_top = 1.0
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -327.0
|
||||
offset_top = -113.0
|
||||
grow_horizontal = 0
|
||||
grow_vertical = 0
|
||||
text = "Attack (Actor 2)"
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.57152, 0)
|
||||
mesh = SubResource("BoxMesh_nxogm")
|
||||
|
||||
[connection signal="button_down" from="CanvasLayer/Button" to="CanvasLayer" method="_on_button1_down"]
|
||||
[connection signal="button_down" from="CanvasLayer/Button2" to="CanvasLayer" method="_on_button2_down"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue