pandemonium_demo_projects/2d/kinematic_character/world.tscn

270 lines
43 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=19 format=2]
[ext_resource path="res://level/obstacle.png" type="Texture" id=2]
[ext_resource path="res://player/player.tscn" type="PackedScene" id=3]
[ext_resource path="res://level/princess.png" type="Texture" id=4]
[ext_resource path="res://level/circle.png" type="Texture" id=5]
[ext_resource path="res://level/long_obstacle.png" type="Texture" id=6]
[ext_resource path="res://level/princess.gd" type="Script" id=7]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 8, 8 )
[sub_resource type="TileSet" id=2]
0/name = ""
0/texture = ExtResource( 2 )
0/tex_offset = Vector2( 0, 0 )
0/modulate = Color( 1, 1, 1, 1 )
0/region = Rect2( 0, 0, 0, 0 )
0/tile_mode = 0
0/occluder_offset = Vector2( 0, 0 )
0/navigation_offset = Vector2( 0, 0 )
0/shape_offset = Vector2( 8, 8 )
0/shape_transform = Transform2D( 1, 0, 0, 1, 8, 8 )
0/shape = SubResource( 1 )
0/shape_one_way = false
0/shape_one_way_margin = 1.0
0/shapes = [ {
"autotile_coord": Vector2( 0, 0 ),
"one_way": false,
"one_way_margin": 1.0,
"shape": SubResource( 1 ),
"shape_transform": Transform2D( 1, 0, 0, 1, 8, 8 )
} ]
0/z_index = 0
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 8, 8 )
[sub_resource type="Animation" id=4]
length = 10.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1, 5, 6 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 184, 152 ), Vector2( 184, 152 ), Vector2( 328.086, 152 ), Vector2( 328.086, 152 ) ]
}
[sub_resource type="Animation" id=5]
resource_name = "leftright"
length = 10.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1, 5, 6 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 184, 152 ), Vector2( 184, 152 ), Vector2( 328.086, 152 ), Vector2( 328.086, 152 ) ]
}
[sub_resource type="Animation" id=6]
length = 10.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 1, 5, 6 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 88.3493, 296 ), Vector2( 88.3493, 296 ), Vector2( 88.3493, 152 ), Vector2( 88.3493, 152 ) ]
}
[sub_resource type="RectangleShape2D" id=7]
extents = Vector2( 8, 8 )
[sub_resource type="RectangleShape2D" id=8]
extents = Vector2( 10, 4 )
[sub_resource type="CircleShape2D" id=9]
radius = 32.0
[sub_resource type="Animation" id=10]
length = 20.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath(".:rotation_degrees")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 5, 10, 15 ),
"transitions": PoolRealArray( -2, -2, -2, -2 ),
"update": 0,
"values": [ 0.0, 90.0, 0.0, -90.0 ]
}
[sub_resource type="RectangleShape2D" id=11]
extents = Vector2( 8, 8 )
[sub_resource type="RectangleShape2D" id=12]
extents = Vector2( 32, 8 )
[node name="World" type="Node2D"]
[node name="TileMap" type="TileMap" parent="."]
tile_set = SubResource( 2 )
cell_size = Vector2( 16, 16 )
format = 1
tile_data = PoolIntArray( -720908, 0, 0, -720907, 0, 0, -720906, 0, 0, -720905, 0, 0, -720904, 0, 0, -720903, 0, 0, -720902, 0, 0, -720901, 0, 0, -720900, 0, 0, -720899, 0, 0, -720898, 0, 0, -720897, 0, 0, -786432, 0, 0, -786431, 0, 0, -786430, 0, 0, -786429, 0, 0, -786428, 0, 0, -786427, 0, 0, -786426, 0, 0, -786425, 0, 0, -786424, 0, 0, -786423, 0, 0, -786422, 0, 0, -786421, 0, 0, -786420, 0, 0, -786419, 0, 0, -786418, 0, 0, -786417, 0, 0, -786416, 0, 0, -786415, 0, 0, -786414, 0, 0, -786413, 0, 0, -786412, 0, 0, -786411, 0, 0, -786410, 0, 0, -786409, 0, 0, -786408, 0, 0, -786407, 0, 0, -786406, 0, 0, -786405, 0, 0, -786404, 0, 0, -786403, 0, 0, -786402, 0, 0, -786401, 0, 0, -786400, 0, 0, -786399, 0, 0, -786398, 0, 0, -786397, 0, 0, -786396, 0, 0, -786395, 0, 0, -786394, 0, 0, -786393, 0, 0, -786392, 0, 0, -786391, 0, 0, -786390, 0, 0, -786389, 0, 0, -786388, 0, 0, -655372, 0, 0, -655371, 0, 0, -655370, 0, 0, -655369, 0, 0, -655368, 0, 0, -655367, 0, 0, -655366, 0, 0, -655365, 0, 0, -655364, 0, 0, -655363, 0, 0, -655362, 0, 0, -655361, 0, 0, -720896, 0, 0, -720895, 0, 0, -720894, 0, 0, -720893, 0, 0, -720892, 0, 0, -720891, 0, 0, -720890, 0, 0, -720889, 0, 0, -720888, 0, 0, -720887, 0, 0, -720886, 0, 0, -720885, 0, 0, -720884, 0, 0, -720883, 0, 0, -720882, 0, 0, -720881, 0, 0, -720880, 0, 0, -720879, 0, 0, -720878, 0, 0, -720877, 0, 0, -720876, 0, 0, -720875, 0, 0, -720874, 0, 0, -720873, 0, 0, -720872, 0, 0, -720871, 0, 0, -720870, 0, 0, -720869, 0, 0, -720868, 0, 0, -720867, 0, 0, -720866, 0, 0, -720865, 0, 0, -720864, 0, 0, -720863, 0, 0, -720862, 0, 0, -720861, 0, 0, -720860, 0, 0, -720859, 0, 0, -720858, 0, 0, -720857, 0, 0, -720856, 0, 0, -720855, 0, 0, -720854, 0, 0, -720853, 0, 0, -720852, 0, 0, -589836, 0, 0, -589835, 0, 0, -589834, 0, 0, -589833, 0, 0, -589832, 0, 0, -589831, 0, 0, -589830, 0, 0, -589829, 0, 0, -589828, 0, 0, -589827, 0, 0, -589826, 0, 0, -589825, 0, 0, -655360, 0, 0, -655359, 0, 0, -655358, 0, 0, -655357, 0, 0, -655356, 0, 0, -655355, 0, 0, -655354, 0, 0, -655353, 0, 0, -655352, 0, 0, -655351, 0, 0, -655350, 0, 0, -655349, 0, 0, -655348, 0, 0, -655347, 0, 0, -655346, 0, 0, -655345, 0, 0, -655344, 0, 0, -655343, 0, 0, -655342, 0, 0, -655341, 0, 0, -655340, 0, 0, -655339, 0, 0, -655338, 0, 0, -655337, 0, 0, -655336, 0, 0, -655335, 0, 0, -655334, 0, 0, -655333, 0, 0, -655332, 0, 0, -655331, 0, 0, -655330, 0, 0, -655329, 0, 0, -655328, 0, 0, -655327, 0, 0, -655326, 0, 0, -655325, 0, 0, -655324, 0, 0, -655323, 0, 0, -655322, 0, 0, -655321, 0, 0, -655320, 0, 0, -655319, 0, 0, -655318, 0, 0, -655317, 0, 0, -655316, 0, 0, -524300, 0, 0, -524299, 0, 0, -524298, 0, 0, -524297, 0, 0, -524296, 0, 0, -524295, 0, 0, -524294, 0, 0, -524293, 0, 0, -524292, 0, 0, -524291, 0, 0, -524290, 0, 0, -524289, 0, 0, -589824, 0, 0, -589823, 0, 0, -589822, 0, 0, -589821, 0, 0, -589820, 0, 0, -589819, 0, 0, -589818, 0, 0, -589817, 0, 0, -589816, 0, 0, -589815, 0, 0, -589814, 0, 0, -589813, 0, 0, -589812, 0, 0, -589811, 0, 0, -589810, 0, 0, -589809, 0, 0, -589808, 0, 0, -589807, 0, 0, -589806, 0, 0, -589805, 0, 0, -589804, 0, 0, -589803, 0, 0, -589802, 0, 0, -589801, 0, 0, -589800, 0, 0, -589799, 0, 0, -589798, 0, 0, -589797, 0, 0, -589796, 0, 0, -589795, 0, 0, -589794, 0, 0, -589793, 0, 0, -589792, 0, 0, -589791, 0, 0, -589790, 0, 0, -589789, 0, 0, -589788, 0, 0, -589787, 0, 0, -589786, 0, 0, -589785, 0, 0, -589784, 0, 0, -589783, 0, 0, -589782, 0, 0, -589781, 0, 0, -589780, 0, 0, -458764, 0, 0, -458763, 0, 0, -458762, 0, 0, -458761, 0, 0, -458760, 0, 0, -458759, 0, 0, -458758, 0, 0, -458757, 0, 0, -458756, 0, 0, -458755, 0, 0, -458754, 0, 0, -458753, 0, 0, -524288, 0, 0, -524287, 0, 0, -524286, 0, 0, -524285, 0, 0, -524284, 0, 0, -524283, 0, 0, -524282, 0, 0, -524281, 0, 0, -524280, 0, 0, -524279, 0, 0, -524278, 0, 0, -524277, 0, 0, -524276, 0, 0, -524275, 0, 0, -524274, 0, 0, -524273, 0, 0, -524272, 0, 0, -524271, 0, 0, -524270, 0, 0, -524269, 0, 0, -524268, 0, 0, -524267, 0, 0, -524266, 0, 0, -524265, 0, 0, -524264, 0, 0, -524263, 0, 0, -524262, 0, 0, -524261, 0, 0, -524260, 0, 0, -524259, 0, 0, -524258, 0, 0, -524
[node name="Player" parent="." instance=ExtResource( 3 )]
position = Vector2( 233.06, 223.436 )
[node name="MovingPlatform1" type="KinematicBody2D" parent="."]
position = Vector2( 274.142, 152 )
[node name="Collision" type="CollisionShape2D" parent="MovingPlatform1"]
shape = SubResource( 3 )
[node name="Sprite" type="Sprite" parent="MovingPlatform1"]
texture = ExtResource( 2 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="MovingPlatform1"]
autoplay = "leftright"
playback_process_mode = 0
anims/leftright = SubResource( 4 )
[node name="MovingPlatform2" type="KinematicBody2D" parent="."]
position = Vector2( 88.3493, 284.689 )
[node name="Collision" type="CollisionShape2D" parent="MovingPlatform2"]
shape = SubResource( 3 )
[node name="Sprite" type="Sprite" parent="MovingPlatform2"]
texture = ExtResource( 2 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="MovingPlatform2"]
autoplay = "updown"
playback_process_mode = 0
anims/leftright = SubResource( 5 )
anims/updown = SubResource( 6 )
[node name="Princess" type="Area2D" parent="."]
position = Vector2( 97, 72 )
script = ExtResource( 7 )
[node name="Collision" type="CollisionShape2D" parent="Princess"]
shape = SubResource( 7 )
[node name="Sprite" type="Sprite" parent="Princess"]
texture = ExtResource( 4 )
[node name="WinText" type="Label" parent="."]
visible = false
margin_left = 196.0
margin_top = 41.0
margin_right = 344.0
margin_bottom = 67.0
size_flags_horizontal = 2
size_flags_vertical = 0
text = "Thank You Cubio!
You Saved The Princess!"
align = 1
[node name="OneWay1" type="KinematicBody2D" parent="."]
position = Vector2( 439, 308 )
[node name="Sprite" type="Sprite" parent="OneWay1"]
scale = Vector2( 1, 0.3 )
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="OneWay1"]
shape = SubResource( 8 )
one_way_collision = true
[node name="OneWay2" type="KinematicBody2D" parent="."]
position = Vector2( 456, 308 )
[node name="Sprite" type="Sprite" parent="OneWay2"]
scale = Vector2( 1, 0.3 )
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="OneWay2"]
shape = SubResource( 8 )
one_way_collision = true
[node name="OneWay3" type="KinematicBody2D" parent="."]
position = Vector2( 472, 308 )
[node name="Sprite" type="Sprite" parent="OneWay3"]
scale = Vector2( 1, 0.3 )
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="OneWay3"]
shape = SubResource( 8 )
one_way_collision = true
[node name="OneWay4" type="KinematicBody2D" parent="."]
position = Vector2( 487, 308 )
[node name="Sprite" type="Sprite" parent="OneWay4"]
scale = Vector2( 1, 0.3 )
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="OneWay4"]
shape = SubResource( 8 )
one_way_collision = true
[node name="Circle" type="KinematicBody2D" parent="."]
position = Vector2( 241.169, 304.126 )
[node name="Sprite" type="Sprite" parent="Circle"]
texture = ExtResource( 5 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Circle"]
shape = SubResource( 9 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="Circle"]
autoplay = "turn"
anims/turn = SubResource( 10 )
[node name="Box" type="CollisionShape2D" parent="Circle"]
position = Vector2( -0.440125, -37.0904 )
shape = SubResource( 11 )
[node name="BoxSprite" type="Sprite" parent="Circle"]
position = Vector2( 0, -37.4108 )
texture = ExtResource( 2 )
[node name="Platform" type="StaticBody2D" parent="."]
position = Vector2( 251.44, 396.557 )
rotation = -0.428054
[node name="Sprite" type="Sprite" parent="Platform"]
texture = ExtResource( 6 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Platform"]
shape = SubResource( 12 )
[node name="Platform1" type="StaticBody2D" parent="."]
position = Vector2( 369.116, 394.016 )
rotation = 0.465931
[node name="Sprite" type="Sprite" parent="Platform1"]
texture = ExtResource( 6 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Platform1"]
shape = SubResource( 12 )
[node name="Camera2D" type="Camera2D" parent="."]
offset = Vector2( 265, 247 )
[connection signal="body_entered" from="Princess" to="Princess" method="_on_body_entered"]