diff options
Diffstat (limited to 'scenes')
-rw-r--r-- | scenes/attach_point.tscn | 17 | ||||
-rw-r--r-- | scenes/enemy.tscn | 11 | ||||
-rw-r--r-- | scenes/fx/enemy_damage.tscn | 6 | ||||
-rw-r--r-- | scenes/gui.tscn | 55 | ||||
-rw-r--r-- | scenes/path.tscn | 25 | ||||
-rw-r--r-- | scenes/path_end.tscn | 25 | ||||
-rw-r--r-- | scenes/path_start.tscn | 25 | ||||
-rw-r--r-- | scenes/projectiles/bullet.tscn | 21 | ||||
-rw-r--r-- | scenes/turret.tscn | 14 |
9 files changed, 199 insertions, 0 deletions
diff --git a/scenes/attach_point.tscn b/scenes/attach_point.tscn new file mode 100644 index 0000000..ef5434e --- /dev/null +++ b/scenes/attach_point.tscn @@ -0,0 +1,17 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://models/attach.obj" type="ArrayMesh" id=1] + +[sub_resource type="ConvexPolygonShape" id=10] +points = PoolVector3Array( 0, 0, -0.2, -0.0390368, 0, -0.196163, 0, 0.022124, -0.2, 0.0389977, 0, -0.196163, -0.0390368, 0.022124, -0.196163, -0.0765466, 0, -0.184808, 0.0389977, 0.022124, -0.196163, 0.0765074, 0, -0.184808, -0.0765466, 0.022124, -0.184808, -0.11112, 0, -0.166327, 0.0765074, 0.022124, -0.184808, 0.111081, 0, -0.166327, -0.11112, 0.022124, -0.166327, -0.141425, 0, -0.141425, 0.111081, 0.022124, -0.166327, 0.141386, 0, -0.141425, -0.141425, 0.022124, -0.141425, -0.166327, 0, -0.11112, 0.141386, 0.022124, -0.141425, 0.166288, 0, -0.11112, -0.166327, 0.022124, -0.11112, -0.184808, 0, -0.0765466, 0.166288, 0.022124, -0.11112, 0.184769, 0, -0.0765466, -0.184808, 0.022124, -0.0765466, -0.196163, 0, -0.0390368, 0.184769, 0.022124, -0.0765466, 0.196124, 0, -0.0390368, -0.196163, 0.022124, -0.0390368, -0.2, 0, 0, 0.196124, 0.022124, -0.0390368, 0.2, 0, 0, -0.2, 0.022124, 0, -0.196163, 0, 0.0389977, 0.2, 0.022124, 0, 0.196124, 0, 0.0389977, -0.196163, 0.022124, 0.0389977, -0.184808, 0, 0.0765074, 0.196124, 0.022124, 0.0389977, 0.184769, 0, 0.0765074, -0.184808, 0.022124, 0.0765074, -0.166327, 0, 0.111081, 0.184769, 0.022124, 0.0765074, 0.166288, 0, 0.111081, -0.166327, 0.022124, 0.111081, -0.141425, 0, 0.141386, 0.166288, 0.022124, 0.111081, 0.141386, 0, 0.141386, -0.141425, 0.022124, 0.141386, -0.11112, 0, 0.166288, 0.141386, 0.022124, 0.141386, 0.111081, 0, 0.166288, -0.11112, 0.022124, 0.166288, -0.0765466, 0, 0.184769, 0.111081, 0.022124, 0.166288, 0.0765074, 0, 0.184769, -0.0765466, 0.022124, 0.184769, -0.0390368, 0, 0.196124, 0.0765074, 0.022124, 0.184769, 0.0389977, 0, 0.196124, -0.0390368, 0.022124, 0.196124, 0, 0, 0.2, 0.0389977, 0.022124, 0.196124, 0, 0.022124, 0.2 ) + +[node name="attachPoint" type="MeshInstance" groups=["attach"]] +transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, -0.25, 0.25, 0.5 ) +mesh = ExtResource( 1 ) +skeleton = NodePath("") +material/0 = null + +[node name="StaticBody" type="StaticBody" parent="."] + +[node name="CollisionShape2" type="CollisionShape" parent="StaticBody"] +shape = SubResource( 10 ) diff --git a/scenes/enemy.tscn b/scenes/enemy.tscn new file mode 100644 index 0000000..ea40f17 --- /dev/null +++ b/scenes/enemy.tscn @@ -0,0 +1,11 @@ +[gd_scene load_steps=2 format=2] + +[sub_resource type="SphereShape" id=17] + +[node name="enemy" type="Spatial" groups=["enemies"]] + +[node name="KinematicBody" type="KinematicBody" parent="."] + +[node name="CollisionShape" type="CollisionShape" parent="KinematicBody"] +transform = Transform( 0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0 ) +shape = SubResource( 17 ) diff --git a/scenes/fx/enemy_damage.tscn b/scenes/fx/enemy_damage.tscn new file mode 100644 index 0000000..57ba4e7 --- /dev/null +++ b/scenes/fx/enemy_damage.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=2] + +[ext_resource path="res://scripts/fx/fx_enemy_damage.gd" type="Script" id=1] + +[node name="enemy_damage" type="Spatial"] +script = ExtResource( 1 ) diff --git a/scenes/gui.tscn b/scenes/gui.tscn new file mode 100644 index 0000000..cde9dce --- /dev/null +++ b/scenes/gui.tscn @@ -0,0 +1,55 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://scripts/gui.gd" type="Script" id=1] +[ext_resource path="res://scripts/debug.gd" type="Script" id=2] + +[node name="gui" type="Control"] +anchor_right = 1.0 +anchor_bottom = 1.0 +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Panel" type="Panel" parent="."] +margin_left = 10.0 +margin_top = 11.0 +margin_right = 133.0 +margin_bottom = 124.0 +script = ExtResource( 2 ) + +[node name="Button" type="Button" parent="Panel"] +margin_left = 8.0 +margin_top = 4.0 +margin_right = 98.0 +margin_bottom = 37.0 +text = "spawn" + +[node name="Button2" type="Button" parent="Panel"] +margin_left = 5.0 +margin_top = 57.0 +margin_right = 80.0 +margin_bottom = 93.0 +text = "compute path" +__meta__ = { +"_edit_use_anchors_": false +} + +[node name="Panel2" type="Panel" parent="."] +margin_left = 21.0 +margin_top = 544.0 +margin_right = 101.0 +margin_bottom = 573.0 +script = ExtResource( 1 ) + +[node name="Label" type="Label" parent="Panel2"] +margin_left = 6.0 +margin_top = 6.0 +margin_right = 55.0 +margin_bottom = 20.0 +text = "aawfawf" +__meta__ = { +"_edit_use_anchors_": false +} + +[connection signal="button_down" from="Panel/Button" to="Panel" method="_on_Button_button_down"] +[connection signal="button_down" from="Panel/Button2" to="Panel" method="_on_Button2_button_down"] diff --git a/scenes/path.tscn b/scenes/path.tscn new file mode 100644 index 0000000..cd46718 --- /dev/null +++ b/scenes/path.tscn @@ -0,0 +1,25 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://models/pointer.obj" type="ArrayMesh" id=1] + +[sub_resource type="SpatialMaterial" id=16] +albedo_color = Color( 1, 0, 0, 1 ) + +[sub_resource type="ConcavePolygonShape" id=17] +data = PoolVector3Array( -1, 1, 1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, 1, -1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1, -1, 1, -1, -1, 1, -1, 1, -1, 1, -1, -1, 1, 1, -1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, 1, 1, 1, -1, 1, 1, 1, 1, -1, -1, 1, 1, -1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, -1, -1, -1, 1, -1, 1, 1, -1, -1, -1, -1, -1 ) + +[node name="path" type="Spatial" groups=["path"]] + +[node name="MeshInstance" type="MeshInstance" parent="."] +transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.25, 0 ) +mesh = ExtResource( 1 ) +skeleton = NodePath("") +material/0 = SubResource( 16 ) + +[node name="StaticBody" type="StaticBody" parent="."] +transform = Transform( 0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0 ) +collision_layer = 2 +collision_mask = 2 + +[node name="CollisionShape" type="CollisionShape" parent="StaticBody"] +shape = SubResource( 17 ) diff --git a/scenes/path_end.tscn b/scenes/path_end.tscn new file mode 100644 index 0000000..71d8b87 --- /dev/null +++ b/scenes/path_end.tscn @@ -0,0 +1,25 @@ +[gd_scene load_steps=4 format=2] + +[sub_resource type="CubeMesh" id=15] + +[sub_resource type="SpatialMaterial" id=16] +albedo_color = Color( 0.00392157, 0.490196, 0, 1 ) + +[sub_resource type="ConcavePolygonShape" id=17] +data = PoolVector3Array( -1, 1, 1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, 1, -1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1, -1, 1, -1, -1, 1, -1, 1, -1, 1, -1, -1, 1, 1, -1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, 1, 1, 1, -1, 1, 1, 1, 1, -1, -1, 1, 1, -1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, -1, -1, -1, 1, -1, 1, 1, -1, -1, -1, -1, -1 ) + +[node name="path_end" type="Spatial" groups=["path"]] + +[node name="MeshInstance" type="MeshInstance" parent="."] +transform = Transform( 0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0 ) +mesh = SubResource( 15 ) +skeleton = NodePath("") +material/0 = SubResource( 16 ) + +[node name="StaticBody" type="StaticBody" parent="."] +transform = Transform( 0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0 ) +collision_layer = 2 +collision_mask = 2 + +[node name="CollisionShape" type="CollisionShape" parent="StaticBody"] +shape = SubResource( 17 ) diff --git a/scenes/path_start.tscn b/scenes/path_start.tscn new file mode 100644 index 0000000..ecbaf55 --- /dev/null +++ b/scenes/path_start.tscn @@ -0,0 +1,25 @@ +[gd_scene load_steps=4 format=2] + +[sub_resource type="CubeMesh" id=15] + +[sub_resource type="SpatialMaterial" id=16] +albedo_color = Color( 0.490196, 0, 0, 1 ) + +[sub_resource type="ConcavePolygonShape" id=17] +data = PoolVector3Array( -1, 1, 1, 1, 1, 1, -1, -1, 1, 1, 1, 1, 1, -1, 1, -1, -1, 1, 1, 1, -1, -1, 1, -1, 1, -1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1, 1, 1, 1, 1, 1, -1, 1, -1, 1, 1, 1, -1, 1, -1, -1, 1, -1, 1, -1, 1, -1, -1, 1, 1, -1, -1, -1, -1, 1, 1, -1, -1, 1, -1, -1, -1, 1, 1, 1, -1, 1, 1, 1, 1, -1, -1, 1, 1, -1, 1, -1, 1, 1, -1, -1, -1, 1, 1, -1, 1, -1, -1, -1, 1, -1, 1, 1, -1, -1, -1, -1, -1 ) + +[node name="path_start" type="Spatial" groups=["path"]] + +[node name="MeshInstance" type="MeshInstance" parent="."] +transform = Transform( 0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0 ) +mesh = SubResource( 15 ) +skeleton = NodePath("") +material/0 = SubResource( 16 ) + +[node name="StaticBody" type="StaticBody" parent="."] +transform = Transform( 0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0 ) +collision_layer = 2 +collision_mask = 2 + +[node name="CollisionShape" type="CollisionShape" parent="StaticBody"] +shape = SubResource( 17 ) diff --git a/scenes/projectiles/bullet.tscn b/scenes/projectiles/bullet.tscn new file mode 100644 index 0000000..bb49525 --- /dev/null +++ b/scenes/projectiles/bullet.tscn @@ -0,0 +1,21 @@ +[gd_scene load_steps=4 format=2] + +[ext_resource path="res://scripts/bullet.gd" type="Script" id=1] + +[sub_resource type="SphereShape" id=1] + +[sub_resource type="SphereMesh" id=2] + +[node name="bullet" type="Spatial"] +script = ExtResource( 1 ) + +[node name="Area" type="Area" parent="."] + +[node name="CollisionShape" type="CollisionShape" parent="Area"] +transform = Transform( 0.03, 0, 0, 0, 0.03, 0, 0, 0, 0.03, 0, 0, 0 ) +shape = SubResource( 1 ) + +[node name="MeshInstance" type="MeshInstance" parent="Area"] +transform = Transform( 0.03, 0, 0, 0, 0.03, 0, 0, 0, 0.03, 0, 0, 0 ) +mesh = SubResource( 2 ) +material/0 = null diff --git a/scenes/turret.tscn b/scenes/turret.tscn new file mode 100644 index 0000000..61ab365 --- /dev/null +++ b/scenes/turret.tscn @@ -0,0 +1,14 @@ +[gd_scene load_steps=3 format=2] + +[ext_resource path="res://scripts/turret.gd" type="Script" id=1] + +[sub_resource type="BoxShape" id=1] + +[node name="turret" type="Spatial" groups=["turrets"]] +script = ExtResource( 1 ) + +[node name="turret" type="StaticBody" parent="." groups=["turrets"]] + +[node name="CollisionShape" type="CollisionShape" parent="turret"] +transform = Transform( 0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0.25, 0 ) +shape = SubResource( 1 ) |