132 lines
3.7 KiB
Plaintext
132 lines
3.7 KiB
Plaintext
[gd_scene load_steps=10 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://utils/CollisionLine.gd" type="Script" id=5]
|
|
[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]
|
|
|
|
[sub_resource type="SegmentShape2D" id=3]
|
|
a = Vector2( 37, 302 )
|
|
b = Vector2( 34, 570 )
|
|
|
|
[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="SimpleEntity2" parent="Entities" instance=ExtResource( 1 )]
|
|
position = Vector2( 157, 306 )
|
|
|
|
[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 )
|
|
|
|
[node name="Wall2" type="KinematicBody2D" parent="World"]
|
|
position = Vector2( 896, 386 )
|
|
scale = Vector2( 7.56, 1 )
|
|
__meta__ = {
|
|
"_edit_group_": true
|
|
}
|
|
|
|
[node name="Sprite" type="Sprite" parent="World/Wall2"]
|
|
material = ExtResource( 4 )
|
|
position = Vector2( 0.965286, 0.579379 )
|
|
scale = Vector2( 115, 104 )
|
|
texture = ExtResource( 3 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="World/Wall2"]
|
|
position = Vector2( 0.465286, 0.57938 )
|
|
z_as_relative = false
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="CollisionLine" type="KinematicBody2D" parent="World"]
|
|
position = Vector2( 221, 205 )
|
|
script = ExtResource( 5 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="World/CollisionLine"]
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="UI" type="CanvasLayer" parent="."]
|
|
|
|
[node name="PlayerMovableTarget" type="Label" parent="UI"]
|
|
margin_right = 40.0
|
|
margin_bottom = 14.0
|
|
text = "Blaaa"
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[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"]
|