mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 05:20:06 +01:00
154 lines
6.8 KiB
Plaintext
154 lines
6.8 KiB
Plaintext
[gd_scene load_steps=12 format=4 uid="uid://c6ncvkymn6dj3"]
|
|
|
|
[ext_resource type="Script" uid="uid://42jfsqbo43g2" path="res://tests/functional/test_character_tilemap.gd" id="1"]
|
|
[ext_resource type="PackedScene" uid="uid://cwjfkltvisc0n" path="res://tests/test_options.tscn" id="3"]
|
|
[ext_resource type="PackedScene" uid="uid://bme1oft43530u" path="res://tests/static_scene_flat.tscn" id="4"]
|
|
[ext_resource type="TileSet" uid="uid://b07pnn5pkpb35" path="res://assets/tileset/tileset.tres" id="5"]
|
|
[ext_resource type="Script" uid="uid://b0jkxylp22kyw" path="res://utils/rigidbody_controller.gd" id="6"]
|
|
[ext_resource type="Script" uid="uid://biq27skoujiho" path="res://utils/characterbody_controller.gd" id="7"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="2"]
|
|
size = Vector2(32, 63.9)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jx2e1"]
|
|
size = Vector2(32, 47.8)
|
|
|
|
[sub_resource type="SeparationRayShape2D" id="RayShape2D_206f5"]
|
|
length = 24.0
|
|
|
|
[sub_resource type="PhysicsMaterial" id="1"]
|
|
friction = 0.0
|
|
|
|
[sub_resource type="CircleShape2D" id="5"]
|
|
radius = 16.0
|
|
|
|
[node name="Test" type="Node2D" unique_id=1030636021]
|
|
script = ExtResource("1")
|
|
|
|
[node name="LabelTestType" type="Label" parent="." unique_id=273813499]
|
|
offset_left = 14.0
|
|
offset_top = 79.0
|
|
offset_right = 145.0
|
|
offset_bottom = 93.0
|
|
text = "Testing: "
|
|
|
|
[node name="Options" parent="." unique_id=2047291445 instance=ExtResource("3")]
|
|
|
|
[node name="LabelFloor" type="Label" parent="." unique_id=1280584256]
|
|
offset_left = 14.0
|
|
offset_top = 237.929
|
|
offset_right = 145.0
|
|
offset_bottom = 251.929
|
|
text = "ON FLOOR"
|
|
|
|
[node name="LabelControls" type="Label" parent="." unique_id=913594692]
|
|
offset_left = 14.0
|
|
offset_top = 263.291
|
|
offset_right = 145.0
|
|
offset_bottom = 277.291
|
|
text = "LEFT/RIGHT - MOVE
|
|
UP - JUMP"
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D" parent="." unique_id=2071269796]
|
|
position = Vector2(250, 460)
|
|
collision_mask = 2147483649
|
|
script = ExtResource("7")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D" unique_id=1318848413]
|
|
shape = SubResource("2")
|
|
debug_color = Color(0, 1, 0, 0.0980392)
|
|
|
|
[node name="CharacterBodyRay2D" type="CharacterBody2D" parent="." unique_id=1233905106]
|
|
position = Vector2(250, 460)
|
|
collision_mask = 2147483649
|
|
script = ExtResource("7")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBodyRay2D" unique_id=176094435]
|
|
position = Vector2(0, -8)
|
|
shape = SubResource("RectangleShape2D_jx2e1")
|
|
debug_color = Color(0, 1, 0, 0.0980392)
|
|
|
|
[node name="CollisionShapeRay2D" type="CollisionShape2D" parent="CharacterBodyRay2D" unique_id=442666417]
|
|
position = Vector2(0, 8)
|
|
shape = SubResource("RayShape2D_206f5")
|
|
debug_color = Color(0, 1, 0, 0.0980392)
|
|
|
|
[node name="CollisionShapeRay2DLeft" type="CollisionShape2D" parent="CharacterBodyRay2D" unique_id=1547201264]
|
|
position = Vector2(-12, 8)
|
|
shape = SubResource("RayShape2D_206f5")
|
|
debug_color = Color(0, 1, 0, 0.0980392)
|
|
|
|
[node name="CollisionShapeRay2DRight" type="CollisionShape2D" parent="CharacterBodyRay2D" unique_id=661455822]
|
|
position = Vector2(12, 8)
|
|
shape = SubResource("RayShape2D_206f5")
|
|
debug_color = Color(0, 1, 0, 0.0980392)
|
|
|
|
[node name="RigidDynamicBody2D" type="RigidBody2D" parent="." unique_id=1443676515]
|
|
position = Vector2(250, 460)
|
|
collision_mask = 2147483649
|
|
physics_material_override = SubResource("1")
|
|
lock_rotation = true
|
|
contact_monitor = true
|
|
script = ExtResource("6")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidDynamicBody2D" unique_id=2123118332]
|
|
shape = SubResource("2")
|
|
debug_color = Color(1, 1, 0, 0.0980392)
|
|
|
|
[node name="RigidBodyRay2D" type="RigidBody2D" parent="." unique_id=2052998667]
|
|
position = Vector2(250, 460)
|
|
collision_mask = 2147483649
|
|
physics_material_override = SubResource("1")
|
|
lock_rotation = true
|
|
contact_monitor = true
|
|
script = ExtResource("6")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBodyRay2D" unique_id=223096978]
|
|
position = Vector2(0, -8)
|
|
shape = SubResource("RectangleShape2D_jx2e1")
|
|
debug_color = Color(1, 1, 0, 0.0980392)
|
|
|
|
[node name="CollisionShapeRay2D" type="CollisionShape2D" parent="RigidBodyRay2D" unique_id=1354570530]
|
|
position = Vector2(0, 8)
|
|
shape = SubResource("RayShape2D_206f5")
|
|
debug_color = Color(1, 1, 0, 0.0980392)
|
|
|
|
[node name="CollisionShapeRay2DLeft" type="CollisionShape2D" parent="RigidBodyRay2D" unique_id=1913232198]
|
|
position = Vector2(-12, 8)
|
|
shape = SubResource("RayShape2D_206f5")
|
|
debug_color = Color(1, 1, 0, 0.0980392)
|
|
|
|
[node name="CollisionShapeRay2DRight" type="CollisionShape2D" parent="RigidBodyRay2D" unique_id=1331621464]
|
|
position = Vector2(12, 8)
|
|
shape = SubResource("RayShape2D_206f5")
|
|
debug_color = Color(1, 1, 0, 0.0980392)
|
|
|
|
[node name="JumpTargetArea2D" type="Area2D" parent="." unique_id=1409049323]
|
|
visible = false
|
|
position = Vector2(810, 390)
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="JumpTargetArea2D" unique_id=741917641]
|
|
shape = SubResource("5")
|
|
disabled = true
|
|
debug_color = Color(1, 0, 1, 0.0980392)
|
|
|
|
[node name="FallTargetArea2D" type="Area2D" parent="." unique_id=29405138]
|
|
visible = false
|
|
position = Vector2(250, 480)
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="FallTargetArea2D" unique_id=1901041162]
|
|
shape = SubResource("5")
|
|
disabled = true
|
|
debug_color = Color(1, 0, 1, 0.0980392)
|
|
|
|
[node name="StaticSceneFlat" parent="." unique_id=1023216057 instance=ExtResource("4")]
|
|
position = Vector2(0, 12)
|
|
|
|
[node name="TileMapLayer" type="TileMapLayer" parent="." unique_id=1978972898]
|
|
texture_filter = 1
|
|
use_parent_material = true
|
|
scale = Vector2(2, 2)
|
|
tile_map_data = PackedByteArray("AAAGAAwAAAABAAAAAAAHAAwAAAABAAAAAAAIAAwAAAABAAAAAAAJAAwAAAABAAAAAAAMAAcAAAABAAAAAAAMAAgAAAABAAAAAAAMAAkAAAABAAAAAAAMAAoAAAABAAAAAAAMAAsAAAABAAAAAAAMAAwAAAABAAAAAAAMAA0AAAABAAAAAAAMAA4AAAABAAAAAAAMAA8AAAABAAAAAAANAAcAAAABAAAAAAANAAgAAAABAAAAAAANAAkAAAABAAAAAAANAAoAAAABAAAAAAANAAsAAAABAAAAAAANAAwAAAABAAAAAAANAA0AAAABAAAAAAANAA4AAAABAAAAAAANAA8AAAABAAAAAAAOAAcAAAABAAAAAAAOAAgAAAABAAAAAAAOAAkAAAABAAAAAAAOAAoAAAABAAAAAAAOAAsAAAABAAAAAAAOAAwAAAABAAAAAAAOAA0AAAABAAAAAAAOAA4AAAABAAAAAAAOAA8AAAABAAAAAAAPAAcAAAABAAAAAAAPAAgAAAABAAAAAAAPAAkAAAABAAAAAAAPAAoAAAABAAAAAAAPAAsAAAABAAAAAAAPAAwAAAABAAAAAAAPAA0AAAABAAAAAAAPAA4AAAABAAAAAAAPAA8AAAABAAAAAAAQAAcAAAABAAAAAAAQAAgAAAABAAAAAAAQAAkAAAABAAAAAAAQAAoAAAABAAAAAAAQAAsAAAABAAAAAAAQAAwAAAABAAAAAAAQAA0AAAABAAAAAAAQAA4AAAABAAAAAAAQAA8AAAABAAAAAAARAAcAAAABAAAAAAARAAgAAAABAAAAAAARAAkAAAABAAAAAAARAAoAAAABAAAAAAARAAsAAAABAAAAAAARAAwAAAABAAAAAAARAA0AAAABAAAAAAARAA4AAAABAAAAAAARAA8AAAABAAAAAAASAAcAAAABAAAAAAASAAgAAAABAAAAAAASAAkAAAABAAAAAAASAAoAAAABAAAAAAASAAsAAAABAAAAAAASAAwAAAABAAAAAAASAA0AAAABAAAAAAASAA4AAAABAAAAAAASAA8AAAABAAAAAAATAAcAAAABAAAAAAATAAgAAAABAAAAAAATAAkAAAABAAAAAAATAAoAAAABAAAAAAATAAsAAAABAAAAAAATAAwAAAABAAAAAAATAA0AAAABAAAAAAATAA4AAAABAAAAAAATAA8AAAABAAAAAAAYAA0AAAAAAAAAAAAZAA0AAAAAAAAAAAAaAAsAAAAAAAAAAAAaAA0AAAAAAAAAAAAbAAsAAAAAAAAAAAAbAA0AAAAAAAAAAAAcAAsAAAAAAAAAAAAdAAsAAAAAAAAAAAA=")
|
|
tile_set = ExtResource("5")
|
|
collision_visibility_mode = 1
|