GodotComponentTest/Game.tscn

98 lines
2.9 KiB
Plaintext

[gd_scene load_steps=8 format=2]
[ext_resource path="res://Entities/SimpleEntity.tscn" type="PackedScene" id=1]
[ext_resource path="res://Entities/PlayerEntity.tscn" type="PackedScene" id=2]
[ext_resource path="res://Assets/white.png" type="Texture" id=3]
[ext_resource path="res://Materials/PhysicsObjects.tres" type="Material" id=4]
[ext_resource path="res://Game.gd" type="Script" id=6]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 57.5347, 51.5794 )
[sub_resource type="RectangleShape2D" id=2]
[node name="Game" type="Node2D"]
script = ExtResource( 6 )
[node name="Control" type="HBoxContainer" parent="."]
margin_left = 30.0
margin_top = 30.0
margin_right = 40.0
margin_bottom = 40.0
[node name="AddEntityButton" type="Button" parent="Control"]
margin_right = 77.0
margin_bottom = 20.0
text = "Add Entity"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="AddWanderingEntity" type="Button" parent="Control"]
margin_left = 81.0
margin_right = 190.0
margin_bottom = 20.0
text = "Add Wandering"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Entities" type="Node2D" parent="."]
[node name="SimpleEntity" parent="Entities" instance=ExtResource( 1 )]
position = Vector2( 360, 118 )
[node name="Color" parent="Entities/SimpleEntity/Components" index="2"]
color = Color( 0.298039, 0.745098, 0.368627, 1 )
[node name="SimpleEntity2" parent="Entities" instance=ExtResource( 1 )]
position = Vector2( 157, 306 )
[node name="Color" parent="Entities/SimpleEntity2/Components" index="2"]
color = Color( 0, 0.0156863, 1, 1 )
[node name="PlayerEntity" parent="." instance=ExtResource( 2 )]
[node name="World" type="Node2D" parent="."]
[node name="Wall" type="KinematicBody2D" parent="World"]
position = Vector2( 582, 817 )
scale = Vector2( 7.56, 1 )
__meta__ = {
"_edit_group_": true
}
[node name="Sprite" type="Sprite" parent="World/Wall"]
material = ExtResource( 4 )
position = Vector2( 0.965286, 0.579379 )
scale = Vector2( 115, 104 )
texture = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="World/Wall"]
position = Vector2( 0.465286, 0.57938 )
z_as_relative = false
shape = SubResource( 1 )
[node name="RigidBody2D" type="RigidBody2D" parent="World"]
position = Vector2( 649, 227 )
__meta__ = {
"_edit_group_": true
}
[node name="CollisionShape2D" type="CollisionShape2D" parent="World/RigidBody2D"]
rotation = -0.432491
scale = Vector2( 11.5039, 4.3795 )
shape = SubResource( 2 )
[node name="Sprite" type="Sprite" parent="World/RigidBody2D/CollisionShape2D"]
material = ExtResource( 4 )
use_parent_material = true
scale = Vector2( 20.002, 19.4893 )
texture = ExtResource( 3 )
[connection signal="pressed" from="Control/AddEntityButton" to="." method="_on_AddEntityButton_pressed"]
[connection signal="pressed" from="Control/AddWanderingEntity" to="." method="_on_AddWanderingEntity_pressed"]
[editable path="Entities/SimpleEntity"]
[editable path="Entities/SimpleEntity2"]