diff --git a/cpp/kinematic_character/Script/char_con.gdns b/cpp/kinematic_character/Script/char_con.gdns index 22f6399..44bf4ff 100644 --- a/cpp/kinematic_character/Script/char_con.gdns +++ b/cpp/kinematic_character/Script/char_con.gdns @@ -1,4 +1,4 @@ -[gd_resource type="GDNativeScript" load_steps=2 format=2] +[gd_resource type="NativeScript" load_steps=2 format=2] [ext_resource path="res://Script/bin/libkinematic_char.gdnlib" type="GDNativeLibrary" id=1] diff --git a/cpp/kinematic_character/Script/colworld.gdns b/cpp/kinematic_character/Script/colworld.gdns index 5778034..2d401b7 100644 --- a/cpp/kinematic_character/Script/colworld.gdns +++ b/cpp/kinematic_character/Script/colworld.gdns @@ -1,4 +1,4 @@ -[gd_resource type="GDNativeScript" load_steps=2 format=2] +[gd_resource type="NativeScript" load_steps=2 format=2] [ext_resource path="res://Script/bin/libkinematic_char.gdnlib" type="GDNativeLibrary" id=1] diff --git a/cpp/kinematic_character/Script/src/common.cpp b/cpp/kinematic_character/Script/src/common.cpp index 0485479..97f0339 100644 --- a/cpp/kinematic_character/Script/src/common.cpp +++ b/cpp/kinematic_character/Script/src/common.cpp @@ -21,13 +21,18 @@ using namespace godot; -GDNATIVE_INIT(godot_gdnative_init_options *options) { +extern "C" void godot_gdnative_init(godot_gdnative_init_options *options) { + Godot::gdnative_init(options); } -GDNATIVE_TERMINATE(godot_gdnative_terminate_options *options) { +extern "C" void godot_gdnative_terminate(godot_gdnative_terminate_options *options) { + Godot::gdnative_terminate(options); } -NATIVESCRIPT_INIT() { +extern "C" void godot_nativescript_init(void *handle) { + + Godot::nativescript_init(handle); + register_class(); register_class(); } diff --git a/cpp/kinematic_character/colworld.tscn b/cpp/kinematic_character/colworld.tscn index ada1dba..d3daba9 100644 --- a/cpp/kinematic_character/colworld.tscn +++ b/cpp/kinematic_character/colworld.tscn @@ -1,47 +1,67 @@ [gd_scene load_steps=20 format=2] -[ext_resource path="res://obstacle.png" type="Texture" id=1] -[ext_resource path="res://princess.png" type="Texture" id=2] -[ext_resource path="res://Character.tscn" type="PackedScene" id=3] -[ext_resource path="res://circle.png" type="Texture" id=4] -[ext_resource path="res://long_obstacle.png" type="Texture" id=5] -[ext_resource path="res://Script/bin/libkinematic_char.gdnlib" type="GDNativeLibrary" id=6] +[ext_resource path="res://Script/bin/libkinematic_char.gdnlib" type="GDNativeLibrary" id=1] +[ext_resource path="res://obstacle.png" type="Texture" id=2] +[ext_resource path="res://princess.png" type="Texture" id=3] +[ext_resource path="res://Character.tscn" type="PackedScene" id=4] +[ext_resource path="res://circle.png" type="Texture" id=5] +[ext_resource path="res://long_obstacle.png" type="Texture" id=6] -[sub_resource type="NativeScript" id=2] +[sub_resource type="NativeScript" id=1] resource_name = "ColWorld" class_name = "ColWorld" -library = ExtResource( 6 ) +library = ExtResource( 1 ) -[sub_resource type="RectangleShape2D" id=3] +[sub_resource type="RectangleShape2D" id=2] custom_solver_bias = 0.0 extents = Vector2( 8, 8 ) -[sub_resource type="TileSet" id=4] +[sub_resource type="TileSet" id=3] 0/name = "" -0/texture = ExtResource( 1 ) +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/is_autotile = false 0/occluder_offset = Vector2( 0, 0 ) 0/navigation_offset = Vector2( 0, 0 ) 0/shapes = [ { +"autotile_coord": Vector2( 0, 0 ), "one_way": false, -"shape": SubResource( 3 ), +"shape": SubResource( 2 ), "shape_transform": Transform2D( 1, 0, 0, 1, 8, 8 ) } ] +[sub_resource type="RectangleShape2D" id=4] + +custom_solver_bias = 0.0 +extents = Vector2( 8, 8 ) + [sub_resource type="RectangleShape2D" id=5] custom_solver_bias = 0.0 extents = Vector2( 8, 8 ) -[sub_resource type="RectangleShape2D" id=6] +[sub_resource type="Animation" id=6] -custom_solver_bias = 0.0 -extents = Vector2( 8, 8 ) +length = 10.0 +loop = true +step = 0.1 +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=7] @@ -53,6 +73,7 @@ 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 ), @@ -70,23 +91,7 @@ tracks/0/path = NodePath(".:position") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false -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=9] - -length = 10.0 -loop = true -step = 0.1 -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 ), @@ -94,17 +99,17 @@ tracks/0/keys = { "values": [ Vector2( 88.3493, 296 ), Vector2( 88.3493, 296 ), Vector2( 88.3493, 152 ), Vector2( 88.3493, 152 ) ] } -[sub_resource type="RectangleShape2D" id=10] +[sub_resource type="RectangleShape2D" id=9] custom_solver_bias = 0.0 extents = Vector2( 10, 4 ) -[sub_resource type="CircleShape2D" id=11] +[sub_resource type="CircleShape2D" id=10] custom_solver_bias = 0.0 radius = 32.0 -[sub_resource type="Animation" id=12] +[sub_resource type="Animation" id=11] length = 20.0 loop = true @@ -114,6 +119,7 @@ tracks/0/path = NodePath(".:rotation_deg") 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 ), @@ -121,40 +127,42 @@ tracks/0/keys = { "values": [ 0.0, 90.0, 0.0, -90.0 ] } -[sub_resource type="RectangleShape2D" id=13] +[sub_resource type="RectangleShape2D" id=12] custom_solver_bias = 0.0 extents = Vector2( 8, 8 ) -[sub_resource type="RectangleShape2D" id=14] +[sub_resource type="RectangleShape2D" id=13] custom_solver_bias = 0.0 extents = Vector2( 32, 8 ) -[node name="colworld" type="Node2D"] +[node name="colworld" type="Node2D" index="0"] editor/display_folded = true -script = SubResource( 2 ) +script = SubResource( 1 ) -[node name="TileMap" type="TileMap" parent="."] +[node name="TileMap" type="TileMap" parent="." index="0"] mode = 0 -tile_set = SubResource( 4 ) +tile_set = SubResource( 3 ) cell_size = Vector2( 16, 16 ) cell_quadrant_size = 16 cell_custom_transform = Transform2D( 1, 0, 0, 1, 0, 0 ) cell_half_offset = 2 cell_tile_origin = 0 cell_y_sort = false +cell_clip_uv = false collision_use_kinematic = false collision_friction = 1.0 collision_bounce = 0.0 collision_layer = 1 collision_mask = 1 occluder_light_mask = 1 -tile_data = PoolIntArray( 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0, 21, 0, 22, 0, 23, 0, 24, 0, 25, 0, 26, 0, 27, 0, 28, 0, 29, 0, 30, 0, 31, 0, 32, 0, 65536, 0, 65537, 0, 65538, 0, 65539, 0, 65540, 0, 65541, 0, 65542, 0, 65543, 0, 65544, 0, 65545, 0, 65546, 0, 65547, 0, 65548, 0, 65549, 0, 65550, 0, 65551, 0, 65552, 0, 65553, 0, 65554, 0, 65555, 0, 65556, 0, 65557, 0, 65558, 0, 65559, 0, 65560, 0, 65561, 0, 65562, 0, 65563, 0, 65564, 0, 65565, 0, 65566, 0, 65567, 0, 65568, 0, 131072, 0, 131073, 0, 131103, 0, 131104, 0, 196608, 0, 196609, 0, 196639, 0, 196640, 0, 262144, 0, 262145, 0, 262175, 0, 262176, 0, 327680, 0, 327681, 0, 327685, 0, 327686, 0, 327687, 0, 327688, 0, 327689, 0, 327690, 0, 327691, 0, 327692, 0, 327693, 0, 327697, 0, 327698, 0, 327711, 0, 327712, 0, 393216, 0, 393217, 0, 393237, 0, 393238, 0, 393247, 0, 393248, 0, 458752, 0, 458753, 0, 458783, 0, 458784, 0, 524288, 0, 524289, 0, 524313, 0, 524314, 0, 524319, 0, 524320, 0, 589824, 0, 589825, 0, 589830, 0, 589831, 0, 589832, 0, 589833, 0, 589834, 0, 589845, 0, 589846, 0, 589847, 0, 589855, 0, 589856, 0, 655360, 0, 655361, 0, 655391, 0, 655392, 0, 720896, 0, 720897, 0, 720927, 0, 720928, 0, 786432, 0, 786433, 0, 786463, 0, 786464, 0, 851968, 0, 851969, 0, 851999, 0, 852000, 0, 917504, 0, 917505, 0, 917535, 0, 917536, 0, 983040, 0, 983041, 0, 983071, 0, 983072, 0, 1048576, 0, 1048577, 0, 1048607, 0, 1048608, 0, 1114112, 0, 1114113, 0, 1114143, 0, 1114144, 0, 1179648, 0, 1179649, 0, 1179654, 0, 1179655, 0, 1179656, 0, 1179679, 0, 1179680, 0, 1245184, 0, 1245185, 0, 1245204, 0, 1245205, 0, 1245206, 0, 1245207, 0, 1245215, 0, 1245216, 0, 1310720, 0, 1310721, 0, 1310751, 0, 1310752, 0, 1376256, 0, 1376257, 0, 1376285, 0, 1376286, 0, 1376287, 0, 1376288, 0, 1441792, 0, 1441793, 0, 1441823, 0, 1441824, 0, 1507328, 0, 1507329, 0, 1507359, 0, 1507360, 0, 1572864, 0, 1572865, 0, 1572890, 0, 1572891, 0, 1572895, 0, 1572896, 0, 1638400, 0, 1638401, 0, 1638413, 0, 1638425, 0, 1638426, 0, 1638431, 0, 1638432, 0, 1703936, 0, 1703937, 0, 1703946, 0, 1703947, 0, 1703948, 0, 1703949, 0, 1703965, 0, 1703966, 0, 1703967, 0, 1703968, 0, 1769472, 0, 1769473, 0, 1769482, 0, 1769483, 0, 1769501, 0, 1769502, 0, 1769503, 0, 1769504, 0, 1835008, 0, 1835009, 0, 1835012, 0, 1835018, 0, 1835019, 0, 1835034, 0, 1835035, 0, 1835036, 0, 1835037, 0, 1835038, 0, 1835039, 0, 1835040, 0, 1900544, 0, 1900545, 0, 1900546, 0, 1900547, 0, 1900548, 0, 1900549, 0, 1900550, 0, 1900551, 0, 1900552, 0, 1900553, 0, 1900554, 0, 1900555, 0, 1900556, 0, 1900557, 0, 1900558, 0, 1900559, 0, 1900560, 0, 1900561, 0, 1900562, 0, 1900563, 0, 1900564, 0, 1900565, 0, 1900566, 0, 1900567, 0, 1900568, 0, 1900569, 0, 1900570, 0, 1900571, 0, 1900572, 0, 1900573, 0, 1900574, 0, 1900575, 0, 1900576, 0, 1966080, 0, 1966081, 0, 1966082, 0, 1966083, 0, 1966084, 0, 1966085, 0, 1966086, 0, 1966087, 0, 1966088, 0, 1966089, 0, 1966090, 0, 1966091, 0, 1966092, 0, 1966093, 0, 1966094, 0, 1966095, 0, 1966096, 0, 1966097, 0, 1966098, 0, 1966099, 0, 1966100, 0, 1966101, 0, 1966102, 0, 1966103, 0, 1966104, 0, 1966105, 0, 1966106, 0, 1966107, 0, 1966108, 0, 1966109, 0, 1966110, 0, 1966111, 0, 1966112, 0, 2031616, 0, 2031617, 0, 2031618, 0, 2031619, 0, 2031620, 0, 2031621, 0, 2031622, 0, 2031623, 0, 2031624, 0, 2031625, 0, 2031626, 0, 2031627, 0, 2031628, 0, 2031629, 0, 2031630, 0, 2031631, 0, 2031632, 0, 2031633, 0, 2031634, 0, 2031635, 0, 2031636, 0, 2031637, 0, 2031638, 0, 2031639, 0, 2031640, 0, 2031641, 0, 2031642, 0, 2031643, 0, 2031644, 0, 2031645, 0, 2031646, 0, 2031647, 0, 2031648, 0 ) +format = 1 +tile_data = PoolIntArray( 0, 0, 2141323264, 1, 0, 2141323264, 2, 0, 2141323264, 3, 0, 2141323264, 4, 0, 2141323264, 5, 0, 2141323264, 6, 0, 2141323264, 7, 0, 2141323264, 8, 0, 2141323264, 9, 0, 2141323264, 10, 0, 2141323264, 11, 0, 2141323264, 12, 0, 2141323264, 13, 0, 2141323264, 14, 0, 2141323264, 15, 0, 2141323264, 16, 0, 2141323264, 17, 0, 2141323264, 18, 0, 2141323264, 19, 0, 2141323264, 20, 0, 2141323264, 21, 0, 2141323264, 22, 0, 2141323264, 23, 0, 2141323264, 24, 0, 2141323264, 25, 0, 2141323264, 26, 0, 2141323264, 27, 0, 2141323264, 28, 0, 2141323264, 29, 0, 2141323264, 30, 0, 2141323264, 31, 0, 2141323264, 32, 0, 2141323264, 65536, 0, 2141323264, 65537, 0, 2141323264, 65538, 0, 2141323264, 65539, 0, 2141323264, 65540, 0, 2141323264, 65541, 0, 2141323264, 65542, 0, 2141323264, 65543, 0, 2141323264, 65544, 0, 2141323264, 65545, 0, 2141323264, 65546, 0, 2141323264, 65547, 0, 2141323264, 65548, 0, 2141323264, 65549, 0, 2141323264, 65550, 0, 2141323264, 65551, 0, 2141323264, 65552, 0, 2141323264, 65553, 0, 2141323264, 65554, 0, 2141323264, 65555, 0, 2141323264, 65556, 0, 2141323264, 65557, 0, 2141323264, 65558, 0, 2141323264, 65559, 0, 2141323264, 65560, 0, 2141323264, 65561, 0, 2141323264, 65562, 0, 2141323264, 65563, 0, 2141323264, 65564, 0, 2141323264, 65565, 0, 2141323264, 65566, 0, 2141323264, 65567, 0, 2141323264, 65568, 0, 2141323264, 131072, 0, 2141323264, 131073, 0, 2141323264, 131103, 0, 2141323264, 131104, 0, 2141323264, 196608, 0, 2141323264, 196609, 0, 2141323264, 196639, 0, 2141323264, 196640, 0, 2141323264, 262144, 0, 2141323264, 262145, 0, 2141323264, 262175, 0, 2141323264, 262176, 0, 2141323264, 327680, 0, 2141323264, 327681, 0, 2141323264, 327685, 0, 2141323264, 327686, 0, 2141323264, 327687, 0, 2141323264, 327688, 0, 2141323264, 327689, 0, 2141323264, 327690, 0, 2141323264, 327691, 0, 2141323264, 327692, 0, 2141323264, 327693, 0, 2141323264, 327697, 0, 2141323264, 327698, 0, 2141323264, 327711, 0, 2141323264, 327712, 0, 2141323264, 393216, 0, 2141323264, 393217, 0, 2141323264, 393237, 0, 2141323264, 393238, 0, 2141323264, 393247, 0, 2141323264, 393248, 0, 2141323264, 458752, 0, 2141323264, 458753, 0, 2141323264, 458783, 0, 2141323264, 458784, 0, 2141323264, 524288, 0, 2141323264, 524289, 0, 2141323264, 524313, 0, 2141323264, 524314, 0, 2141323264, 524319, 0, 2141323264, 524320, 0, 2141323264, 589824, 0, 2141323264, 589825, 0, 2141323264, 589830, 0, 2141323264, 589831, 0, 2141323264, 589832, 0, 2141323264, 589833, 0, 2141323264, 589834, 0, 2141323264, 589845, 0, 2141323264, 589846, 0, 2141323264, 589847, 0, 2141323264, 589855, 0, 2141323264, 589856, 0, 2141323264, 655360, 0, 2141323264, 655361, 0, 2141323264, 655391, 0, 2141323264, 655392, 0, 2141323264, 720896, 0, 2141323264, 720897, 0, 2141323264, 720927, 0, 2141323264, 720928, 0, 2141323264, 786432, 0, 2141323264, 786433, 0, 2141323264, 786463, 0, 2141323264, 786464, 0, 2141323264, 851968, 0, 2141323264, 851969, 0, 2141323264, 851999, 0, 2141323264, 852000, 0, 2141323264, 917504, 0, 2141323264, 917505, 0, 2141323264, 917535, 0, 2141323264, 917536, 0, 2141323264, 983040, 0, 2141323264, 983041, 0, 2141323264, 983071, 0, 2141323264, 983072, 0, 2141323264, 1048576, 0, 2141323264, 1048577, 0, 2141323264, 1048607, 0, 2141323264, 1048608, 0, 2141323264, 1114112, 0, 2141323264, 1114113, 0, 2141323264, 1114143, 0, 2141323264, 1114144, 0, 2141323264, 1179648, 0, 2141323264, 1179649, 0, 2141323264, 1179654, 0, 2141323264, 1179655, 0, 2141323264, 1179656, 0, 2141323264, 1179679, 0, 2141323264, 1179680, 0, 2141323264, 1245184, 0, 2141323264, 1245185, 0, 2141323264, 1245204, 0, 2141323264, 1245205, 0, 2141323264, 1245206, 0, 2141323264, 1245207, 0, 2141323264, 1245215, 0, 2141323264, 1245216, 0, 2141323264, 1310720, 0, 2141323264, 1310721, 0, 2141323264, 1310751, 0, 2141323264, 1310752, 0, 2141323264, 1376256, 0, 2141323264, 1376257, 0, 2141323264, 1376285, 0, 2141323264, 1376286, 0, 2141323264, 1376287, 0, 2141323264, 1376288, 0, 2141323264, 1441792, 0, 2141323264, 1441793, 0, 2141323264, 1441823, 0, 2141323264, 1441824, 0, 2141323264, 1507328, 0, 2141323264, 1507329, 0, 2141323264, 1507359, 0, 2141323264, 1507360, 0, 2141323264, 1572864, 0, 2141323264, 1572865, 0, 2141323264, 1572890, 0, 2141323264, 1572891, 0, 2141323264, 1572895, 0, 2141323264, 1572896, 0, 2141323264, 1638400, 0, 2141323264, 1638401, 0, 2141323264, 1638413, 0, 2141323264, 1638425, 0, 2141323264, 1638426, 0, 2141323264, 1638431, 0, 2141323264, 1638432, 0, 2141323264, 1703936, 0, 2141323264, 1703937, 0, 2141323264, 1703946, 0, 2141323264, 1703947, 0, 2141323264, 1703948, 0, 2141323264, 1703949, 0, 2141323264, 1703965, 0, 2141323264, 1703966, 0, 2141323264, 1703967, 0, 2141323264, 1703968, 0, 2141323264, 1769472, 0, 2141323264, 1769473, 0, 2141323264, 1769482, 0, 2141323264, 1769483, 0, 2141323264, 1769501, 0, 2141323264, 1769502, 0, 2141323264, 1769503, 0, 2141323264, 1769504, 0, 2141323264, 1835008, 0, 2141323264, 1835009, 0, 2141323264, 1835012, 0, 2141323264, 1835018, 0, 2141323264, 1835019, 0, 2141323264, 1835034, 0, 2141323264, 1835035, 0, 2141323264, 1835036, 0, 2141323264, 1835037, 0, 2141323264, 1835038, 0, 2141323264, 1835039, 0, 2141323264, 1835040, 0, 2141323264, 1900544, 0, 2141323264, 1900545, 0, 2141323264, 1900546, 0, 2141323264, 1900547, 0, 2141323264, 1900548, 0, 2141323264, 1900549, 0, 2141323264, 1900550, 0, 2141323264, 1900551, 0, 2141323264, 1900552, 0, 2141323264, 1900553, 0, 2141323264, 1900554, 0, 2141323264, 1900555, 0, 2141323264, 1900556, 0, 2141323264, 1900557, 0, 2141323264, 1900558, 0, 2141323264, 1900559, 0, 2141323264, 1900560, 0, 2141323264, 1900561, 0, 2141323264, 1900562, 0, 2141323264, 1900563, 0, 2141323264, 1900564, 0, 2141323264, 1900565, 0, 2141323264, 1900566, 0, 2141323264, 1900567, 0, 2141323264, 1900568, 0, 2141323264, 1900569, 0, 2141323264, 1900570, 0, 2141323264, 1900571, 0, 2141323264, 1900572, 0, 2141323264, 1900573, 0, 2141323264, 1900574, 0, 2141323264, 1900575, 0, 2141323264, 1900576, 0, 2141323264, 1966080, 0, 2141323264, 1966081, 0, 2141323264, 1966082, 0, 2141323264, 1966083, 0, 2141323264, 1966084, 0, 2141323264, 1966085, 0, 2141323264, 1966086, 0, 2141323264, 1966087, 0, 2141323264, 1966088, 0, 2141323264, 1966089, 0, 2141323264, 1966090, 0, 2141323264, 1966091, 0, 2141323264, 1966092, 0, 2141323264, 1966093, 0, 2141323264, 1966094, 0, 2141323264, 1966095, 0, 2141323264, 1966096, 0, 2141323264, 1966097, 0, 2141323264, 1966098, 0, 2141323264, 1966099, 0, 2141323264, 1966100, 0, 2141323264, 1966101, 0, 2141323264, 1966102, 0, 2141323264, 1966103, 0, 2141323264, 1966104, 0, 2141323264, 1966105, 0, 2141323264, 1966106, 0, 2141323264, 1966107, 0, 2141323264, 1966108, 0, 2141323264, 1966109, 0, 2141323264, 1966110, 0, 2141323264, 1966111, 0, 2141323264, 1966112, 0, 2141323264, 2031616, 0, 2141323264, 2031617, 0, 2141323264, 2031618, 0, 2141323264, 2031619, 0, 2141323264, 2031620, 0, 2141323264, 2031621, 0, 2141323264, 2031622, 0, 2141323264, 2031623, 0, 2141323264, 2031624, 0, 2141323264, 2031625, 0, 2141323264, 2031626, 0, 2141323264, 2031627, 0, 2141323264, 2031628, 0, 2141323264, 2031629, 0, 2141323264, 2031630, 0, 2141323264, 2031631, 0, 2141323264, 2031632, 0, 2141323264, 2031633, 0, 2141323264, 2031634, 0, 2141323264, 2031635, 0, 2141323264, 2031636, 0, 2141323264, 2031637, 0, 2141323264, 2031638, 0, 2141323264, 2031639, 0, 2141323264, 2031640, 0, 2141323264, 2031641, 0, 2141323264, 2031642, 0, 2141323264, 2031643, 0, 2141323264, 2031644, 0, 2141323264, 2031645, 0, 2141323264, 2031646, 0, 2141323264, 2031647, 0, 2141323264, 2031648, 0, 2141323264 ) -[node name="princess" type="Area2D" parent="."] +[node name="princess" type="Area2D" parent="." index="1"] editor/display_folded = true position = Vector2( 97, 72 ) @@ -166,19 +174,19 @@ angular_damp = 1.0 audio_bus_override = false audio_bus_name = "Master" -[node name="collision" type="CollisionShape2D" parent="princess"] +[node name="collision" type="CollisionShape2D" parent="princess" index="0"] -shape = SubResource( 5 ) +shape = SubResource( 4 ) -[node name="Sprite" type="Sprite" parent="princess"] +[node name="Sprite" type="Sprite" parent="princess" index="1"] -texture = ExtResource( 2 ) +texture = ExtResource( 3 ) -[node name="Character" parent="." instance=ExtResource( 3 )] +[node name="Character" parent="." index="2" instance=ExtResource( 4 )] position = Vector2( 354.296, 254.923 ) -[node name="moving_platform1" type="KinematicBody2D" parent="."] +[node name="moving_platform1" type="KinematicBody2D" parent="." index="3"] editor/display_folded = true position = Vector2( 274.142, 152 ) @@ -187,26 +195,26 @@ collision_layer = 1 collision_mask = 1 collision/safe_margin = 0.08 -[node name="collision" type="CollisionShape2D" parent="moving_platform1"] +[node name="collision" type="CollisionShape2D" parent="moving_platform1" index="0"] -shape = SubResource( 6 ) +shape = SubResource( 5 ) -[node name="sprite" type="Sprite" parent="moving_platform1"] +[node name="sprite" type="Sprite" parent="moving_platform1" index="1"] -texture = ExtResource( 1 ) +texture = ExtResource( 2 ) -[node name="anim" type="AnimationPlayer" parent="moving_platform1"] +[node name="anim" type="AnimationPlayer" parent="moving_platform1" index="2"] playback_process_mode = 0 playback_default_blend_time = 0.0 root_node = NodePath("..") -anims/leftright = SubResource( 7 ) +anims/leftright = SubResource( 6 ) playback/active = true playback/speed = 1.0 blend_times = [ ] autoplay = "leftright" -[node name="moving_platform2" type="KinematicBody2D" parent="."] +[node name="moving_platform2" type="KinematicBody2D" parent="." index="4"] editor/display_folded = true position = Vector2( 88.3493, 284.689 ) @@ -215,27 +223,27 @@ collision_layer = 1 collision_mask = 1 collision/safe_margin = 0.08 -[node name="collision" type="CollisionShape2D" parent="moving_platform2"] +[node name="collision" type="CollisionShape2D" parent="moving_platform2" index="0"] -shape = SubResource( 6 ) +shape = SubResource( 5 ) -[node name="sprite" type="Sprite" parent="moving_platform2"] +[node name="sprite" type="Sprite" parent="moving_platform2" index="1"] -texture = ExtResource( 1 ) +texture = ExtResource( 2 ) -[node name="anim" type="AnimationPlayer" parent="moving_platform2"] +[node name="anim" type="AnimationPlayer" parent="moving_platform2" index="2"] playback_process_mode = 0 playback_default_blend_time = 0.0 root_node = NodePath("..") -anims/leftright = SubResource( 8 ) -anims/updown = SubResource( 9 ) +anims/leftright = SubResource( 7 ) +anims/updown = SubResource( 8 ) playback/active = true playback/speed = 1.0 blend_times = [ ] autoplay = "updown" -[node name="youwin" type="Label" parent="."] +[node name="youwin" type="Label" parent="." index="5"] visible = false anchor_left = 0.0 @@ -247,7 +255,6 @@ margin_top = 41.0 margin_right = 344.0 margin_bottom = 67.0 rect_pivot_offset = Vector2( 0, 0 ) -rect_clip_content = false mouse_filter = 2 size_flags_horizontal = 2 size_flags_vertical = 0 @@ -258,7 +265,7 @@ percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 -[node name="oneway1" type="KinematicBody2D" parent="."] +[node name="oneway1" type="KinematicBody2D" parent="." index="6"] editor/display_folded = true position = Vector2( 439, 308 ) @@ -267,17 +274,17 @@ collision_layer = 1 collision_mask = 1 collision/safe_margin = 0.08 -[node name="sprite" type="Sprite" parent="oneway1"] +[node name="sprite" type="Sprite" parent="oneway1" index="0"] scale = Vector2( 1, 0.3 ) -texture = ExtResource( 1 ) +texture = ExtResource( 2 ) -[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway1"] +[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway1" index="1"] -shape = SubResource( 10 ) +shape = SubResource( 9 ) one_way_collision = true -[node name="oneway2" type="KinematicBody2D" parent="."] +[node name="oneway2" type="KinematicBody2D" parent="." index="7"] editor/display_folded = true position = Vector2( 456, 308 ) @@ -286,17 +293,17 @@ collision_layer = 1 collision_mask = 1 collision/safe_margin = 0.08 -[node name="sprite" type="Sprite" parent="oneway2"] +[node name="sprite" type="Sprite" parent="oneway2" index="0"] scale = Vector2( 1, 0.3 ) -texture = ExtResource( 1 ) +texture = ExtResource( 2 ) -[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway2"] +[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway2" index="1"] -shape = SubResource( 10 ) +shape = SubResource( 9 ) one_way_collision = true -[node name="oneway3" type="KinematicBody2D" parent="."] +[node name="oneway3" type="KinematicBody2D" parent="." index="8"] editor/display_folded = true position = Vector2( 472, 308 ) @@ -305,17 +312,17 @@ collision_layer = 1 collision_mask = 1 collision/safe_margin = 0.08 -[node name="sprite" type="Sprite" parent="oneway3"] +[node name="sprite" type="Sprite" parent="oneway3" index="0"] scale = Vector2( 1, 0.3 ) -texture = ExtResource( 1 ) +texture = ExtResource( 2 ) -[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway3"] +[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway3" index="1"] -shape = SubResource( 10 ) +shape = SubResource( 9 ) one_way_collision = true -[node name="oneway4" type="KinematicBody2D" parent="."] +[node name="oneway4" type="KinematicBody2D" parent="." index="9"] editor/display_folded = true position = Vector2( 487, 308 ) @@ -324,17 +331,17 @@ collision_layer = 1 collision_mask = 1 collision/safe_margin = 0.08 -[node name="sprite" type="Sprite" parent="oneway4"] +[node name="sprite" type="Sprite" parent="oneway4" index="0"] scale = Vector2( 1, 0.3 ) -texture = ExtResource( 1 ) +texture = ExtResource( 2 ) -[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway4"] +[node name="CollisionShape2D" type="CollisionShape2D" parent="oneway4" index="1"] -shape = SubResource( 10 ) +shape = SubResource( 9 ) one_way_collision = true -[node name="circle" type="KinematicBody2D" parent="."] +[node name="circle" type="KinematicBody2D" parent="." index="10"] editor/display_folded = true position = Vector2( 241.169, 304.126 ) @@ -343,36 +350,36 @@ collision_layer = 1 collision_mask = 1 collision/safe_margin = 0.08 -[node name="sprite" type="Sprite" parent="circle"] +[node name="sprite" type="Sprite" parent="circle" index="0"] -texture = ExtResource( 4 ) +texture = ExtResource( 5 ) -[node name="CollisionShape2D" type="CollisionShape2D" parent="circle"] +[node name="CollisionShape2D" type="CollisionShape2D" parent="circle" index="1"] -shape = SubResource( 11 ) +shape = SubResource( 10 ) -[node name="anim" type="AnimationPlayer" parent="circle"] +[node name="anim" type="AnimationPlayer" parent="circle" index="2"] playback_process_mode = 1 playback_default_blend_time = 0.0 root_node = NodePath("..") -anims/turn = SubResource( 12 ) +anims/turn = SubResource( 11 ) playback/active = true playback/speed = 1.0 blend_times = [ ] autoplay = "turn" -[node name="box" type="CollisionShape2D" parent="circle"] +[node name="box" type="CollisionShape2D" parent="circle" index="3"] position = Vector2( -0.440125, -37.0904 ) -shape = SubResource( 13 ) +shape = SubResource( 12 ) -[node name="boxsprite" type="Sprite" parent="circle"] +[node name="boxsprite" type="Sprite" parent="circle" index="4"] position = Vector2( 0, -37.4108 ) -texture = ExtResource( 1 ) +texture = ExtResource( 2 ) -[node name="platform" type="StaticBody2D" parent="."] +[node name="platform" type="StaticBody2D" parent="." index="11"] editor/display_folded = true position = Vector2( 251.44, 396.557 ) @@ -385,15 +392,15 @@ constant_angular_velocity = 0.0 friction = 1.0 bounce = 0.0 -[node name="sprite" type="Sprite" parent="platform"] +[node name="sprite" type="Sprite" parent="platform" index="0"] -texture = ExtResource( 5 ) +texture = ExtResource( 6 ) -[node name="CollisionShape2D" type="CollisionShape2D" parent="platform"] +[node name="CollisionShape2D" type="CollisionShape2D" parent="platform" index="1"] -shape = SubResource( 14 ) +shape = SubResource( 13 ) -[node name="platform1" type="StaticBody2D" parent="."] +[node name="platform1" type="StaticBody2D" parent="." index="12"] editor/display_folded = true position = Vector2( 369.116, 394.016 ) @@ -406,12 +413,12 @@ constant_angular_velocity = 0.0 friction = 1.0 bounce = 0.0 -[node name="sprite" type="Sprite" parent="platform1"] +[node name="sprite" type="Sprite" parent="platform1" index="0"] -texture = ExtResource( 5 ) +texture = ExtResource( 6 ) -[node name="CollisionShape2D" type="CollisionShape2D" parent="platform1"] +[node name="CollisionShape2D" type="CollisionShape2D" parent="platform1" index="1"] -shape = SubResource( 14 ) +shape = SubResource( 13 )