mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-09-03 23:39:26 +03:00
Update all demos for Godot 4.6, fix Global Illumination demo (#1294)
- Rebake lightmaps in Global Illumination demo with supersampling to improve quality. - Increase SDFGI quality in the Global Illumination demo (slightly more demanding, but better matches the quality standards of 2026). All demos had Project > Tools > Upgrade Project Files ran on them with 4.6.stable (4.6.stable.mono for demos in the `mono/` folder).
This commit is contained in:
@@ -14,7 +14,7 @@ config/name="Bullet Shower"
|
||||
config/description="Demonstrates how to manage large amounts of objects efficiently using low-level Servers."
|
||||
config/tags=PackedStringArray("2d", "demo", "official", "performance")
|
||||
run/main_scene="res://shower.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[debug]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://dxq1b4cth265d"]
|
||||
[gd_scene format=3 uid="uid://dxq1b4cth265d"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://e3fsq0i746o1" path="res://bullets.gd" id="2"]
|
||||
[ext_resource type="Texture2D" uid="uid://c33jd3nwdqtb4" path="res://face_happy.png" id="3"]
|
||||
@@ -22,18 +22,18 @@ animations = [{
|
||||
[sub_resource type="CircleShape2D" id="2"]
|
||||
radius = 27.0
|
||||
|
||||
[node name="Shower" type="Node2D"]
|
||||
[node name="Shower" type="Node2D" unique_id=598434821]
|
||||
|
||||
[node name="Bullets" type="Node2D" parent="."]
|
||||
[node name="Bullets" type="Node2D" parent="." unique_id=1614408549]
|
||||
script = ExtResource("2")
|
||||
|
||||
[node name="Player" type="Area2D" parent="."]
|
||||
[node name="Player" type="Area2D" parent="." unique_id=1438649763]
|
||||
script = ExtResource("5")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Player"]
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Player" unique_id=1834098533]
|
||||
sprite_frames = SubResource("1")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player" unique_id=1966553877]
|
||||
shape = SubResource("2")
|
||||
|
||||
[connection signal="body_shape_entered" from="Player" to="Player" method="_on_body_shape_entered"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://e3ko2k5vfsph"]
|
||||
[gd_scene format=3 uid="uid://e3ko2k5vfsph"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://k86266poffsc" path="res://custom_drawing.gd" id="1_rtndo"]
|
||||
[ext_resource type="Script" uid="uid://bs2i4k2suatwx" path="res://lines.gd" id="2_exx0l"]
|
||||
@@ -10,7 +10,7 @@
|
||||
[ext_resource type="Script" uid="uid://m1872t0qa0i4" path="res://animation.gd" id="8_yrx86"]
|
||||
[ext_resource type="Script" uid="uid://dxbst4jd731sx" path="res://animation_slice.gd" id="9_obj11"]
|
||||
|
||||
[node name="CustomDrawing" type="Control"]
|
||||
[node name="CustomDrawing" type="Control" unique_id=963888680]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -19,7 +19,7 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_rtndo")
|
||||
|
||||
[node name="TabContainer" type="TabContainer" parent="."]
|
||||
[node name="TabContainer" type="TabContainer" parent="." unique_id=1589194508]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
@@ -29,12 +29,12 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
current_tab = 0
|
||||
|
||||
[node name="Lines" type="Panel" parent="TabContainer"]
|
||||
[node name="Lines" type="Panel" parent="TabContainer" unique_id=296015393]
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_exx0l")
|
||||
metadata/_tab_index = 0
|
||||
|
||||
[node name="DrawLine" type="Label" parent="TabContainer/Lines"]
|
||||
[node name="DrawLine" type="Label" parent="TabContainer/Lines" unique_id=1856889571]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 48.0
|
||||
@@ -44,7 +44,7 @@ theme_override_colors/font_color = Color(0.501961, 1, 0.501961, 1)
|
||||
text = "draw_line()
|
||||
draw_dashed_line()"
|
||||
|
||||
[node name="DrawCircle" type="Label" parent="TabContainer/Lines"]
|
||||
[node name="DrawCircle" type="Label" parent="TabContainer/Lines" unique_id=548666699]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 154.0
|
||||
@@ -53,7 +53,7 @@ offset_bottom = 177.0
|
||||
theme_override_colors/font_color = Color(0.501961, 1, 0.501961, 1)
|
||||
text = "draw_circle()"
|
||||
|
||||
[node name="DrawArc" type="Label" parent="TabContainer/Lines"]
|
||||
[node name="DrawArc" type="Label" parent="TabContainer/Lines" unique_id=1494225085]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 264.0
|
||||
@@ -62,13 +62,13 @@ offset_bottom = 287.0
|
||||
theme_override_colors/font_color = Color(0.501961, 1, 0.501961, 1)
|
||||
text = "draw_arc()"
|
||||
|
||||
[node name="Rectangles" type="Panel" parent="TabContainer"]
|
||||
[node name="Rectangles" type="Panel" parent="TabContainer" unique_id=279393032]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
script = ExtResource("3_yrx86")
|
||||
metadata/_tab_index = 1
|
||||
|
||||
[node name="DrawRect" type="Label" parent="TabContainer/Rectangles"]
|
||||
[node name="DrawRect" type="Label" parent="TabContainer/Rectangles" unique_id=1307736687]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 48.0
|
||||
@@ -77,7 +77,7 @@ offset_bottom = 71.0
|
||||
theme_override_colors/font_color = Color(0.501961, 1, 0.501961, 1)
|
||||
text = "draw_rect()"
|
||||
|
||||
[node name="DrawStyleBox" type="Label" parent="TabContainer/Rectangles"]
|
||||
[node name="DrawStyleBox" type="Label" parent="TabContainer/Rectangles" unique_id=681418184]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 296.0
|
||||
@@ -85,13 +85,13 @@ offset_right = 153.0
|
||||
offset_bottom = 319.0
|
||||
text = "draw_style_box()"
|
||||
|
||||
[node name="Polygons" type="Panel" parent="TabContainer"]
|
||||
[node name="Polygons" type="Panel" parent="TabContainer" unique_id=716884485]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
script = ExtResource("4_obj11")
|
||||
metadata/_tab_index = 2
|
||||
|
||||
[node name="DrawPrimitive" type="Label" parent="TabContainer/Polygons"]
|
||||
[node name="DrawPrimitive" type="Label" parent="TabContainer/Polygons" unique_id=1835091148]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 48.0
|
||||
@@ -99,7 +99,7 @@ offset_right = 207.0
|
||||
offset_bottom = 97.0
|
||||
text = "draw_primitive()"
|
||||
|
||||
[node name="DrawPolygon" type="Label" parent="TabContainer/Polygons"]
|
||||
[node name="DrawPolygon" type="Label" parent="TabContainer/Polygons" unique_id=1462152479]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 168.0
|
||||
@@ -108,7 +108,7 @@ offset_bottom = 217.0
|
||||
text = "draw_polygon()
|
||||
draw_colored_polygon()"
|
||||
|
||||
[node name="DrawPolyline" type="Label" parent="TabContainer/Polygons"]
|
||||
[node name="DrawPolyline" type="Label" parent="TabContainer/Polygons" unique_id=318986606]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 264.0
|
||||
@@ -118,7 +118,7 @@ theme_override_colors/font_color = Color(0.501961, 1, 0.501961, 1)
|
||||
text = "draw_polyline()
|
||||
draw_polyline_colors()"
|
||||
|
||||
[node name="DrawMultiline" type="Label" parent="TabContainer/Polygons"]
|
||||
[node name="DrawMultiline" type="Label" parent="TabContainer/Polygons" unique_id=42519267]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 392.0
|
||||
@@ -128,13 +128,13 @@ theme_override_colors/font_color = Color(0.501961, 1, 0.501961, 1)
|
||||
text = "draw_multiline()
|
||||
draw_multiline_colors()"
|
||||
|
||||
[node name="Meshes" type="Panel" parent="TabContainer"]
|
||||
[node name="Meshes" type="Panel" parent="TabContainer" unique_id=1131697077]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
script = ExtResource("5_exx0l")
|
||||
metadata/_tab_index = 3
|
||||
|
||||
[node name="DrawMesh" type="Label" parent="TabContainer/Meshes"]
|
||||
[node name="DrawMesh" type="Label" parent="TabContainer/Meshes" unique_id=1438615787]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 48.0
|
||||
@@ -142,7 +142,7 @@ offset_right = 207.0
|
||||
offset_bottom = 97.0
|
||||
text = "draw_mesh()"
|
||||
|
||||
[node name="DrawMultiMesh" type="Label" parent="TabContainer/Meshes"]
|
||||
[node name="DrawMultiMesh" type="Label" parent="TabContainer/Meshes" unique_id=1730155188]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 208.0
|
||||
@@ -150,14 +150,14 @@ offset_right = 207.0
|
||||
offset_bottom = 257.0
|
||||
text = "draw_multimesh()"
|
||||
|
||||
[node name="Textures" type="Panel" parent="TabContainer"]
|
||||
[node name="Textures" type="Panel" parent="TabContainer" unique_id=759040210]
|
||||
visible = false
|
||||
texture_repeat = 2
|
||||
layout_mode = 2
|
||||
script = ExtResource("5_84cac")
|
||||
metadata/_tab_index = 4
|
||||
|
||||
[node name="DrawTexture" type="Label" parent="TabContainer/Textures"]
|
||||
[node name="DrawTexture" type="Label" parent="TabContainer/Textures" unique_id=1430127551]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 48.0
|
||||
@@ -166,7 +166,7 @@ offset_bottom = 97.0
|
||||
text = "draw_texture()
|
||||
draw_texture_rect()"
|
||||
|
||||
[node name="DrawTextureRectRegion" type="Label" parent="TabContainer/Textures"]
|
||||
[node name="DrawTextureRectRegion" type="Label" parent="TabContainer/Textures" unique_id=837438457]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 392.0
|
||||
@@ -174,13 +174,13 @@ offset_right = 231.0
|
||||
offset_bottom = 415.0
|
||||
text = "draw_texture_rect_region()"
|
||||
|
||||
[node name="Text" type="Panel" parent="TabContainer"]
|
||||
[node name="Text" type="Panel" parent="TabContainer" unique_id=201509104]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
script = ExtResource("6_4w081")
|
||||
metadata/_tab_index = 5
|
||||
|
||||
[node name="DrawChar" type="Label" parent="TabContainer/Text"]
|
||||
[node name="DrawChar" type="Label" parent="TabContainer/Text" unique_id=1860320291]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 48.0
|
||||
@@ -189,13 +189,13 @@ offset_bottom = 97.0
|
||||
text = "draw_char()
|
||||
draw_string()"
|
||||
|
||||
[node name="Animation" type="Panel" parent="TabContainer"]
|
||||
[node name="Animation" type="Panel" parent="TabContainer" unique_id=1599610818]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
script = ExtResource("8_yrx86")
|
||||
metadata/_tab_index = 6
|
||||
|
||||
[node name="DrawArcTime" type="Label" parent="TabContainer/Animation"]
|
||||
[node name="DrawArcTime" type="Label" parent="TabContainer/Animation" unique_id=1219883775]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 48.0
|
||||
@@ -205,7 +205,7 @@ theme_override_colors/font_color = Color(0.501961, 1, 0.501961, 1)
|
||||
text = "draw_arc()
|
||||
+ time variable"
|
||||
|
||||
[node name="DrawAnimationSlice" type="Label" parent="TabContainer/Animation"]
|
||||
[node name="DrawAnimationSlice" type="Label" parent="TabContainer/Animation" unique_id=203131812]
|
||||
layout_mode = 0
|
||||
offset_left = 24.0
|
||||
offset_top = 216.0
|
||||
@@ -213,7 +213,7 @@ offset_right = 201.0
|
||||
offset_bottom = 265.0
|
||||
text = "draw_animation_slice()"
|
||||
|
||||
[node name="AnimationSlice" type="Control" parent="TabContainer/Animation"]
|
||||
[node name="AnimationSlice" type="Control" parent="TabContainer/Animation" unique_id=2018092307]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
@@ -223,7 +223,7 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("9_obj11")
|
||||
|
||||
[node name="Options" type="HBoxContainer" parent="."]
|
||||
[node name="Options" type="HBoxContainer" parent="." unique_id=781515086]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
@@ -235,11 +235,11 @@ offset_bottom = -24.0
|
||||
grow_vertical = 0
|
||||
theme_override_constants/separation = 20
|
||||
|
||||
[node name="MSAA2DLabel" type="Label" parent="Options"]
|
||||
[node name="MSAA2DLabel" type="Label" parent="Options" unique_id=1619569982]
|
||||
layout_mode = 2
|
||||
text = "MSAA 2D"
|
||||
|
||||
[node name="MSAA2DOptionButton" type="OptionButton" parent="Options"]
|
||||
[node name="MSAA2DOptionButton" type="OptionButton" parent="Options" unique_id=41518632]
|
||||
layout_mode = 2
|
||||
selected = 0
|
||||
item_count = 4
|
||||
@@ -252,10 +252,10 @@ popup/item_2/id = 2
|
||||
popup/item_3/text = "8×"
|
||||
popup/item_3/id = 3
|
||||
|
||||
[node name="VSeparator" type="VSeparator" parent="Options"]
|
||||
[node name="VSeparator" type="VSeparator" parent="Options" unique_id=2012714849]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="DrawAntialiasing" type="CheckButton" parent="Options"]
|
||||
[node name="DrawAntialiasing" type="CheckButton" parent="Options" unique_id=85416285]
|
||||
layout_mode = 2
|
||||
tooltip_text = "Performs antialiasing by adding a feathered outline
|
||||
to lines that are drawn in 2D. This is generally faster to render
|
||||
|
||||
@@ -13,7 +13,7 @@ config_version=5
|
||||
config/name="Custom Drawing in 2D"
|
||||
config/description="A demo showing how to draw 2D elements in Godot without using nodes."
|
||||
run/main_scene="uid://btxwm0qudsn3t"
|
||||
config/features=PackedStringArray("4.5", "Mobile")
|
||||
config/features=PackedStringArray("4.6", "Mobile")
|
||||
run/low_processor_mode=true
|
||||
config/icon="res://icon.svg"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://b0efehuavobda"]
|
||||
[gd_scene format=3 uid="uid://b0efehuavobda"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c1g57034r2c0" path="res://hud.gd" id="1"]
|
||||
[ext_resource type="FontFile" uid="uid://bgv586r20ps8e" path="res://fonts/Xolonium-Regular.ttf" id="2_2jm3i"]
|
||||
@@ -9,10 +9,10 @@ action = &"start_game"
|
||||
[sub_resource type="Shortcut" id="4"]
|
||||
events = [SubResource("InputEventAction_fopy7")]
|
||||
|
||||
[node name="HUD" type="CanvasLayer"]
|
||||
[node name="HUD" type="CanvasLayer" unique_id=126421993]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="ScoreLabel" type="Label" parent="."]
|
||||
[node name="ScoreLabel" type="Label" parent="." unique_id=1314826100]
|
||||
anchors_preset = 10
|
||||
anchor_right = 1.0
|
||||
offset_bottom = 78.0
|
||||
@@ -22,7 +22,7 @@ theme_override_font_sizes/font_size = 60
|
||||
text = "0"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="MessageLabel" type="Label" parent="."]
|
||||
[node name="MessageLabel" type="Label" parent="." unique_id=1611528703]
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
@@ -37,7 +37,7 @@ text = "Dodge the
|
||||
Creeps"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="StartButton" type="Button" parent="."]
|
||||
[node name="StartButton" type="Button" parent="." unique_id=1561548516]
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
@@ -54,7 +54,7 @@ theme_override_font_sizes/font_size = 60
|
||||
shortcut = SubResource("4")
|
||||
text = "Start"
|
||||
|
||||
[node name="MessageTimer" type="Timer" parent="."]
|
||||
[node name="MessageTimer" type="Timer" parent="." unique_id=1675980570]
|
||||
one_shot = true
|
||||
|
||||
[connection signal="pressed" from="StartButton" to="." method="_on_StartButton_pressed"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://cao351pllxqpa"]
|
||||
[gd_scene format=3 uid="uid://cao351pllxqpa"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cypxpb8arjrqt" path="res://mob.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://dun74wipekpfq" path="res://art/enemyFlyingAlt_1.png" id="2"]
|
||||
@@ -48,20 +48,20 @@ animations = [{
|
||||
radius = 37.0
|
||||
height = 100.0
|
||||
|
||||
[node name="Mob" type="RigidBody2D" groups=["mobs"]]
|
||||
[node name="Mob" type="RigidBody2D" unique_id=371809901 groups=["mobs"]]
|
||||
collision_mask = 0
|
||||
gravity_scale = 0.0
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1998522389]
|
||||
scale = Vector2(0.75, 0.75)
|
||||
sprite_frames = SubResource("1")
|
||||
animation = &"walk"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1880423722]
|
||||
rotation = 1.5708
|
||||
shape = SubResource("2")
|
||||
|
||||
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
||||
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="." unique_id=959995349]
|
||||
|
||||
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=13 format=3 uid="uid://bwhlkliwp13p4"]
|
||||
[gd_scene format=3 uid="uid://bwhlkliwp13p4"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://6s0lxctks3qn" path="res://player.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://b2aofu01vxvea" path="res://art/playerGrey_walk1.png" id="2"]
|
||||
@@ -53,19 +53,19 @@ gravity = Vector3(0, 0, 0)
|
||||
scale_curve = SubResource("6")
|
||||
color_ramp = SubResource("4")
|
||||
|
||||
[node name="Player" type="Area2D"]
|
||||
[node name="Player" type="Area2D" unique_id=2141725708]
|
||||
z_index = 10
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1437394421]
|
||||
scale = Vector2(0.5, 0.5)
|
||||
sprite_frames = SubResource("1")
|
||||
animation = &"right"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1954506745]
|
||||
shape = SubResource("2")
|
||||
|
||||
[node name="Trail" type="GPUParticles2D" parent="."]
|
||||
[node name="Trail" type="GPUParticles2D" parent="." unique_id=1747300857]
|
||||
z_index = -1
|
||||
amount = 10
|
||||
texture = ExtResource("2")
|
||||
|
||||
@@ -19,7 +19,7 @@ tutorial in the documentation. For more details, consider
|
||||
following the tutorial in the documentation."
|
||||
config/tags=PackedStringArray("2d", "demo", "official")
|
||||
run/main_scene="res://main.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[display]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dpgskpm8nrjyt"]
|
||||
[gd_scene format=3 uid="uid://dpgskpm8nrjyt"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://brtb2376s322w" path="res://player/player.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://gewi7do50xix" path="res://player/player.png" id="2"]
|
||||
@@ -6,12 +6,12 @@
|
||||
[sub_resource type="RectangleShape2D" id="1"]
|
||||
size = Vector2(14, 14)
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
[node name="Player" type="CharacterBody2D" unique_id=591720271]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1731519573]
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=293105889]
|
||||
position = Vector2(-0.315559, 0.157784)
|
||||
shape = SubResource("1")
|
||||
|
||||
@@ -16,7 +16,7 @@ CharacterBody2D. The character moves around, is affected by moving
|
||||
platforms, can jump through one-way collision platforms, etc."
|
||||
config/tags=PackedStringArray("2d", "demo", "official", "tilemap")
|
||||
run/main_scene="res://world.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.png"
|
||||
|
||||
[debug]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=8 format=4 uid="uid://dwfnfhdnt8c6g"]
|
||||
[gd_scene format=4 uid="uid://dwfnfhdnt8c6g"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ddtguaos7uvsy" path="res://level/obstacle.png" id="2"]
|
||||
[ext_resource type="Script" uid="uid://bu8761rfem0qo" path="res://level/tile_map.gd" id="2_q8fhk"]
|
||||
@@ -19,30 +19,30 @@ sources/0 = SubResource("TileSetAtlasSource_vnjib")
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_a2gec"]
|
||||
size = Vector2(112, 48)
|
||||
|
||||
[node name="World" type="Node2D"]
|
||||
[node name="World" type="Node2D" unique_id=1017090301]
|
||||
|
||||
[node name="Ground" type="TileMapLayer" parent="."]
|
||||
[node name="Ground" type="TileMapLayer" parent="." unique_id=325209277]
|
||||
use_parent_material = true
|
||||
tile_map_data = PackedByteArray("AAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAkAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAsAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAA0AAAAAAAAAAAAAAA4AAAAAAAAAAAAAAA8AAAAAAAAAAAAAABAAAAAAAAAAAAAAABEAAAAAAAAAAAAAABIAAAAAAAAAAAAAABMAAAAAAAAAAAAAABQAAAAAAAAAAAAAABUAAAAAAAAAAAAAABYAAAAAAAAAAAAAABcAAAAAAAAAAAAAABgAAAAAAAAAAAAAABkAAAAAAAAAAAAAABoAAAAAAAAAAAAAABsAAAAAAAAAAAAAABwAAAAAAAAAAAAAAB0AAAAAAAAAAAAAAB4AAAAAAAAAAAABAAAAAAAAAAAAAAABAAEAAAAAAAAAAAABAAIAAAAAAAAAAAABAAMAAAAAAAAAAAABAAQAAAAAAAAAAAABAAUAAAAAAAAAAAABAAYAAAAAAAAAAAABAAcAAAAAAAAAAAABAAgAAAAAAAAAAAABAAkAAAAAAAAAAAABAAoAAAAAAAAAAAABAAsAAAAAAAAAAAABAAwAAAAAAAAAAAABAA0AAAAAAAAAAAABAA4AAAAAAAAAAAABAA8AAAAAAAAAAAABABAAAAAAAAAAAAABABEAAAAAAAAAAAABABIAAAAAAAAAAAABABMAAAAAAAAAAAABABQAAAAAAAAAAAABABUAAAAAAAAAAAABABYAAAAAAAAAAAABABcAAAAAAAAAAAABABgAAAAAAAAAAAABABkAAAAAAAAAAAABABoAAAAAAAAAAAABABsAAAAAAAAAAAABABwAAAAAAAAAAAABAB0AAAAAAAAAAAABAB4AAAAAAAAAAAACAAAAAAAAAAAAAAACAAEAAAAAAAAAAAACAB0AAAAAAAAAAAACAB4AAAAAAAAAAAADAAAAAAAAAAAAAAADAAEAAAAAAAAAAAADAB0AAAAAAAAAAAADAB4AAAAAAAAAAAAEAAAAAAAAAAAAAAAEAAEAAAAAAAAAAAAEAB0AAAAAAAAAAAAEAB4AAAAAAAAAAAAFAAAAAAAAAAAAAAAFAAEAAAAAAAAAAAAFAB0AAAAAAAAAAAAFAB4AAAAAAAAAAAAGAAAAAAAAAAAAAAAGAAEAAAAAAAAAAAAGAB0AAAAAAAAAAAAGAB4AAAAAAAAAAAAHAAAAAAAAAAAAAAAHAAEAAAAAAAAAAAAHAB0AAAAAAAAAAAAHAB4AAAAAAAAAAAAIAAAAAAAAAAAAAAAIAAEAAAAAAAAAAAAIAB0AAAAAAAAAAAAIAB4AAAAAAAAAAAAJAAAAAAAAAAAAAAAJAAEAAAAAAAAAAAAJAB0AAAAAAAAAAAAJAB4AAAAAAAAAAAAKAAAAAAAAAAAAAAAKAAEAAAAAAAAAAAAKAB0AAAAAAAAAAAAKAB4AAAAAAAAAAAALAAAAAAAAAAAAAAALAAEAAAAAAAAAAAALAB0AAAAAAAAAAAALAB4AAAAAAAAAAAAMAAAAAAAAAAAAAAAMAAEAAAAAAAAAAAAMAB0AAAAAAAAAAAAMAB4AAAAAAAAAAAANAAAAAAAAAAAAAAANAAEAAAAAAAAAAAANAB0AAAAAAAAAAAANAB4AAAAAAAAAAAAOAAAAAAAAAAAAAAAOAAEAAAAAAAAAAAAOAB0AAAAAAAAAAAAOAB4AAAAAAAAAAAAPAAAAAAAAAAAAAAAPAAEAAAAAAAAAAAAPAB0AAAAAAAAAAAAPAB4AAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAEAAAAAAAAAAAAQAB0AAAAAAAAAAAAQAB4AAAAAAAAAAAARAAAAAAAAAAAAAAARAAEAAAAAAAAAAAARAB0AAAAAAAAAAAARAB4AAAAAAAAAAAASAAAAAAAAAAAAAAASAAEAAAAAAAAAAAASAB0AAAAAAAAAAAASAB4AAAAAAAAAAAATAAAAAAAAAAAAAAATAAEAAAAAAAAAAAATAB0AAAAAAAAAAAATAB4AAAAAAAAAAAAUAAAAAAAAAAAAAAAUAAEAAAAAAAAAAAAUAB0AAAAAAAAAAAAUAB4AAAAAAAAAAAAVAAAAAAAAAAAAAAAVAAEAAAAAAAAAAAAVAB0AAAAAAAAAAAAVAB4AAAAAAAAAAAAWAAAAAAAAAAAAAAAWAAEAAAAAAAAAAAAWAB0AAAAAAAAAAAAWAB4AAAAAAAAAAAAXAAAAAAAAAAAAAAAXAAEAAAAAAAAAAAAXAB0AAAAAAAAAAAAXAB4AAAAAAAAAAAAYAAAAAAAAAAAAAAAYAAEAAAAAAAAAAAAYAB0AAAAAAAAAAAAYAB4AAAAAAAAAAAAZAAAAAAAAAAAAAAAZAAEAAAAAAAAAAAAZAB0AAAAAAAAAAAAZAB4AAAAAAAAAAAAaAAAAAAAAAAAAAAAaAAEAAAAAAAAAAAAaAB0AAAAAAAAAAAAaAB4AAAAAAAAAAAAbAAAAAAAAAAAAAAAbAAEAAAAAAAAAAAAbAB0AAAAAAAAAAAAbAB4AAAAAAAAAAAAcAAAAAAAAAAAAAAAcAAEAAAAAAAAAAAAcAB0AAAAAAAAAAAAcAB4AAAAAAAAAAAAdAAAAAAAAAAAAAAAdAAEAAAAAAAAAAAAdAB0AAAAAAAAAAAAdAB4AAAAAAAAAAAAeAAAAAAAAAAAAAAAeAAEAAAAAAAAAAAAeAB0AAAAAAAAAAAAeAB4AAAAAAAAAAAAfAAAAAAAAAAAAAAAfAAEAAAAAAAAAAAAfAAIAAAAAAAAAAAAfAAMAAAAAAAAAAAAfAAQAAAAAAAAAAAAfAAUAAAAAAAAAAAAfAAYAAAAAAAAAAAAfAAcAAAAAAAAAAAAfAAgAAAAAAAAAAAAfAAkAAAAAAAAAAAAfAAoAAAAAAAAAAAAfAAsAAAAAAAAAAAAfAAwAAAAAAAAAAAAfAA0AAAAAAAAAAAAfAA4AAAAAAAAAAAAfAA8AAAAAAAAAAAAfABAAAAAAAAAAAAAfABEAAAAAAAAAAAAfABIAAAAAAAAAAAAfABMAAAAAAAAAAAAfABQAAAAAAAAAAAAfABUAAAAAAAAAAAAfABYAAAAAAAAAAAAfABcAAAAAAAAAAAAfABgAAAAAAAAAAAAfABkAAAAAAAAAAAAfABoAAAAAAAAAAAAfABsAAAAAAAAAAAAfABwAAAAAAAAAAAAfAB0AAAAAAAAAAAAfAB4AAAAAAAAAAAAgAAAAAAAAAAAAAAAgAAEAAAAAAAAAAAAgAAIAAAAAAAAAAAAgAAMAAAAAAAAAAAAgAAQAAAAAAAAAAAAgAAUAAAAAAAAAAAAgAAYAAAAAAAAAAAAgAAcAAAAAAAAAAAAgAAgAAAAAAAAAAAAgAAkAAAAAAAAAAAAgAAoAAAAAAAAAAAAgAAsAAAAAAAAAAAAgAAwAAAAAAAAAAAAgAA0AAAAAAAAAAAAgAA4AAAAAAAAAAAAgAA8AAAAAAAAAAAAgABAAAAAAAAAAAAAgABEAAAAAAAAAAAAgABIAAAAAAAAAAAAgABMAAAAAAAAAAAAgABQAAAAAAAAAAAAgABUAAAAAAAAAAAAgABYAAAAAAAAAAAAgABcAAAAAAAAAAAAgABgAAAAAAAAAAAAgABkAAAAAAAAAAAAgABoAAAAAAAAAAAAgABsAAAAAAAAAAAAgABwAAAAAAAAAAAAgAB0AAAAAAAAAAAAgAB4AAAAAAAAAAAAOABgAAAAAAAAAAAAPABgAAAAAAAAAAAAQABgAAAAAAAAAAAARABgAAAAAAAAAAAASABgAAAAAAAAAAAATABgAAAAAAAAAAAAUABgAAAAAAAAAAAAUABcAAAAAAAAAAAAUABYAAAAAAAAAAAATABYAAAAAAAAAAAASABYAAAAAAAAAAAARABYAAAAAAAAAAAAQABYAAAAAAAAAAAAPABYAAAAAAAAAAAAOABYAAAAAAAAAAAAOABcAAAAAAAAAAAAPABcAAAAAAAAAAAAQABcAAAAAAAAAAAARABcAAAAAAAAAAAASABcAAAAAAAAAAAATABcAAAAAAAAAAAAOABkAAAAAAAAAAAAPABkAAAAAAAAAAAAQABkAAAAAAAAAAAARABkAAAAAAAAAAAASABkAAAAAAAAAAAATABkAAAAAAAAAAAAUABkAAAAAAAAAAAA=")
|
||||
tile_set = SubResource("TileSet_xqlka")
|
||||
|
||||
[node name="Secret" type="TileMapLayer" parent="."]
|
||||
[node name="Secret" type="TileMapLayer" parent="." unique_id=858515358]
|
||||
use_parent_material = true
|
||||
tile_map_data = PackedByteArray("AAAOABoAAAAAAAAAAAAOABsAAAAAAAAAAAAOABwAAAAAAAAAAAAPABoAAAAAAAAAAAAPABsAAAAAAAAAAAAPABwAAAAAAAAAAAAQABoAAAAAAAAAAAAQABsAAAAAAAAAAAAQABwAAAAAAAAAAAARABoAAAAAAAAAAAARABsAAAAAAAAAAAARABwAAAAAAAAAAAASABoAAAAAAAAAAAASABsAAAAAAAAAAAASABwAAAAAAAAAAAATABoAAAAAAAAAAAATABsAAAAAAAAAAAATABwAAAAAAAAAAAAUABoAAAAAAAAAAAAUABsAAAAAAAAAAAAUABwAAAAAAAAAAAA=")
|
||||
tile_set = SubResource("TileSet_xqlka")
|
||||
script = ExtResource("2_q8fhk")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=2056626234]
|
||||
offset = Vector2(265, 247)
|
||||
process_callback = 0
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("3")]
|
||||
[node name="Player" parent="." unique_id=660280818 instance=ExtResource("3")]
|
||||
position = Vector2(120, 456)
|
||||
|
||||
[node name="SecretDetector" type="Area2D" parent="."]
|
||||
[node name="SecretDetector" type="Area2D" parent="." unique_id=77084918]
|
||||
position = Vector2(280, 440)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="SecretDetector"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="SecretDetector" unique_id=2118218184]
|
||||
shape = SubResource("RectangleShape2D_a2gec")
|
||||
|
||||
[connection signal="body_entered" from="SecretDetector" to="Secret" method="_on_secret_detector_body_entered"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://c5wi3c5syuikd"]
|
||||
[gd_scene format=3 uid="uid://c5wi3c5syuikd"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dsqn0vre7npvu" path="res://player/Player.tscn" id="1"]
|
||||
[ext_resource type="FontFile" uid="uid://nv3lhuvgflbt" path="res://fonts/SourceCodePro-Bold.ttf" id="2_r1c5f"]
|
||||
@@ -31,24 +31,22 @@ _data = {
|
||||
&"walk": SubResource("3")
|
||||
}
|
||||
|
||||
[node name="Demo" type="Node"]
|
||||
[node name="Demo" type="Node" unique_id=742885506]
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1")]
|
||||
[node name="Player" parent="." unique_id=65917897 instance=ExtResource("1")]
|
||||
position = Vector2(640, 400)
|
||||
|
||||
[node name="StateMachine" parent="Player" index="0"]
|
||||
start_state = NodePath("Idle")
|
||||
|
||||
[node name="AnimationPlayer" parent="Player" index="1"]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_qbwwp")
|
||||
}
|
||||
libraries/ = SubResource("AnimationLibrary_qbwwp")
|
||||
|
||||
[node name="StateNameDisplayer" parent="Player" index="5"]
|
||||
physics_interpolation_mode = 1
|
||||
theme_override_fonts/font = ExtResource("2_r1c5f")
|
||||
|
||||
[node name="Explanations" type="RichTextLabel" parent="."]
|
||||
[node name="Explanations" type="RichTextLabel" parent="." unique_id=332991348]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
@@ -71,7 +69,7 @@ States are common in games. You can use the pattern to:
|
||||
|
||||
You can read more about States in the excellent Game Programming Patterns ebook."
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
[node name="Control" type="Control" parent="." unique_id=296280118]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -79,10 +77,10 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="StatesStackDiplayer" parent="Control" instance=ExtResource("3")]
|
||||
[node name="StatesStackDiplayer" parent="Control" unique_id=2047441621 instance=ExtResource("3")]
|
||||
layout_mode = 0
|
||||
|
||||
[node name="ControlsPanel" parent="Control" instance=ExtResource("4")]
|
||||
[node name="ControlsPanel" parent="Control" unique_id=82267724 instance=ExtResource("4")]
|
||||
layout_mode = 1
|
||||
|
||||
[editable path="Player"]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[gd_scene format=3 uid="uid://ywml2fct1qf5"]
|
||||
|
||||
[node name="ControlsPanel" type="Panel"]
|
||||
[node name="ControlsPanel" type="Panel" unique_id=584555512]
|
||||
anchors_preset = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
@@ -8,7 +8,7 @@ offset_left = -150.0
|
||||
offset_bottom = 171.0
|
||||
grow_horizontal = 0
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=1633547352]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
@@ -22,7 +22,7 @@ offset_bottom = 65.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Actions" type="Label" parent="HBoxContainer"]
|
||||
[node name="Actions" type="Label" parent="HBoxContainer" unique_id=413765679]
|
||||
layout_mode = 2
|
||||
text = "Move:
|
||||
Shoot:
|
||||
@@ -31,7 +31,7 @@ Stagger:
|
||||
Jump:
|
||||
Sprint:"
|
||||
|
||||
[node name="Keys" type="Label" parent="HBoxContainer"]
|
||||
[node name="Keys" type="Label" parent="HBoxContainer" unique_id=1033030160]
|
||||
layout_mode = 2
|
||||
text = "WASD
|
||||
R
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[gd_scene format=3 uid="uid://b2jd1klfmq7jp"]
|
||||
|
||||
[node name="Explanations" type="RichTextLabel"]
|
||||
[node name="Explanations" type="RichTextLabel" unique_id=478617066]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://b4j5pvcv4ksxw"]
|
||||
[gd_scene format=3 uid="uid://b4j5pvcv4ksxw"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://h4p2eq3snhjs" path="res://debug/states_stack_displayer.gd" id="1"]
|
||||
[ext_resource type="FontFile" uid="uid://nv3lhuvgflbt" path="res://fonts/SourceCodePro-Bold.ttf" id="2_58if7"]
|
||||
|
||||
[node name="StatesStackDiplayer" type="Panel"]
|
||||
[node name="StatesStackDiplayer" type="Panel" unique_id=848783196]
|
||||
offset_right = 210.0
|
||||
offset_bottom = 170.0
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="." unique_id=2084704318]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -16,16 +16,16 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Title" type="Label" parent="VBoxContainer"]
|
||||
[node name="Title" type="Label" parent="VBoxContainer" unique_id=548830269]
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("2_58if7")
|
||||
text = "StateStack"
|
||||
uppercase = true
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer" unique_id=444494024]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Numbers" type="Label" parent="VBoxContainer/HBoxContainer"]
|
||||
[node name="Numbers" type="Label" parent="VBoxContainer/HBoxContainer" unique_id=1957842927]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("2_58if7")
|
||||
@@ -33,7 +33,7 @@ text = "1.
|
||||
2."
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="States" type="Label" parent="VBoxContainer/HBoxContainer"]
|
||||
[node name="States" type="Label" parent="VBoxContainer/HBoxContainer" unique_id=1280356936]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("2_58if7")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=19 format=3 uid="uid://dsqn0vre7npvu"]
|
||||
[gd_scene format=3 uid="uid://dsqn0vre7npvu"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bctcyb2y6vuvd" path="res://player/player_controller.gd" id="1"]
|
||||
[ext_resource type="Script" uid="uid://c5dcvd5nvu0e0" path="res://player/player_state_machine.gd" id="2"]
|
||||
@@ -41,67 +41,65 @@ _data = {
|
||||
&"walk": SubResource("3")
|
||||
}
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
[node name="Player" type="CharacterBody2D" unique_id=36282354]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="StateMachine" type="Node" parent="."]
|
||||
[node name="StateMachine" type="Node" parent="." unique_id=352966517]
|
||||
script = ExtResource("2")
|
||||
|
||||
[node name="Idle" type="Node" parent="StateMachine"]
|
||||
[node name="Idle" type="Node" parent="StateMachine" unique_id=23509125]
|
||||
script = ExtResource("3")
|
||||
|
||||
[node name="Move" type="Node" parent="StateMachine"]
|
||||
[node name="Move" type="Node" parent="StateMachine" unique_id=1181324630]
|
||||
script = ExtResource("4")
|
||||
|
||||
[node name="Jump" type="Node" parent="StateMachine"]
|
||||
[node name="Jump" type="Node" parent="StateMachine" unique_id=1100846346]
|
||||
script = ExtResource("5")
|
||||
|
||||
[node name="Stagger" type="Node" parent="StateMachine"]
|
||||
[node name="Stagger" type="Node" parent="StateMachine" unique_id=1877601174]
|
||||
script = ExtResource("6")
|
||||
|
||||
[node name="Attack" type="Node" parent="StateMachine"]
|
||||
[node name="Attack" type="Node" parent="StateMachine" unique_id=656585786]
|
||||
script = ExtResource("7")
|
||||
|
||||
[node name="Die" type="Node" parent="StateMachine"]
|
||||
[node name="Die" type="Node" parent="StateMachine" unique_id=130975603]
|
||||
script = ExtResource("8")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_vi1hn")
|
||||
}
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=952173775]
|
||||
libraries/ = SubResource("AnimationLibrary_vi1hn")
|
||||
|
||||
[node name="Shadow" type="Sprite2D" parent="."]
|
||||
[node name="Shadow" type="Sprite2D" parent="." unique_id=548440157]
|
||||
self_modulate = Color(1, 1, 1, 0.361098)
|
||||
position = Vector2(0, -4)
|
||||
texture = ExtResource("9")
|
||||
|
||||
[node name="BodyPivot" type="Marker2D" parent="."]
|
||||
[node name="BodyPivot" type="Marker2D" parent="." unique_id=969108435]
|
||||
|
||||
[node name="Body" type="Sprite2D" parent="BodyPivot"]
|
||||
[node name="Body" type="Sprite2D" parent="BodyPivot" unique_id=1480506968]
|
||||
position = Vector2(0, -58)
|
||||
texture = ExtResource("10")
|
||||
|
||||
[node name="BulletSpawn" type="Node2D" parent="BodyPivot"]
|
||||
[node name="BulletSpawn" type="Node2D" parent="BodyPivot" unique_id=1506281386]
|
||||
position = Vector2(0, -58)
|
||||
script = ExtResource("11")
|
||||
|
||||
[node name="CooldownTimer" type="Timer" parent="BodyPivot/BulletSpawn"]
|
||||
[node name="CooldownTimer" type="Timer" parent="BodyPivot/BulletSpawn" unique_id=430476620]
|
||||
wait_time = 0.2
|
||||
one_shot = true
|
||||
|
||||
[node name="WeaponPivot" type="Marker2D" parent="BodyPivot"]
|
||||
[node name="WeaponPivot" type="Marker2D" parent="BodyPivot" unique_id=1470035703]
|
||||
position = Vector2(0, -58)
|
||||
script = ExtResource("12")
|
||||
|
||||
[node name="Offset" type="Marker2D" parent="BodyPivot/WeaponPivot"]
|
||||
[node name="Offset" type="Marker2D" parent="BodyPivot/WeaponPivot" unique_id=327354530]
|
||||
position = Vector2(110, 0)
|
||||
|
||||
[node name="Sword" parent="BodyPivot/WeaponPivot/Offset" instance=ExtResource("13")]
|
||||
[node name="Sword" parent="BodyPivot/WeaponPivot/Offset" unique_id=2042083530 instance=ExtResource("13")]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="." unique_id=1598865355]
|
||||
polygon = PackedVector2Array(-20, 0, -20, -20, 20, -20, 20, 0)
|
||||
|
||||
[node name="StateNameDisplayer" type="Label" parent="."]
|
||||
[node name="StateNameDisplayer" type="Label" parent="." unique_id=1046719461]
|
||||
offset_left = -109.0
|
||||
offset_top = -180.0
|
||||
offset_right = 110.0
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://73q3byvg30en"]
|
||||
[gd_scene format=3 uid="uid://73q3byvg30en"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b44c6s1shm5f7" path="res://player/bullet/bullet.gd" id="1"]
|
||||
|
||||
[sub_resource type="CircleShape2D" id="1"]
|
||||
radius = 12.0
|
||||
|
||||
[node name="Bullet" type="CharacterBody2D"]
|
||||
[node name="Bullet" type="CharacterBody2D" unique_id=1867664613]
|
||||
collision_layer = 2
|
||||
collision_mask = 2
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1954185328]
|
||||
shape = SubResource("1")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://bgy8u8c4ge6oo"]
|
||||
[gd_scene format=3 uid="uid://bgy8u8c4ge6oo"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dckk5itx6qlks" path="res://player/weapon/sword.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://2bnf3u5lm6at" path="res://player/weapon/sword.png" id="2"]
|
||||
@@ -229,22 +229,20 @@ _data = {
|
||||
&"idle": SubResource("5")
|
||||
}
|
||||
|
||||
[node name="Sword" type="Area2D"]
|
||||
[node name="Sword" type="Area2D" unique_id=196567730]
|
||||
collision_layer = 16
|
||||
collision_mask = 3
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_6cp3i")
|
||||
}
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=2072652438]
|
||||
libraries/ = SubResource("AnimationLibrary_6cp3i")
|
||||
|
||||
[node name="Sword" type="Sprite2D" parent="."]
|
||||
[node name="Sword" type="Sprite2D" parent="." unique_id=720318639]
|
||||
position = Vector2(4, 0)
|
||||
texture = ExtResource("2")
|
||||
offset = Vector2(67, 0)
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="." unique_id=789290787]
|
||||
polygon = PackedVector2Array(28.0001, -15.9999, 136, -15.9995, 160, 0, 136, 16.0005, 27.9999, 16.0001)
|
||||
|
||||
@@ -16,7 +16,7 @@ pattern in GDscript, including Hierarchical States, and a
|
||||
pushdown automaton."
|
||||
config/tags=PackedStringArray("2d", "ai", "demo", "official")
|
||||
run/main_scene="res://Demo.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[debug]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://b10wtqanipk5w"]
|
||||
[gd_scene format=3 uid="uid://b10wtqanipk5w"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cxjmb68vunhny" path="res://beach_cave.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://c3rttr7mrjqd1" path="res://ocean_beach.png" id="2"]
|
||||
@@ -15,10 +15,10 @@ glow_strength = 0.88
|
||||
glow_bloom = 0.08
|
||||
glow_blend_mode = 0
|
||||
|
||||
[node name="BeachCave" type="Node2D"]
|
||||
[node name="BeachCave" type="Node2D" unique_id=379183590]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Beach" type="Sprite2D" parent="."]
|
||||
[node name="Beach" type="Sprite2D" parent="." unique_id=529115765]
|
||||
modulate = Color(2, 2, 2, 1)
|
||||
self_modulate = Color(2, 2, 2, 1)
|
||||
texture = ExtResource("2")
|
||||
@@ -26,19 +26,19 @@ centered = false
|
||||
region_enabled = true
|
||||
region_rect = Rect2(0, 0, 3840, 720)
|
||||
|
||||
[node name="Cave" type="Sprite2D" parent="."]
|
||||
[node name="Cave" type="Sprite2D" parent="." unique_id=1890384977]
|
||||
self_modulate = Color(0.233166, 0.221219, 0.23582, 1)
|
||||
scale = Vector2(1.2, 1)
|
||||
texture = ExtResource("3")
|
||||
centered = false
|
||||
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1687056898]
|
||||
environment = SubResource("1")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=962517249]
|
||||
offset = Vector2(540, 360)
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
[node name="Label" type="Label" parent="." unique_id=211507946]
|
||||
visible = false
|
||||
offset_left = 18.0
|
||||
offset_top = 18.0
|
||||
|
||||
@@ -16,7 +16,7 @@ config/description="This showcases how to use glow in a 2D game via the WorldEnv
|
||||
Slide the cave image left and right to observe the glow effect at work."
|
||||
config/tags=PackedStringArray("2d", "demo", "official", "rendering")
|
||||
run/main_scene="res://beach_cave.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
run/name=""
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=3 format=4 uid="uid://4ug0kqe00j8g"]
|
||||
[gd_scene format=4 uid="uid://4ug0kqe00j8g"]
|
||||
|
||||
[ext_resource type="TileSet" uid="uid://bgao55br0duys" path="res://tileset.tres" id="1"]
|
||||
[ext_resource type="PackedScene" uid="uid://bhgyilxufjioq" path="res://troll.tscn" id="2"]
|
||||
|
||||
@@ -14,7 +14,7 @@ config/name="Hexagonal Game"
|
||||
config/description="Very simple demo showing a hexagonal TileMap and TileSet."
|
||||
config/tags=PackedStringArray("2d", "demo", "official", "tilemap")
|
||||
run/main_scene="res://map.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[debug]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_resource type="TileSet" load_steps=53 format=3 uid="uid://bgao55br0duys"]
|
||||
[gd_resource type="TileSet" format=3 uid="uid://bgao55br0duys"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c676gm02l437d" path="res://tiles/WWT-01.png" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bm256vrrnad84" path="res://tiles/WWT-02.png" id="2"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=27 format=3 uid="uid://b5yyj0xd7sch2"]
|
||||
[gd_scene format=3 uid="uid://b5yyj0xd7sch2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c676gm02l437d" path="res://tiles/WWT-01.png" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bm256vrrnad84" path="res://tiles/WWT-02.png" id="2"]
|
||||
@@ -27,133 +27,133 @@
|
||||
[ext_resource type="Texture2D" uid="uid://csgo1h7xwa1hk" path="res://tiles/WWT-25.png" id="25"]
|
||||
[ext_resource type="Texture2D" uid="uid://b2q1i506ov0re" path="res://tiles/WWT-26.png" id="26"]
|
||||
|
||||
[node name="TilesetEdit" type="Node2D"]
|
||||
[node name="TilesetEdit" type="Node2D" unique_id=551397301]
|
||||
|
||||
[node name="Tile1" type="Sprite2D" parent="."]
|
||||
[node name="Tile1" type="Sprite2D" parent="." unique_id=1404834857]
|
||||
texture = ExtResource("1")
|
||||
centered = false
|
||||
|
||||
[node name="Tile2" type="Sprite2D" parent="."]
|
||||
[node name="Tile2" type="Sprite2D" parent="." unique_id=1610794971]
|
||||
position = Vector2(128, 0)
|
||||
texture = ExtResource("2")
|
||||
centered = false
|
||||
|
||||
[node name="Tile3" type="Sprite2D" parent="."]
|
||||
[node name="Tile3" type="Sprite2D" parent="." unique_id=1146004634]
|
||||
position = Vector2(256, 0)
|
||||
texture = ExtResource("3")
|
||||
centered = false
|
||||
|
||||
[node name="Tile4" type="Sprite2D" parent="."]
|
||||
[node name="Tile4" type="Sprite2D" parent="." unique_id=1662948312]
|
||||
position = Vector2(384, 0)
|
||||
texture = ExtResource("4")
|
||||
centered = false
|
||||
|
||||
[node name="Tile5" type="Sprite2D" parent="."]
|
||||
[node name="Tile5" type="Sprite2D" parent="." unique_id=2112753587]
|
||||
position = Vector2(512, 0)
|
||||
texture = ExtResource("5")
|
||||
centered = false
|
||||
|
||||
[node name="Tile6" type="Sprite2D" parent="."]
|
||||
[node name="Tile6" type="Sprite2D" parent="." unique_id=1073631657]
|
||||
position = Vector2(640, 0)
|
||||
texture = ExtResource("6")
|
||||
centered = false
|
||||
|
||||
[node name="Tile7" type="Sprite2D" parent="."]
|
||||
[node name="Tile7" type="Sprite2D" parent="." unique_id=1472742455]
|
||||
position = Vector2(768, 0)
|
||||
texture = ExtResource("7")
|
||||
centered = false
|
||||
|
||||
[node name="Tile8" type="Sprite2D" parent="."]
|
||||
[node name="Tile8" type="Sprite2D" parent="." unique_id=1122984124]
|
||||
position = Vector2(896, 0)
|
||||
texture = ExtResource("8")
|
||||
centered = false
|
||||
|
||||
[node name="Tile9" type="Sprite2D" parent="."]
|
||||
[node name="Tile9" type="Sprite2D" parent="." unique_id=243782469]
|
||||
position = Vector2(1024, 0)
|
||||
texture = ExtResource("9")
|
||||
centered = false
|
||||
|
||||
[node name="Tile10" type="Sprite2D" parent="."]
|
||||
[node name="Tile10" type="Sprite2D" parent="." unique_id=205093274]
|
||||
position = Vector2(0, 128)
|
||||
texture = ExtResource("10")
|
||||
centered = false
|
||||
|
||||
[node name="Tile11" type="Sprite2D" parent="."]
|
||||
[node name="Tile11" type="Sprite2D" parent="." unique_id=1793261299]
|
||||
position = Vector2(128, 128)
|
||||
texture = ExtResource("11")
|
||||
centered = false
|
||||
|
||||
[node name="Tile12" type="Sprite2D" parent="."]
|
||||
[node name="Tile12" type="Sprite2D" parent="." unique_id=1719112291]
|
||||
position = Vector2(256, 128)
|
||||
texture = ExtResource("12")
|
||||
centered = false
|
||||
|
||||
[node name="Tile13" type="Sprite2D" parent="."]
|
||||
[node name="Tile13" type="Sprite2D" parent="." unique_id=1086206965]
|
||||
position = Vector2(384, 128)
|
||||
texture = ExtResource("13")
|
||||
centered = false
|
||||
|
||||
[node name="Tile14" type="Sprite2D" parent="."]
|
||||
[node name="Tile14" type="Sprite2D" parent="." unique_id=37686440]
|
||||
position = Vector2(512, 128)
|
||||
texture = ExtResource("14")
|
||||
centered = false
|
||||
|
||||
[node name="Tile15" type="Sprite2D" parent="."]
|
||||
[node name="Tile15" type="Sprite2D" parent="." unique_id=1213724522]
|
||||
position = Vector2(640, 128)
|
||||
texture = ExtResource("15")
|
||||
centered = false
|
||||
|
||||
[node name="Tile16" type="Sprite2D" parent="."]
|
||||
[node name="Tile16" type="Sprite2D" parent="." unique_id=920080895]
|
||||
position = Vector2(768, 128)
|
||||
texture = ExtResource("16")
|
||||
centered = false
|
||||
|
||||
[node name="Tile17" type="Sprite2D" parent="."]
|
||||
[node name="Tile17" type="Sprite2D" parent="." unique_id=1839005268]
|
||||
position = Vector2(896, 128)
|
||||
texture = ExtResource("17")
|
||||
centered = false
|
||||
|
||||
[node name="Tile18" type="Sprite2D" parent="."]
|
||||
[node name="Tile18" type="Sprite2D" parent="." unique_id=2071093748]
|
||||
position = Vector2(1024, 128)
|
||||
texture = ExtResource("18")
|
||||
centered = false
|
||||
|
||||
[node name="Tile19" type="Sprite2D" parent="."]
|
||||
[node name="Tile19" type="Sprite2D" parent="." unique_id=1800711984]
|
||||
position = Vector2(0, 256)
|
||||
texture = ExtResource("19")
|
||||
centered = false
|
||||
|
||||
[node name="Tile20" type="Sprite2D" parent="."]
|
||||
[node name="Tile20" type="Sprite2D" parent="." unique_id=1410662308]
|
||||
position = Vector2(128, 256)
|
||||
texture = ExtResource("20")
|
||||
centered = false
|
||||
|
||||
[node name="Tile21" type="Sprite2D" parent="."]
|
||||
[node name="Tile21" type="Sprite2D" parent="." unique_id=2111005597]
|
||||
position = Vector2(256, 256)
|
||||
texture = ExtResource("21")
|
||||
centered = false
|
||||
|
||||
[node name="Tile22" type="Sprite2D" parent="."]
|
||||
[node name="Tile22" type="Sprite2D" parent="." unique_id=1789413939]
|
||||
position = Vector2(384, 256)
|
||||
texture = ExtResource("22")
|
||||
centered = false
|
||||
|
||||
[node name="Tile23" type="Sprite2D" parent="."]
|
||||
[node name="Tile23" type="Sprite2D" parent="." unique_id=604386894]
|
||||
position = Vector2(512, 256)
|
||||
texture = ExtResource("23")
|
||||
centered = false
|
||||
|
||||
[node name="Tile24" type="Sprite2D" parent="."]
|
||||
[node name="Tile24" type="Sprite2D" parent="." unique_id=1269423847]
|
||||
position = Vector2(640, 256)
|
||||
texture = ExtResource("24")
|
||||
centered = false
|
||||
|
||||
[node name="Tile25" type="Sprite2D" parent="."]
|
||||
[node name="Tile25" type="Sprite2D" parent="." unique_id=15684424]
|
||||
position = Vector2(768, 256)
|
||||
texture = ExtResource("25")
|
||||
centered = false
|
||||
|
||||
[node name="Tile26" type="Sprite2D" parent="."]
|
||||
[node name="Tile26" type="Sprite2D" parent="." unique_id=260272888]
|
||||
position = Vector2(896, 256)
|
||||
texture = ExtResource("26")
|
||||
centered = false
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bhgyilxufjioq"]
|
||||
[gd_scene format=3 uid="uid://bhgyilxufjioq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://qcncmx710eij" path="res://troll.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://bhkphpfidntnn" path="res://troll.png" id="2"]
|
||||
@@ -6,13 +6,13 @@
|
||||
[sub_resource type="CircleShape2D" id="1"]
|
||||
radius = 16.0
|
||||
|
||||
[node name="Troll" type="CharacterBody2D"]
|
||||
[node name="Troll" type="CharacterBody2D" unique_id=842969520]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1483262846]
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Shadow" type="Sprite2D" parent="."]
|
||||
[node name="Shadow" type="Sprite2D" parent="." unique_id=966088251]
|
||||
modulate = Color(0, 0, 0, 0.501961)
|
||||
show_behind_parent = true
|
||||
position = Vector2(16.4422, 4.89438)
|
||||
@@ -20,9 +20,9 @@ scale = Vector2(0.794259, 1.04505)
|
||||
skew = 0.523599
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1494530205]
|
||||
position = Vector2(3.24216, 19.453)
|
||||
shape = SubResource("1")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=2145554253]
|
||||
process_callback = 0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://c4y4kia1qlvfw"]
|
||||
[gd_scene format=3 uid="uid://c4y4kia1qlvfw"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dfuiyhr2ww3i8" path="res://bowling_ball.png" id="1"]
|
||||
|
||||
@@ -8,11 +8,11 @@ bounce = 0.4
|
||||
[sub_resource type="CircleShape2D" id="2"]
|
||||
radius = 30.0
|
||||
|
||||
[node name="Ball" type="RigidBody2D"]
|
||||
[node name="Ball" type="RigidBody2D" unique_id=2060910552]
|
||||
physics_material_override = SubResource("1")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=137831841]
|
||||
texture = ExtResource("1")
|
||||
|
||||
[node name="Collision" type="CollisionShape2D" parent="."]
|
||||
[node name="Collision" type="CollisionShape2D" parent="." unique_id=301307609]
|
||||
shape = SubResource("2")
|
||||
|
||||
@@ -15,7 +15,7 @@ config/description="A demo showing how to use scene instancing to
|
||||
make many duplicates of the same object."
|
||||
config/tags=PackedStringArray("2d", "demo", "official")
|
||||
run/main_scene="res://scene_instancing.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[debug]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=13 format=3 uid="uid://cxilyufxrpxnl"]
|
||||
[gd_scene format=3 uid="uid://cxilyufxrpxnl"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ddixb3b1nv1lo" path="res://ball_factory.gd" id="1"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4y4kia1qlvfw" path="res://ball.tscn" id="2"]
|
||||
@@ -33,11 +33,11 @@ bounce = 0.4
|
||||
[sub_resource type="PhysicsMaterial" id="10"]
|
||||
bounce = 0.4
|
||||
|
||||
[node name="SceneInstancing" type="Node2D"]
|
||||
[node name="SceneInstancing" type="Node2D" unique_id=698894988]
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=32521740]
|
||||
|
||||
[node name="InfoLabel" type="Label" parent="CanvasLayer"]
|
||||
[node name="InfoLabel" type="Label" parent="CanvasLayer" unique_id=1519772637]
|
||||
offset_left = 16.0
|
||||
offset_top = 16.0
|
||||
offset_right = 370.0
|
||||
@@ -46,59 +46,59 @@ text = "Click the mouse to spawn a new Ball instance."
|
||||
horizontal_alignment = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="BallFactory" type="Node2D" parent="."]
|
||||
[node name="BallFactory" type="Node2D" parent="." unique_id=852567556]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Static" type="StaticBody2D" parent="."]
|
||||
[node name="Static" type="StaticBody2D" parent="." unique_id=715001484]
|
||||
position = Vector2(184, 32)
|
||||
|
||||
[node name="Collision" type="CollisionPolygon2D" parent="Static"]
|
||||
[node name="Collision" type="CollisionPolygon2D" parent="Static" unique_id=832813743]
|
||||
polygon = PackedVector2Array(8.68994, 22.1976, 50.4445, 556.656, 292.621, 501.54, 335.36, 550.855, 510.039, 563.135, 542.137, 526.368, 567.463, 515.822, 612.463, 506.822, 667.291, 495.079, 747.553, 553.575, 793.806, 6.70509, 802.465, 601.097, 4.43558, 596.186)
|
||||
|
||||
[node name="Polygon2D" type="Polygon2D" parent="Static"]
|
||||
[node name="Polygon2D" type="Polygon2D" parent="Static" unique_id=262151525]
|
||||
color = Color(1, 0.266667, 0.419608, 1)
|
||||
polygon = PackedVector2Array(8.68994, 22.1976, 50.4445, 556.656, 292.621, 501.54, 335.36, 550.855, 510.039, 563.135, 542.137, 526.368, 567.463, 515.822, 612.463, 506.822, 667.291, 495.079, 747.553, 553.575, 793.806, 6.70509, 802.465, 601.097, 4.43558, 596.186)
|
||||
|
||||
[node name="Ball1" parent="." instance=ExtResource("2")]
|
||||
[node name="Ball1" parent="." unique_id=2146276118 instance=ExtResource("2")]
|
||||
position = Vector2(407.823, 193.773)
|
||||
physics_material_override = SubResource("1")
|
||||
|
||||
[node name="Ball2" parent="." instance=ExtResource("2")]
|
||||
[node name="Ball2" parent="." unique_id=705490365 instance=ExtResource("2")]
|
||||
position = Vector2(572.078, 245.215)
|
||||
physics_material_override = SubResource("2")
|
||||
|
||||
[node name="Ball3" parent="." instance=ExtResource("2")]
|
||||
[node name="Ball3" parent="." unique_id=160663270 instance=ExtResource("2")]
|
||||
position = Vector2(623.52, 136.013)
|
||||
physics_material_override = SubResource("3")
|
||||
|
||||
[node name="Ball4" parent="." instance=ExtResource("2")]
|
||||
[node name="Ball4" parent="." unique_id=897982383 instance=ExtResource("2")]
|
||||
position = Vector2(419.555, 368.858)
|
||||
physics_material_override = SubResource("4")
|
||||
|
||||
[node name="Ball5" parent="." instance=ExtResource("2")]
|
||||
[node name="Ball5" parent="." unique_id=1865650190 instance=ExtResource("2")]
|
||||
position = Vector2(693.555, 394.858)
|
||||
physics_material_override = SubResource("5")
|
||||
|
||||
[node name="Ball6" parent="." instance=ExtResource("2")]
|
||||
[node name="Ball6" parent="." unique_id=418134803 instance=ExtResource("2")]
|
||||
position = Vector2(819.555, 179.858)
|
||||
physics_material_override = SubResource("6")
|
||||
|
||||
[node name="Ball7" parent="." instance=ExtResource("2")]
|
||||
[node name="Ball7" parent="." unique_id=658938548 instance=ExtResource("2")]
|
||||
position = Vector2(815.872, 357.88)
|
||||
physics_material_override = SubResource("7")
|
||||
|
||||
[node name="Ball8" parent="." instance=ExtResource("2")]
|
||||
[node name="Ball8" parent="." unique_id=1148313017 instance=ExtResource("2")]
|
||||
position = Vector2(713.97, 237.561)
|
||||
physics_material_override = SubResource("8")
|
||||
|
||||
[node name="Ball9" parent="." instance=ExtResource("2")]
|
||||
[node name="Ball9" parent="." unique_id=439490435 instance=ExtResource("2")]
|
||||
position = Vector2(285.489, 199.502)
|
||||
physics_material_override = SubResource("9")
|
||||
|
||||
[node name="Ball10" parent="." instance=ExtResource("2")]
|
||||
[node name="Ball10" parent="." unique_id=697590344 instance=ExtResource("2")]
|
||||
position = Vector2(327.756, 327.139)
|
||||
physics_material_override = SubResource("10")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=1262495056]
|
||||
offset = Vector2(576, 324)
|
||||
process_callback = 0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dp2x5g4hj7pr4"]
|
||||
[gd_scene format=3 uid="uid://dp2x5g4hj7pr4"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://sttueo0l1w48" path="res://decorations/bone_pile_1.png" id="1"]
|
||||
|
||||
@@ -6,15 +6,15 @@
|
||||
radius = 14.0
|
||||
height = 28.0
|
||||
|
||||
[node name="bone_pile" type="Node2D"]
|
||||
[node name="bone_pile" type="Node2D" unique_id=1991241999]
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=1377094608]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="StaticBody2D"]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="StaticBody2D" unique_id=357346286]
|
||||
position = Vector2(0, -14)
|
||||
texture = ExtResource("1")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=1516405146]
|
||||
position = Vector2(0, -15)
|
||||
rotation = 1.5708
|
||||
shape = SubResource("1")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dk8c87g7bh0gm"]
|
||||
[gd_scene format=3 uid="uid://dk8c87g7bh0gm"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dtvfgkt3dog1s" path="res://decorations/bone_pile_2.png" id="1"]
|
||||
|
||||
@@ -6,15 +6,15 @@
|
||||
radius = 13.0
|
||||
height = 26.0001
|
||||
|
||||
[node name="bone_pile" type="Node2D"]
|
||||
[node name="bone_pile" type="Node2D" unique_id=1445437365]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=76021398]
|
||||
position = Vector2(0, -13)
|
||||
texture = ExtResource("1")
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=808001291]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=600444089]
|
||||
position = Vector2(0, -13)
|
||||
rotation = 1.5708
|
||||
shape = SubResource("1")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://dcnxwmpd2mvee"]
|
||||
[gd_scene format=3 uid="uid://dcnxwmpd2mvee"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://hbxfkav62m0v" path="res://decorations/sparkle.png" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://cx7qbaoplh14p" path="res://decorations/candle.png" id="2"]
|
||||
@@ -54,14 +54,14 @@ height = 500
|
||||
fill = 1
|
||||
fill_from = Vector2(0.5, 0.5)
|
||||
|
||||
[node name="Node2D" type="Node2D"]
|
||||
[node name="Node2D" type="Node2D" unique_id=152161711]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=834534756]
|
||||
light_mask = 128
|
||||
position = Vector2(0, -11)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="glow" type="CPUParticles2D" parent="Sprite2D"]
|
||||
[node name="glow" type="CPUParticles2D" parent="Sprite2D" unique_id=1263627248]
|
||||
modulate = Color(1, 0.360784, 0.113725, 1)
|
||||
light_mask = 128
|
||||
position = Vector2(-13, -33.244)
|
||||
@@ -71,7 +71,7 @@ texture = ExtResource("4")
|
||||
lifetime = 0.8
|
||||
gravity = Vector2(0, 0)
|
||||
|
||||
[node name="Fire" type="CPUParticles2D" parent="Sprite2D"]
|
||||
[node name="Fire" type="CPUParticles2D" parent="Sprite2D" unique_id=1836616738]
|
||||
light_mask = 128
|
||||
material = SubResource("1")
|
||||
position = Vector2(-13, -35)
|
||||
@@ -82,7 +82,7 @@ lifetime = 0.8
|
||||
gravity = Vector2(0, 0)
|
||||
color_ramp = SubResource("2")
|
||||
|
||||
[node name="Sparkle" type="CPUParticles2D" parent="Sprite2D"]
|
||||
[node name="Sparkle" type="CPUParticles2D" parent="Sprite2D" unique_id=352269126]
|
||||
light_mask = 128
|
||||
material = SubResource("3")
|
||||
position = Vector2(-13, -35)
|
||||
@@ -95,7 +95,7 @@ gravity = Vector2(0, -80)
|
||||
scale_amount_curve = SubResource("4")
|
||||
color_ramp = SubResource("5")
|
||||
|
||||
[node name="flow front" type="CPUParticles2D" parent="Sprite2D"]
|
||||
[node name="flow front" type="CPUParticles2D" parent="Sprite2D" unique_id=609380400]
|
||||
modulate = Color(0.94902, 1, 0, 1)
|
||||
light_mask = 128
|
||||
position = Vector2(-13, -28.689)
|
||||
@@ -105,7 +105,7 @@ texture = ExtResource("4")
|
||||
lifetime = 0.8
|
||||
gravity = Vector2(0, 0)
|
||||
|
||||
[node name="Light2D2" type="PointLight2D" parent="."]
|
||||
[node name="Light2D2" type="PointLight2D" parent="." unique_id=1356916236]
|
||||
light_mask = 2
|
||||
position = Vector2(-15, -49)
|
||||
color = Color(1, 0.466667, 0.0352941, 1)
|
||||
@@ -114,7 +114,7 @@ range_item_cull_mask = 145
|
||||
shadow_item_cull_mask = 145
|
||||
texture = SubResource("9")
|
||||
|
||||
[node name="PointLight2D" type="PointLight2D" parent="."]
|
||||
[node name="PointLight2D" type="PointLight2D" parent="." unique_id=2051957996]
|
||||
light_mask = 2
|
||||
color = Color(0.709804, 0.388235, 0.313726, 1)
|
||||
range_item_cull_mask = 17
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dcdlnwc0r2w8b"]
|
||||
[gd_scene format=3 uid="uid://dcdlnwc0r2w8b"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b8upst6q7xxxn" path="res://decorations/coin_pile.png" id="1"]
|
||||
|
||||
@@ -6,15 +6,15 @@
|
||||
radius = 12.0
|
||||
height = 38.0
|
||||
|
||||
[node name="coin_pile" type="Node2D"]
|
||||
[node name="coin_pile" type="Node2D" unique_id=1845863717]
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=1208431408]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="StaticBody2D"]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="StaticBody2D" unique_id=1826568586]
|
||||
position = Vector2(0, -23)
|
||||
texture = ExtResource("1")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=1951407510]
|
||||
position = Vector2(0, -13)
|
||||
rotation = 1.5708
|
||||
shape = SubResource("1")
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bdb3ykgwo8b0x"]
|
||||
[gd_scene format=3 uid="uid://bdb3ykgwo8b0x"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b3li7sm3lvyuk" path="res://decorations/shadow_gradient.png" id="1"]
|
||||
|
||||
[node name="InternalShadow" type="Polygon2D"]
|
||||
[node name="InternalShadow" type="Polygon2D" unique_id=1147925220]
|
||||
color = Color(0.0705882, 0.0705882, 0.266667, 0.85098)
|
||||
texture = ExtResource("1")
|
||||
polygon = PackedVector2Array(-92, -289, -94, 1, 128, -1, 121, -295)
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://b0aw4v33tl2is"]
|
||||
[gd_scene format=3 uid="uid://b0aw4v33tl2is"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://x05uy8pp7sj3" path="res://decorations/vase_1.png" id="1"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="1"]
|
||||
radius = 9.0
|
||||
|
||||
[node name="Vase1" type="Node2D"]
|
||||
[node name="Vase1" type="Node2D" unique_id=443292833]
|
||||
y_sort_enabled = true
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=439131547]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="StaticBody2D"]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="StaticBody2D" unique_id=486135426]
|
||||
position = Vector2(0, -29)
|
||||
texture = ExtResource("1")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" unique_id=474395613]
|
||||
position = Vector2(0, -9)
|
||||
rotation = 1.5708
|
||||
shape = SubResource("1")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://oqod8dmpd7f6"]
|
||||
[gd_scene format=3 uid="uid://oqod8dmpd7f6"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bi18l6iy7jkou" path="res://decorations/vase_2.png" id="1"]
|
||||
|
||||
@@ -6,16 +6,16 @@
|
||||
radius = 9.0
|
||||
height = 18.0
|
||||
|
||||
[node name="vase2" type="Node2D"]
|
||||
[node name="vase2" type="Node2D" unique_id=37574998]
|
||||
y_sort_enabled = true
|
||||
|
||||
[node name="Area2D" type="StaticBody2D" parent="."]
|
||||
[node name="Area2D" type="StaticBody2D" parent="." unique_id=949737438]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Area2D"]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Area2D" unique_id=2122768971]
|
||||
position = Vector2(0, -20)
|
||||
texture = ExtResource("1")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D" unique_id=832897055]
|
||||
position = Vector2(0, -8)
|
||||
rotation = 1.5708
|
||||
shape = SubResource("1")
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=264 format=3 uid="uid://ipxyktw0t1p0"]
|
||||
[gd_scene format=3 uid="uid://ipxyktw0t1p0"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://clxu2bgvw8xe" path="res://player/goblin.png" id="1"]
|
||||
[ext_resource type="Script" uid="uid://cojxlmw1wb6qf" path="res://player/goblin.gd" id="2"]
|
||||
@@ -1894,31 +1894,31 @@ height = 14.0
|
||||
[sub_resource type="OccluderPolygon2D" id="661"]
|
||||
polygon = PackedVector2Array(16.25, 18.75, 18.75, 36.25, 15, 38.75, 6.25, 42.5, -5, 42.5, -13.75, 41.25, -18.75, 37.5, -15, 20)
|
||||
|
||||
[node name="Goblin" type="CharacterBody2D"]
|
||||
[node name="Goblin" type="CharacterBody2D" unique_id=1654130240]
|
||||
script = ExtResource("2")
|
||||
|
||||
[node name="Shadow" type="Sprite2D" parent="."]
|
||||
[node name="Shadow" type="Sprite2D" parent="." unique_id=1168527690]
|
||||
modulate = Color(0.129412, 0.0745098, 0.192157, 0.647059)
|
||||
position = Vector2(0, -0.406251)
|
||||
scale = Vector2(0.78125, 0.362305)
|
||||
texture = SubResource("663")
|
||||
|
||||
[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
|
||||
[node name="Sprite2D" type="AnimatedSprite2D" parent="." unique_id=289254656]
|
||||
position = Vector2(0, -35)
|
||||
scale = Vector2(0.8, 0.8)
|
||||
sprite_frames = SubResource("260")
|
||||
animation = &"front_idle"
|
||||
frame = 8
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1393437622]
|
||||
position = Vector2(0, -7)
|
||||
rotation = 1.5708
|
||||
shape = SubResource("1")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=483432850]
|
||||
process_callback = 0
|
||||
|
||||
[node name="LightOccluder2D" type="LightOccluder2D" parent="."]
|
||||
[node name="LightOccluder2D" type="LightOccluder2D" parent="." unique_id=431374245]
|
||||
visible = false
|
||||
light_mask = 16
|
||||
position = Vector2(0, -31)
|
||||
|
||||
@@ -17,7 +17,7 @@ A character can move around the level and will also slide around objects,
|
||||
as well as be occluded when standing in front or behind them."
|
||||
config/tags=PackedStringArray("2d", "demo", "official", "tilemap")
|
||||
run/main_scene="res://dungeon.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[display]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_resource type="TileSet" load_steps=7 format=3 uid="uid://rdmo3qcxjqg5"]
|
||||
[gd_resource type="TileSet" format=3 uid="uid://rdmo3qcxjqg5"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bj7j6gdvl1jj" path="res://tileset/isotiles.png" id="1"]
|
||||
|
||||
|
||||
@@ -1,60 +1,60 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://qxgews4py8yp"]
|
||||
[gd_scene format=3 uid="uid://qxgews4py8yp"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bj7j6gdvl1jj" path="res://tileset/isotiles.png" id="1"]
|
||||
|
||||
[sub_resource type="OccluderPolygon2D" id="2"]
|
||||
polygon = PackedVector2Array(0, -100, -67, -68, -66, 0, -1, 33, 66, -2, 64, -67)
|
||||
|
||||
[node name="TilesetEdit" type="Node2D"]
|
||||
[node name="TilesetEdit" type="Node2D" unique_id=1399384024]
|
||||
|
||||
[node name="Base" type="Sprite2D" parent="."]
|
||||
[node name="Base" type="Sprite2D" parent="." unique_id=313797467]
|
||||
texture = ExtResource("1")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(28, 75, 135, 105)
|
||||
|
||||
[node name="Base2" type="Sprite2D" parent="."]
|
||||
[node name="Base2" type="Sprite2D" parent="." unique_id=1693454201]
|
||||
position = Vector2(200, 0)
|
||||
texture = ExtResource("1")
|
||||
region_enabled = true
|
||||
region_rect = Rect2(221, 75, 135, 105)
|
||||
|
||||
[node name="Wall" type="Sprite2D" parent="."]
|
||||
[node name="Wall" type="Sprite2D" parent="." unique_id=1070826937]
|
||||
position = Vector2(400, 0)
|
||||
texture = ExtResource("1")
|
||||
offset = Vector2(0, -32)
|
||||
region_enabled = true
|
||||
region_rect = Rect2(28, 220, 140, 140)
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="Wall"]
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="Wall" unique_id=1053947889]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Wall/StaticBody2D"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Wall/StaticBody2D" unique_id=1096251174]
|
||||
polygon = PackedVector2Array(-64, 0, 0, 32, 64, 0, 0, -32)
|
||||
|
||||
[node name="LightOccluder2D" type="LightOccluder2D" parent="Wall"]
|
||||
[node name="LightOccluder2D" type="LightOccluder2D" parent="Wall" unique_id=1875105255]
|
||||
visible = false
|
||||
occluder = SubResource("2")
|
||||
|
||||
[node name="Column" type="Sprite2D" parent="."]
|
||||
[node name="Column" type="Sprite2D" parent="." unique_id=1814225264]
|
||||
position = Vector2(600, 0)
|
||||
texture = ExtResource("1")
|
||||
offset = Vector2(0, -32)
|
||||
region_enabled = true
|
||||
region_rect = Rect2(259, 241, 55, 95)
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="Column"]
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="Column" unique_id=2102021300]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Column/StaticBody2D"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Column/StaticBody2D" unique_id=1524976731]
|
||||
position = Vector2(2, 0)
|
||||
polygon = PackedVector2Array(-27, 7, -14, 20, 16, 20, 28, 4, 24, -12, 10, -22, -10, -22, -24, -12)
|
||||
|
||||
[node name="Door1" type="Sprite2D" parent="."]
|
||||
[node name="Door1" type="Sprite2D" parent="." unique_id=59609893]
|
||||
position = Vector2(800, 0)
|
||||
texture = ExtResource("1")
|
||||
offset = Vector2(0, -25)
|
||||
region_enabled = true
|
||||
region_rect = Rect2(54, 426, 85, 110)
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="Door1"]
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="Door1" unique_id=506867471]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Door1/StaticBody2D"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Door1/StaticBody2D" unique_id=1441398967]
|
||||
polygon = PackedVector2Array(-24, 24, 40, -8, 24, -16, -40, 16)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bnkypsa1y5kkm"]
|
||||
[gd_scene format=3 uid="uid://bnkypsa1y5kkm"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b7gpodncyf28i" path="res://player/player.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://ck6funocmdo8x" path="res://player/player.png" id="2"]
|
||||
@@ -6,12 +6,12 @@
|
||||
[sub_resource type="RectangleShape2D" id="1"]
|
||||
size = Vector2(14, 14)
|
||||
|
||||
[node name="Player" type="CharacterBody2D"]
|
||||
[node name="Player" type="CharacterBody2D" unique_id=214142706]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=766118642]
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=209433601]
|
||||
position = Vector2(-0.315559, 0.157784)
|
||||
shape = SubResource("1")
|
||||
|
||||
@@ -16,7 +16,7 @@ CharacterBody2D. The character moves around, is affected by moving
|
||||
platforms, can jump through one-way collision platforms, etc."
|
||||
config/tags=PackedStringArray("2d", "demo", "official", "physics")
|
||||
run/main_scene="res://world.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[debug]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=23 format=4 uid="uid://dps4rsxnxkola"]
|
||||
[gd_scene format=4 uid="uid://dps4rsxnxkola"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b5mf7fqidii2e" path="res://level/obstacle.png" id="2"]
|
||||
[ext_resource type="PackedScene" uid="uid://bnkypsa1y5kkm" path="res://player/player.tscn" id="3"]
|
||||
@@ -138,9 +138,7 @@ texture = ExtResource("2")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="MovingPlatform1" unique_id=819335427]
|
||||
callback_mode_process = 0
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_2v3oa")
|
||||
}
|
||||
libraries/ = SubResource("AnimationLibrary_2v3oa")
|
||||
autoplay = &"leftright"
|
||||
|
||||
[node name="MovingPlatform2" type="CharacterBody2D" parent="." unique_id=371998953]
|
||||
@@ -155,9 +153,7 @@ texture = ExtResource("2")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="MovingPlatform2" unique_id=477725899]
|
||||
callback_mode_process = 0
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_j555p")
|
||||
}
|
||||
libraries/ = SubResource("AnimationLibrary_j555p")
|
||||
autoplay = &"updown"
|
||||
|
||||
[node name="Princess" type="Area2D" parent="." unique_id=1787518294]
|
||||
@@ -237,9 +233,7 @@ texture = ExtResource("5")
|
||||
shape = SubResource("9")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="Circle" unique_id=443487502]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_gijtf")
|
||||
}
|
||||
libraries/ = SubResource("AnimationLibrary_gijtf")
|
||||
autoplay = &"turn"
|
||||
|
||||
[node name="BoxSprite" type="Sprite2D" parent="Circle" unique_id=38061651]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://61j61cp3lk64"]
|
||||
[gd_scene format=3 uid="uid://61j61cp3lk64"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b5hx4sl4x5thk" path="res://burano.png" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://dt8eicdcewdxi" path="res://splat.png" id="2"]
|
||||
@@ -51,7 +51,7 @@ _data = {
|
||||
&"maskmotion": SubResource("2")
|
||||
}
|
||||
|
||||
[node name="Lightmask" type="Control"]
|
||||
[node name="Lightmask" type="Control" unique_id=1408048694]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -61,7 +61,7 @@ grow_vertical = 2
|
||||
size_flags_horizontal = 2
|
||||
size_flags_vertical = 2
|
||||
|
||||
[node name="Burano" type="TextureRect" parent="."]
|
||||
[node name="Burano" type="TextureRect" parent="." unique_id=1877224100]
|
||||
material = SubResource("1")
|
||||
layout_mode = 0
|
||||
offset_right = 800.0
|
||||
@@ -70,26 +70,24 @@ size_flags_horizontal = 2
|
||||
size_flags_vertical = 2
|
||||
texture = ExtResource("1")
|
||||
|
||||
[node name="Light1" type="PointLight2D" parent="."]
|
||||
[node name="Light1" type="PointLight2D" parent="." unique_id=837697525]
|
||||
position = Vector2(601.028, 242.639)
|
||||
blend_mode = 2
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Light2" type="PointLight2D" parent="."]
|
||||
[node name="Light2" type="PointLight2D" parent="." unique_id=1425584049]
|
||||
position = Vector2(196.528, 185.139)
|
||||
blend_mode = 2
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Light3" type="PointLight2D" parent="."]
|
||||
[node name="Light3" type="PointLight2D" parent="." unique_id=1824720667]
|
||||
position = Vector2(442.528, 411.139)
|
||||
blend_mode = 2
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_co4us")
|
||||
}
|
||||
autoplay = "maskmotion"
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1290885634]
|
||||
libraries/ = SubResource("AnimationLibrary_co4us")
|
||||
autoplay = &"maskmotion"
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=1484775239]
|
||||
offset = Vector2(576, 324)
|
||||
|
||||
@@ -14,7 +14,7 @@ config/name="2D Lights as Mask"
|
||||
config/description="Example of how to use 2D lights to mask objects on screen."
|
||||
config/tags=PackedStringArray("2d", "demo", "official", "rendering")
|
||||
run/main_scene="res://lightmask.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[debug]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=25 format=3 uid="uid://dha5rly2wayoo"]
|
||||
[gd_scene format=3 uid="uid://dha5rly2wayoo"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cuhgt2axv0f3f" path="res://background.png" id="1"]
|
||||
[ext_resource type="Script" uid="uid://wphiu4cg3awx" path="res://light_shadows.gd" id="1_7xjm7"]
|
||||
@@ -145,34 +145,34 @@ _data = {
|
||||
&"rotate_directional_light": SubResource("Animation_rgbru")
|
||||
}
|
||||
|
||||
[node name="LightShadows" type="Node2D"]
|
||||
[node name="LightShadows" type="Node2D" unique_id=1450865752]
|
||||
script = ExtResource("1_7xjm7")
|
||||
|
||||
[node name="Ambient" type="CanvasModulate" parent="."]
|
||||
[node name="Ambient" type="CanvasModulate" parent="." unique_id=1857545450]
|
||||
color = Color(0.27451, 0.27451, 0.27451, 1)
|
||||
|
||||
[node name="Background" type="Sprite2D" parent="."]
|
||||
[node name="Background" type="Sprite2D" parent="." unique_id=901198437]
|
||||
position = Vector2(401.251, 302.906)
|
||||
scale = Vector2(128, 128)
|
||||
texture = ExtResource("1")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=2099294050]
|
||||
position = Vector2(295.886, 216.938)
|
||||
texture = SubResource("CanvasTexture_hlulo")
|
||||
|
||||
[node name="Label" type="Label" parent="Sprite2D"]
|
||||
[node name="Label" type="Label" parent="Sprite2D" unique_id=1472545779]
|
||||
offset_left = -22.5563
|
||||
offset_top = 64.6982
|
||||
offset_right = 24.4437
|
||||
offset_bottom = 78.6982
|
||||
text = "Normal"
|
||||
|
||||
[node name="SpriteFlipX" type="Sprite2D" parent="."]
|
||||
[node name="SpriteFlipX" type="Sprite2D" parent="." unique_id=1697591140]
|
||||
position = Vector2(543.341, 220.255)
|
||||
scale = Vector2(-1, 1)
|
||||
texture = SubResource("CanvasTexture_hea5a")
|
||||
|
||||
[node name="Label" type="Label" parent="SpriteFlipX"]
|
||||
[node name="Label" type="Label" parent="SpriteFlipX" unique_id=892481899]
|
||||
offset_left = 22.5564
|
||||
offset_top = 66.0347
|
||||
offset_right = 69.5564
|
||||
@@ -180,12 +180,12 @@ offset_bottom = 80.0347
|
||||
scale = Vector2(-1, 1)
|
||||
text = "Flip X"
|
||||
|
||||
[node name="SpriteFlipY" type="Sprite2D" parent="."]
|
||||
[node name="SpriteFlipY" type="Sprite2D" parent="." unique_id=1907677096]
|
||||
position = Vector2(291.308, 423.369)
|
||||
scale = Vector2(1, -1)
|
||||
texture = SubResource("CanvasTexture_hc1ic")
|
||||
|
||||
[node name="Label" type="Label" parent="SpriteFlipY"]
|
||||
[node name="Label" type="Label" parent="SpriteFlipY" unique_id=1105421898]
|
||||
offset_left = -23.3056
|
||||
offset_top = -67.2446
|
||||
offset_right = 23.6944
|
||||
@@ -193,12 +193,12 @@ offset_bottom = -53.2446
|
||||
scale = Vector2(1, -1)
|
||||
text = "Flip Y"
|
||||
|
||||
[node name="SpriteFlipXY" type="Sprite2D" parent="."]
|
||||
[node name="SpriteFlipXY" type="Sprite2D" parent="." unique_id=1810899640]
|
||||
position = Vector2(542.081, 424.696)
|
||||
scale = Vector2(-1, -1)
|
||||
texture = SubResource("CanvasTexture_l1r6i")
|
||||
|
||||
[node name="Label" type="Label" parent="SpriteFlipXY"]
|
||||
[node name="Label" type="Label" parent="SpriteFlipXY" unique_id=1655398057]
|
||||
offset_left = 23.9495
|
||||
offset_top = -67.5714
|
||||
offset_right = 81.9495
|
||||
@@ -206,114 +206,114 @@ offset_bottom = -53.5714
|
||||
scale = Vector2(-1, -1)
|
||||
text = "Flip X + Y"
|
||||
|
||||
[node name="Casters" type="Node2D" parent="."]
|
||||
[node name="Casters" type="Node2D" parent="." unique_id=1806787265]
|
||||
|
||||
[node name="ShadowCaster" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster" type="Sprite2D" parent="Casters" unique_id=1552426692]
|
||||
position = Vector2(95.2909, 85.3186)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster"]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster" unique_id=2064632237]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="ShadowCaster1" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster1" type="Sprite2D" parent="Casters" unique_id=748613098]
|
||||
position = Vector2(200.291, 313.319)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster1"]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster1" unique_id=1777736079]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="ShadowCaster2" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster2" type="Sprite2D" parent="Casters" unique_id=148662866]
|
||||
position = Vector2(76.2909, 405.319)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster2"]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster2" unique_id=1002459552]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="ShadowCaster3" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster3" type="Sprite2D" parent="Casters" unique_id=1666183493]
|
||||
position = Vector2(408.291, 226.319)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster3"]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster3" unique_id=387579871]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="ShadowCaster4" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster4" type="Sprite2D" parent="Casters" unique_id=107658079]
|
||||
position = Vector2(239.291, 48.3186)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster4"]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster4" unique_id=851001750]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="ShadowCaster5" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster5" type="Sprite2D" parent="Casters" unique_id=1845727129]
|
||||
position = Vector2(140.291, 561.319)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster5"]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster5" unique_id=1749934497]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="ShadowCaster6" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster6" type="Sprite2D" parent="Casters" unique_id=1722997327]
|
||||
position = Vector2(392.291, 499.319)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster6"]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster6" unique_id=1140717077]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="ShadowCaster7" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster7" type="Sprite2D" parent="Casters" unique_id=1131255035]
|
||||
position = Vector2(735.291, 552.319)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster7"]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster7" unique_id=980750440]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="ShadowCaster8" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster8" type="Sprite2D" parent="Casters" unique_id=73905054]
|
||||
position = Vector2(661.291, 371.319)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster8"]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster8" unique_id=34136949]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="ShadowCaster9" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster9" type="Sprite2D" parent="Casters" unique_id=1412673352]
|
||||
position = Vector2(567.291, 574.319)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="occluder" type="LightOccluder2D" parent="Casters/ShadowCaster9"]
|
||||
[node name="occluder" type="LightOccluder2D" parent="Casters/ShadowCaster9" unique_id=158506431]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="ShadowCaster10" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster10" type="Sprite2D" parent="Casters" unique_id=747161401]
|
||||
position = Vector2(420.291, 350.319)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster10"]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster10" unique_id=1633093291]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="ShadowCaster11" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster11" type="Sprite2D" parent="Casters" unique_id=498637831]
|
||||
position = Vector2(463.291, 106.319)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster11"]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster11" unique_id=541387909]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="ShadowCaster12" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster12" type="Sprite2D" parent="Casters" unique_id=990880149]
|
||||
position = Vector2(621.291, 78.3186)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster12"]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster12" unique_id=1650360437]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="ShadowCaster13" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster13" type="Sprite2D" parent="Casters" unique_id=1786366564]
|
||||
position = Vector2(761.291, 240.319)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster13"]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster13" unique_id=1663925535]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="ShadowCaster14" type="Sprite2D" parent="Casters"]
|
||||
[node name="ShadowCaster14" type="Sprite2D" parent="Casters" unique_id=1190149946]
|
||||
position = Vector2(771.291, 29.3186)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster14"]
|
||||
[node name="Occluder" type="LightOccluder2D" parent="Casters/ShadowCaster14" unique_id=1425474671]
|
||||
occluder = SubResource("1")
|
||||
|
||||
[node name="RedLight" type="PointLight2D" parent="." groups=["point_light"]]
|
||||
[node name="RedLight" type="PointLight2D" parent="." unique_id=666928835 groups=["point_light"]]
|
||||
position = Vector2(159.289, 452.441)
|
||||
color = Color(1, 0.446392, 0.0576646, 1)
|
||||
shadow_enabled = true
|
||||
@@ -322,17 +322,15 @@ shadow_filter_smooth = 1.2
|
||||
texture = ExtResource("3")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="Blob" type="Sprite2D" parent="RedLight"]
|
||||
[node name="Blob" type="Sprite2D" parent="RedLight" unique_id=1598536800]
|
||||
material = SubResource("2")
|
||||
texture = ExtResource("4")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="RedLight"]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_wawvy")
|
||||
}
|
||||
autoplay = "motion"
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="RedLight" unique_id=1544874647]
|
||||
libraries/ = SubResource("AnimationLibrary_wawvy")
|
||||
autoplay = &"motion"
|
||||
|
||||
[node name="GreenLight" type="PointLight2D" parent="." groups=["point_light"]]
|
||||
[node name="GreenLight" type="PointLight2D" parent="." unique_id=1067665922 groups=["point_light"]]
|
||||
position = Vector2(753.756, 314.336)
|
||||
color = Color(0.49247, 0.878537, 0.409146, 1)
|
||||
shadow_enabled = true
|
||||
@@ -341,17 +339,15 @@ shadow_filter_smooth = 1.2
|
||||
texture = ExtResource("3")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="Blob" type="Sprite2D" parent="GreenLight"]
|
||||
[node name="Blob" type="Sprite2D" parent="GreenLight" unique_id=24331322]
|
||||
material = SubResource("5")
|
||||
texture = ExtResource("4")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="GreenLight"]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_fig6v")
|
||||
}
|
||||
autoplay = "m2"
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="GreenLight" unique_id=713325113]
|
||||
libraries/ = SubResource("AnimationLibrary_fig6v")
|
||||
autoplay = &"m2"
|
||||
|
||||
[node name="BlueLight" type="PointLight2D" parent="." groups=["point_light"]]
|
||||
[node name="BlueLight" type="PointLight2D" parent="." unique_id=1658646722 groups=["point_light"]]
|
||||
position = Vector2(692.078, 29.8849)
|
||||
color = Color(0.396752, 0.446392, 0.929792, 1)
|
||||
shadow_enabled = true
|
||||
@@ -360,22 +356,20 @@ shadow_filter_smooth = 1.2
|
||||
texture = ExtResource("3")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="Blob" type="Sprite2D" parent="BlueLight"]
|
||||
[node name="Blob" type="Sprite2D" parent="BlueLight" unique_id=1781052220]
|
||||
material = SubResource("6")
|
||||
texture = ExtResource("4")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="BlueLight"]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_kfxj1")
|
||||
}
|
||||
autoplay = "motion3"
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="BlueLight" unique_id=27559080]
|
||||
libraries/ = SubResource("AnimationLibrary_kfxj1")
|
||||
autoplay = &"motion3"
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=1371897210]
|
||||
offset = Vector2(400, 300)
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=1595714517]
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer"]
|
||||
[node name="Label" type="Label" parent="CanvasLayer" unique_id=1998157018]
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
@@ -391,14 +385,12 @@ P: Toggle point lights
|
||||
S: Cycle directional light shadow quality
|
||||
H: Cycle point light shadow quality"
|
||||
|
||||
[node name="DirectionalLight2D" type="DirectionalLight2D" parent="."]
|
||||
[node name="DirectionalLight2D" type="DirectionalLight2D" parent="." unique_id=2038201018]
|
||||
visible = false
|
||||
shadow_enabled = true
|
||||
shadow_filter = 1
|
||||
shadow_filter_smooth = 1.2
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_6bket")
|
||||
}
|
||||
autoplay = "rotate_directional_light"
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1365752527]
|
||||
libraries/ = SubResource("AnimationLibrary_6bket")
|
||||
autoplay = &"rotate_directional_light"
|
||||
|
||||
@@ -15,7 +15,7 @@ config/description="Simple demo of 2D lights and shadows,
|
||||
using PointLight2D and LightOccluder2D."
|
||||
config/tags=PackedStringArray("2d", "demo", "official", "rendering")
|
||||
run/main_scene="res://light_shadows.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[debug]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dtk37bqfg52j2"]
|
||||
[gd_scene format=3 uid="uid://dtk37bqfg52j2"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c2oftqchfmxop" path="res://character.gd" id="1_8uimh"]
|
||||
[ext_resource type="Texture2D" uid="uid://co8echxekeijn" path="res://character.png" id="1_rmg12"]
|
||||
@@ -7,16 +7,16 @@
|
||||
radius = 7.0
|
||||
height = 22.0
|
||||
|
||||
[node name="Character" type="CharacterBody2D"]
|
||||
[node name="Character" type="CharacterBody2D" unique_id=1949511325]
|
||||
script = ExtResource("1_8uimh")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1335179560]
|
||||
position = Vector2(0, -3)
|
||||
scale = Vector2(0.3, 0.3)
|
||||
texture = ExtResource("1_rmg12")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1762303660]
|
||||
position = Vector2(0, -3)
|
||||
shape = SubResource("CapsuleShape2D_20ukx")
|
||||
|
||||
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
|
||||
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="." unique_id=675175429]
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://rovdpj5fi8ob"]
|
||||
[gd_scene format=3 uid="uid://rovdpj5fi8ob"]
|
||||
|
||||
[ext_resource type="NavigationPolygon" uid="uid://prlt4stfk6uh" path="res://navigation_polygon.res" id="2_lph0a"]
|
||||
[ext_resource type="Texture2D" uid="uid://duf88ucnma25" path="res://map.png" id="2_nxfkp"]
|
||||
[ext_resource type="PackedScene" uid="uid://dtk37bqfg52j2" path="res://character.tscn" id="4_n6iop"]
|
||||
|
||||
[node name="Navigation" type="Node2D"]
|
||||
[node name="Navigation" type="Node2D" unique_id=1444399706]
|
||||
|
||||
[node name="Map" type="Sprite2D" parent="."]
|
||||
[node name="Map" type="Sprite2D" parent="." unique_id=1721392170]
|
||||
z_index = -1
|
||||
position = Vector2(400, 302)
|
||||
texture = ExtResource("2_nxfkp")
|
||||
|
||||
[node name="NavigationRegion2D" type="NavigationRegion2D" parent="."]
|
||||
[node name="NavigationRegion2D" type="NavigationRegion2D" parent="." unique_id=569654025]
|
||||
navigation_polygon = ExtResource("2_lph0a")
|
||||
|
||||
[node name="Character" parent="." instance=ExtResource("4_n6iop")]
|
||||
[node name="Character" parent="." unique_id=1518369061 instance=ExtResource("4_n6iop")]
|
||||
position = Vector2(211, 141)
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=684009061]
|
||||
offset = Vector2(400, 324)
|
||||
process_callback = 0
|
||||
|
||||
Binary file not shown.
@@ -16,7 +16,7 @@ NavigationPolygonInstance node. It uses the 2D navigation API to request
|
||||
a path between two points, and then traverses the resulting path."
|
||||
config/tags=PackedStringArray("2d", "ai", "demo", "official")
|
||||
run/main_scene="res://navigation.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[debug]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=10 format=4 uid="uid://ymeqwdbiylr1"]
|
||||
[gd_scene format=4 uid="uid://ymeqwdbiylr1"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d3xv0tylpjj3d" path="res://sprites/space.png" id="1_2jdkd"]
|
||||
[ext_resource type="TileSet" uid="uid://daneaou22xgt2" path="res://tileset/tileset.tres" id="2_aylbj"]
|
||||
@@ -22,22 +22,22 @@ point_count = 3
|
||||
offsets = PackedFloat32Array(0, 0.692737, 1)
|
||||
colors = PackedColorArray(1, 0.893555, 0, 1, 0.265625, 1, 0.490903, 1, 0.0154343, 0.688679, 0.987793, 1)
|
||||
|
||||
[node name="Game" type="Node2D"]
|
||||
[node name="Game" type="Node2D" unique_id=1630765438]
|
||||
|
||||
[node name="Background" type="Sprite2D" parent="."]
|
||||
[node name="Background" type="Sprite2D" parent="." unique_id=1607876727]
|
||||
texture = ExtResource("1_2jdkd")
|
||||
offset = Vector2(576, 324)
|
||||
|
||||
[node name="TileMapLayer" type="TileMapLayer" parent="."]
|
||||
[node name="TileMapLayer" type="TileMapLayer" parent="." unique_id=1862814924]
|
||||
tile_map_data = PackedByteArray("AAABAAEAAAAAAAAAAAAFAAEAAAAAAAAAAAAJAAEAAAAAAAAAAAAOAAEAAAAAAAAAAAAJAAMAAAAAAAAAAAAKAAMAAAAAAAAAAAALAAMAAAAAAAAAAAAIAAMAAAAAAAAAAAAHAAMAAAAAAAAAAAAGAAMAAAAAAAAAAAADAAQAAAAAAAAAAAACAAQAAAAAAAAAAAABAAQAAAAAAAAAAAADAAUAAAAAAAAAAAADAAYAAAAAAAAAAAAEAAYAAAAAAAAAAAAFAAYAAAAAAAAAAAAGAAYAAAAAAAAAAAABAAgAAAAAAAAAAAACAAgAAAAAAAAAAAADAAgAAAAAAAAAAAAEAAgAAAAAAAAAAAAFAAgAAAAAAAAAAAAGAAgAAAAAAAAAAAAHAAgAAAAAAAAAAAAIAAgAAAAAAAAAAAAJAAgAAAAAAAAAAAAJAAcAAAAAAAAAAAAKAAYAAAAAAAAAAAALAAYAAAAAAAAAAAAMAAYAAAAAAAAAAAAPAAcAAAAAAAAAAAAPAAYAAAAAAAAAAAAPAAUAAAAAAAAAAAAPAAQAAAAAAAAAAAAQAAMAAAAAAAAAAAANAAQAAAAAAAAAAAA=")
|
||||
tile_set = ExtResource("2_aylbj")
|
||||
script = ExtResource("3_taaih")
|
||||
|
||||
[node name="Character" type="Marker2D" parent="."]
|
||||
[node name="Character" type="Marker2D" parent="." unique_id=137178209]
|
||||
position = Vector2(32, 32)
|
||||
script = ExtResource("4_ticbk")
|
||||
|
||||
[node name="CPUParticles2D" type="CPUParticles2D" parent="Character"]
|
||||
[node name="CPUParticles2D" type="CPUParticles2D" parent="Character" unique_id=1482266482]
|
||||
material = SubResource("1")
|
||||
position = Vector2(-20, 0)
|
||||
rotation = 1.5708
|
||||
@@ -53,10 +53,10 @@ initial_velocity_max = 50.0
|
||||
scale_amount_curve = SubResource("2")
|
||||
color_ramp = SubResource("3")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Character"]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Character" unique_id=1698622878]
|
||||
position = Vector2(7, 0)
|
||||
texture = ExtResource("6_b3lcn")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=630037047]
|
||||
offset = Vector2(576, 324)
|
||||
process_callback = 0
|
||||
|
||||
@@ -15,7 +15,7 @@ config/description="This is an example of using AStarGrid2D for navigation in 2D
|
||||
complete with Steering Behaviors in order to smooth the movement out."
|
||||
config/tags=PackedStringArray("2d", "ai", "demo", "official", "tilemap")
|
||||
run/main_scene="res://game.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[debug]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_resource type="TileSet" load_steps=3 format=3 uid="uid://daneaou22xgt2"]
|
||||
[gd_resource type="TileSet" format=3 uid="uid://daneaou22xgt2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://vth848yxuxba" path="res://tileset/tilesheet.png" id="1_th3tw"]
|
||||
|
||||
|
||||
@@ -1,32 +1,32 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://b3lu6ldhoxd3w"]
|
||||
[gd_scene format=3 uid="uid://b3lu6ldhoxd3w"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ch8mb4cgm22pr" path="res://navmesh_chunks_demo_2d.gd" id="1_d68tl"]
|
||||
|
||||
[node name="NavMeshChunksDemo2D" type="Node2D"]
|
||||
[node name="NavMeshChunksDemo2D" type="Node2D" unique_id=1736121566]
|
||||
script = ExtResource("1_d68tl")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=165566592]
|
||||
position = Vector2(960, 540)
|
||||
zoom = Vector2(0.8, 0.8)
|
||||
|
||||
[node name="ParseRootNode" type="Node2D" parent="."]
|
||||
[node name="ParseRootNode" type="Node2D" parent="." unique_id=608637523]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="ParseRootNode"]
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="ParseRootNode" unique_id=41823938]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="ParseRootNode/StaticBody2D"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="ParseRootNode/StaticBody2D" unique_id=642420042]
|
||||
polygon = PackedVector2Array(244, 147, 636, 155, 376, 391, 460, 655, 804, 795, 756, 971, 484, 839, 308, 963, 132, 811, 128, 559)
|
||||
|
||||
[node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="ParseRootNode/StaticBody2D"]
|
||||
[node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="ParseRootNode/StaticBody2D" unique_id=1594370659]
|
||||
polygon = PackedVector2Array(1312, 207, 1596, 91, 1832, 175, 1739, 926, 1562, 796, 1508, 935, 1184, 811, 1324, 533, 1499, 599, 1684, 511, 1596, 322)
|
||||
|
||||
[node name="CollisionPolygon2D3" type="CollisionPolygon2D" parent="ParseRootNode/StaticBody2D"]
|
||||
[node name="CollisionPolygon2D3" type="CollisionPolygon2D" parent="ParseRootNode/StaticBody2D" unique_id=1974977717]
|
||||
polygon = PackedVector2Array(661, 339, 943, 397, 1112, 178, 1172, 443, 960, 639, 700, 579)
|
||||
|
||||
[node name="DebugPaths" type="Node2D" parent="."]
|
||||
[node name="DebugPaths" type="Node2D" parent="." unique_id=1209970173]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="PathDebugCorridorFunnel" type="NavigationAgent2D" parent="DebugPaths"]
|
||||
[node name="PathDebugCorridorFunnel" type="NavigationAgent2D" parent="DebugPaths" unique_id=1641663623]
|
||||
unique_name_in_owner = true
|
||||
debug_enabled = true
|
||||
debug_use_custom = true
|
||||
@@ -34,7 +34,7 @@ debug_path_custom_color = Color(1, 0, 1, 1)
|
||||
debug_path_custom_point_size = 10.0
|
||||
debug_path_custom_line_width = 4.0
|
||||
|
||||
[node name="PathDebugEdgeCentered" type="NavigationAgent2D" parent="DebugPaths"]
|
||||
[node name="PathDebugEdgeCentered" type="NavigationAgent2D" parent="DebugPaths" unique_id=676470834]
|
||||
unique_name_in_owner = true
|
||||
path_postprocessing = 1
|
||||
debug_enabled = true
|
||||
@@ -43,7 +43,7 @@ debug_path_custom_color = Color(1, 1, 0, 1)
|
||||
debug_path_custom_point_size = 10.0
|
||||
debug_path_custom_line_width = 4.0
|
||||
|
||||
[node name="PathDebugNoPostProcessing" type="NavigationAgent2D" parent="DebugPaths"]
|
||||
[node name="PathDebugNoPostProcessing" type="NavigationAgent2D" parent="DebugPaths" unique_id=602836575]
|
||||
unique_name_in_owner = true
|
||||
path_postprocessing = 2
|
||||
debug_enabled = true
|
||||
@@ -52,72 +52,72 @@ debug_path_custom_color = Color(1, 0, 0, 1)
|
||||
debug_path_custom_point_size = 10.0
|
||||
debug_path_custom_line_width = 4.0
|
||||
|
||||
[node name="ChunksContainer" type="Node2D" parent="."]
|
||||
[node name="ChunksContainer" type="Node2D" parent="." unique_id=424349731]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=2003636414]
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="CanvasLayer"]
|
||||
[node name="PanelContainer" type="PanelContainer" parent="CanvasLayer" unique_id=642782821]
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/PanelContainer"]
|
||||
[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/PanelContainer" unique_id=1429008141]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 15
|
||||
theme_override_constants/margin_top = 15
|
||||
theme_override_constants/margin_right = 15
|
||||
theme_override_constants/margin_bottom = 15
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/PanelContainer/MarginContainer"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/PanelContainer/MarginContainer" unique_id=1679193395]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
[node name="Label" type="Label" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer" unique_id=353493237]
|
||||
layout_mode = 2
|
||||
text = "Use mouse cursor to set path start position"
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer" unique_id=692966944]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer" unique_id=771132555]
|
||||
custom_minimum_size = Vector2(128, 8)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
color = Color(1, 0, 1, 1)
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer"]
|
||||
[node name="Label" type="Label" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer" unique_id=1431910639]
|
||||
layout_mode = 2
|
||||
text = "Path corridor-funnel"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
[node name="HBoxContainer2" type="HBoxContainer" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer" unique_id=1741713304]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
|
||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2" unique_id=1278102531]
|
||||
custom_minimum_size = Vector2(128, 8)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
color = Color(1, 1, 0, 1)
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2"]
|
||||
[node name="Label" type="Label" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer2" unique_id=907106113]
|
||||
layout_mode = 2
|
||||
text = "Path edge-centered"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="HBoxContainer3" type="HBoxContainer" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer"]
|
||||
[node name="HBoxContainer3" type="HBoxContainer" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer" unique_id=263072552]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer3"]
|
||||
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer3" unique_id=1363926704]
|
||||
custom_minimum_size = Vector2(128, 8)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
color = Color(1, 0, 0, 1)
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer3"]
|
||||
[node name="Label" type="Label" parent="CanvasLayer/PanelContainer/MarginContainer/VBoxContainer/HBoxContainer3" unique_id=1163207902]
|
||||
layout_mode = 2
|
||||
text = "Path no post-processing"
|
||||
horizontal_alignment = 1
|
||||
|
||||
@@ -13,7 +13,7 @@ config_version=5
|
||||
config/name="Navigation Mesh Chunks 2D"
|
||||
config/tags=PackedStringArray("2d", "ai", "demo", "official")
|
||||
run/main_scene="res://navmesh_chunks_demo_2d.tscn"
|
||||
config/features=PackedStringArray("4.5", "GL Compatibility")
|
||||
config/features=PackedStringArray("4.6", "GL Compatibility")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[display]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=72 format=3 uid="uid://ogcwmabk7x24"]
|
||||
[gd_scene format=3 uid="uid://ogcwmabk7x24"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dkl7yvfg3ivr3" path="res://fire_particle.png" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://u86xc5c6mawi" path="res://smoke_particle.png" id="2"]
|
||||
@@ -10,10 +10,6 @@
|
||||
[sub_resource type="Environment" id="Environment_y7usk"]
|
||||
background_mode = 3
|
||||
glow_levels/1 = 1.0
|
||||
glow_levels/2 = 0.8
|
||||
glow_levels/3 = 0.4
|
||||
glow_levels/4 = 0.1
|
||||
glow_levels/5 = 0.0
|
||||
glow_blend_mode = 0
|
||||
glow_hdr_threshold = 0.01
|
||||
|
||||
@@ -455,13 +451,13 @@ _data = {
|
||||
&"move_particles": SubResource("Animation_bl3q0")
|
||||
}
|
||||
|
||||
[node name="GPUParticles3D" type="WorldEnvironment"]
|
||||
[node name="GPUParticles3D" type="WorldEnvironment" unique_id=1481111802]
|
||||
environment = SubResource("Environment_y7usk")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=1579716303]
|
||||
offset = Vector2(576, 324)
|
||||
|
||||
[node name="Fire" type="GPUParticles2D" parent="." groups=["trailable_particles"]]
|
||||
[node name="Fire" type="GPUParticles2D" parent="." unique_id=1697815287 groups=["trailable_particles"]]
|
||||
texture_filter = 4
|
||||
material = SubResource("1")
|
||||
position = Vector2(122, 486)
|
||||
@@ -470,7 +466,7 @@ texture = ExtResource("1")
|
||||
preprocess = 1.0
|
||||
process_material = SubResource("6")
|
||||
|
||||
[node name="Flipbook" type="GPUParticles2D" parent="."]
|
||||
[node name="Flipbook" type="GPUParticles2D" parent="." unique_id=1078792387]
|
||||
texture_filter = 4
|
||||
material = SubResource("7")
|
||||
position = Vector2(392, 215)
|
||||
@@ -482,7 +478,7 @@ fixed_fps = 0
|
||||
interpolate = false
|
||||
process_material = SubResource("8")
|
||||
|
||||
[node name="Smoke" type="GPUParticles2D" parent="."]
|
||||
[node name="Smoke" type="GPUParticles2D" parent="." unique_id=457682977]
|
||||
texture_filter = 4
|
||||
position = Vector2(362, 478)
|
||||
amount = 32
|
||||
@@ -491,7 +487,7 @@ lifetime = 2.0
|
||||
preprocess = 2.0
|
||||
process_material = SubResource("11")
|
||||
|
||||
[node name="Magic" type="GPUParticles2D" parent="." groups=["trailable_particles"]]
|
||||
[node name="Magic" type="GPUParticles2D" parent="." unique_id=542400257 groups=["trailable_particles"]]
|
||||
texture_filter = 4
|
||||
material = SubResource("12")
|
||||
position = Vector2(554, 494)
|
||||
@@ -502,15 +498,15 @@ preprocess = 2.0
|
||||
randomness = 1.0
|
||||
process_material = SubResource("19")
|
||||
|
||||
[node name="Path2D" type="Path2D" parent="."]
|
||||
[node name="Path2D" type="Path2D" parent="." unique_id=980802270]
|
||||
position = Vector2(0, 88)
|
||||
curve = SubResource("Curve2D_oi78q")
|
||||
|
||||
[node name="PathFollow2D" type="PathFollow2D" parent="Path2D"]
|
||||
[node name="PathFollow2D" type="PathFollow2D" parent="Path2D" unique_id=719852354]
|
||||
position = Vector2(558, 265)
|
||||
rotation = 0.79609853
|
||||
|
||||
[node name="MagicGlobalCoordinates" type="GPUParticles2D" parent="Path2D/PathFollow2D" groups=["trailable_particles"]]
|
||||
[node name="MagicGlobalCoordinates" type="GPUParticles2D" parent="Path2D/PathFollow2D" unique_id=760384775 groups=["trailable_particles"]]
|
||||
texture_filter = 4
|
||||
material = SubResource("12")
|
||||
amount = 200
|
||||
@@ -519,7 +515,7 @@ lifetime = 2.0
|
||||
randomness = 1.0
|
||||
process_material = SubResource("ParticleProcessMaterial_fcq72")
|
||||
|
||||
[node name="Explosion" type="GPUParticles2D" parent="." groups=["trailable_particles"]]
|
||||
[node name="Explosion" type="GPUParticles2D" parent="." unique_id=1760398929 groups=["trailable_particles"]]
|
||||
texture_filter = 4
|
||||
material = SubResource("20")
|
||||
position = Vector2(613.467, 182.62)
|
||||
@@ -531,7 +527,7 @@ preprocess = 2.0
|
||||
explosiveness = 1.0
|
||||
process_material = SubResource("27")
|
||||
|
||||
[node name="EmitMask" type="GPUParticles2D" parent="."]
|
||||
[node name="EmitMask" type="GPUParticles2D" parent="." unique_id=231870245]
|
||||
texture_filter = 4
|
||||
position = Vector2(41, -68)
|
||||
amount = 180
|
||||
@@ -541,7 +537,7 @@ preprocess = 0.2
|
||||
visibility_rect = Rect2(26.0055, 90.0015, 199.176, 95.0445)
|
||||
process_material = SubResource("28")
|
||||
|
||||
[node name="OutlineMask" type="GPUParticles2D" parent="."]
|
||||
[node name="OutlineMask" type="GPUParticles2D" parent="." unique_id=1685515130]
|
||||
texture_filter = 4
|
||||
position = Vector2(42, 52)
|
||||
amount = 180
|
||||
@@ -551,7 +547,7 @@ preprocess = 0.2
|
||||
visibility_rect = Rect2(26.0055, 90.0015, 199.176, 95.0445)
|
||||
process_material = SubResource("29")
|
||||
|
||||
[node name="DirectionMask" type="GPUParticles2D" parent="."]
|
||||
[node name="DirectionMask" type="GPUParticles2D" parent="." unique_id=1811128386]
|
||||
texture_filter = 4
|
||||
position = Vector2(40, 180)
|
||||
amount = 180
|
||||
@@ -561,7 +557,7 @@ preprocess = 0.2
|
||||
visibility_rect = Rect2(26.0055, 90.0015, 199.176, 95.0445)
|
||||
process_material = SubResource("30")
|
||||
|
||||
[node name="ParticlesWithSubemitter" type="GPUParticles2D" parent="." groups=["trailable_particles"]]
|
||||
[node name="ParticlesWithSubemitter" type="GPUParticles2D" parent="." unique_id=844963883 groups=["trailable_particles"]]
|
||||
texture_filter = 4
|
||||
position = Vector2(864, 272)
|
||||
amount = 15
|
||||
@@ -570,7 +566,7 @@ texture = ExtResource("3")
|
||||
preprocess = 1.0
|
||||
process_material = SubResource("ParticleProcessMaterial_jod5w")
|
||||
|
||||
[node name="SubemitterEndSparks" type="GPUParticles2D" parent="ParticlesWithSubemitter" groups=["trailable_particles"]]
|
||||
[node name="SubemitterEndSparks" type="GPUParticles2D" parent="ParticlesWithSubemitter" unique_id=1809416433 groups=["trailable_particles"]]
|
||||
texture_filter = 4
|
||||
position = Vector2(-808, -248)
|
||||
emitting = false
|
||||
@@ -580,7 +576,7 @@ texture = ExtResource("3")
|
||||
preprocess = 1.0
|
||||
process_material = SubResource("ParticleProcessMaterial_m4hvx")
|
||||
|
||||
[node name="SubemitterEndSmoke" type="GPUParticles2D" parent="ParticlesWithSubemitter/SubemitterEndSparks" groups=["trailable_particles"]]
|
||||
[node name="SubemitterEndSmoke" type="GPUParticles2D" parent="ParticlesWithSubemitter/SubemitterEndSparks" unique_id=1376292031 groups=["trailable_particles"]]
|
||||
texture_filter = 4
|
||||
emitting = false
|
||||
amount = 15
|
||||
@@ -590,7 +586,7 @@ fixed_fps = 0
|
||||
interpolate = false
|
||||
process_material = SubResource("ParticleProcessMaterial_mcjyg")
|
||||
|
||||
[node name="Turbulence" type="GPUParticles2D" parent="."]
|
||||
[node name="Turbulence" type="GPUParticles2D" parent="." unique_id=2719059]
|
||||
position = Vector2(768, 328)
|
||||
amount = 50
|
||||
texture = ExtResource("2")
|
||||
@@ -600,7 +596,7 @@ fixed_fps = 0
|
||||
interpolate = false
|
||||
process_material = SubResource("ParticleProcessMaterial_vbd24")
|
||||
|
||||
[node name="CollisionRigid" type="GPUParticles2D" parent="." groups=["trailable_particles"]]
|
||||
[node name="CollisionRigid" type="GPUParticles2D" parent="." unique_id=1893426144 groups=["trailable_particles"]]
|
||||
texture_filter = 4
|
||||
position = Vector2(978, 331)
|
||||
amount = 150
|
||||
@@ -613,7 +609,7 @@ collision_base_size = 0.5
|
||||
trail_sections = 16
|
||||
process_material = SubResource("ParticleProcessMaterial_mg3j6")
|
||||
|
||||
[node name="CollisionHideOnContact" type="GPUParticles2D" parent="." groups=["trailable_particles"]]
|
||||
[node name="CollisionHideOnContact" type="GPUParticles2D" parent="." unique_id=643012771 groups=["trailable_particles"]]
|
||||
texture_filter = 4
|
||||
position = Vector2(1083, -6)
|
||||
amount = 150
|
||||
@@ -625,7 +621,7 @@ interpolate = false
|
||||
collision_base_size = 0.0
|
||||
process_material = SubResource("ParticleProcessMaterial_jtilh")
|
||||
|
||||
[node name="CollisionHideOnContactSpawnSubemitter" type="GPUParticles2D" parent="." groups=["trailable_particles"]]
|
||||
[node name="CollisionHideOnContactSpawnSubemitter" type="GPUParticles2D" parent="." unique_id=49742220 groups=["trailable_particles"]]
|
||||
texture_filter = 4
|
||||
position = Vector2(1072, 650)
|
||||
amount = 100
|
||||
@@ -638,7 +634,7 @@ interpolate = false
|
||||
collision_base_size = 0.0
|
||||
process_material = SubResource("ParticleProcessMaterial_wbw05")
|
||||
|
||||
[node name="CollisionSubemitter" type="GPUParticles2D" parent="CollisionHideOnContactSpawnSubemitter" groups=["trailable_particles"]]
|
||||
[node name="CollisionSubemitter" type="GPUParticles2D" parent="CollisionHideOnContactSpawnSubemitter" unique_id=1924604490 groups=["trailable_particles"]]
|
||||
texture_filter = 4
|
||||
emitting = false
|
||||
amount = 50
|
||||
@@ -650,63 +646,61 @@ interpolate = false
|
||||
collision_base_size = 0.0
|
||||
process_material = SubResource("ParticleProcessMaterial_oib53")
|
||||
|
||||
[node name="LightOccluder2D" type="LightOccluder2D" parent="."]
|
||||
[node name="LightOccluder2D" type="LightOccluder2D" parent="." unique_id=1782635358]
|
||||
position = Vector2(136, -56)
|
||||
occluder = SubResource("OccluderPolygon2D_2aqyc")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="Polygon2D" type="Polygon2D" parent="LightOccluder2D"]
|
||||
[node name="Polygon2D" type="Polygon2D" parent="LightOccluder2D" unique_id=674295895]
|
||||
color = Color(1, 1, 0.537255, 0.270588)
|
||||
polygon = PackedVector2Array(770, 451, 777, 410, 828, 404, 853, 447, 853, 494, 805, 518, 763, 493)
|
||||
|
||||
[node name="LightOccluder2D2" type="LightOccluder2D" parent="."]
|
||||
[node name="LightOccluder2D2" type="LightOccluder2D" parent="." unique_id=1793928510]
|
||||
position = Vector2(232, -24)
|
||||
occluder = SubResource("OccluderPolygon2D_2aqyc")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="Polygon2D" type="Polygon2D" parent="LightOccluder2D2"]
|
||||
[node name="Polygon2D" type="Polygon2D" parent="LightOccluder2D2" unique_id=1674425191]
|
||||
color = Color(1, 1, 0.537255, 0.270588)
|
||||
polygon = PackedVector2Array(770, 451, 777, 410, 828, 404, 853, 447, 853, 494, 805, 518, 763, 493)
|
||||
|
||||
[node name="LightOccluder2D3" type="LightOccluder2D" parent="."]
|
||||
[node name="LightOccluder2D3" type="LightOccluder2D" parent="." unique_id=381981496]
|
||||
position = Vector2(1064, -392)
|
||||
rotation = 1.14325
|
||||
occluder = SubResource("OccluderPolygon2D_2aqyc")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="Polygon2D" type="Polygon2D" parent="LightOccluder2D3"]
|
||||
[node name="Polygon2D" type="Polygon2D" parent="LightOccluder2D3" unique_id=540285447]
|
||||
color = Color(1, 1, 0.537255, 0.270588)
|
||||
polygon = PackedVector2Array(770, 451, 777, 410, 828, 404, 853, 447, 853, 494, 805, 518, 763, 493)
|
||||
|
||||
[node name="LightOccluder2D4" type="LightOccluder2D" parent="."]
|
||||
[node name="LightOccluder2D4" type="LightOccluder2D" parent="." unique_id=2114572572]
|
||||
position = Vector2(949, -414)
|
||||
rotation = 1.14325
|
||||
occluder = SubResource("OccluderPolygon2D_2aqyc")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="Polygon2D" type="Polygon2D" parent="LightOccluder2D4"]
|
||||
[node name="Polygon2D" type="Polygon2D" parent="LightOccluder2D4" unique_id=1472796031]
|
||||
color = Color(1, 1, 0.537255, 0.270588)
|
||||
polygon = PackedVector2Array(770, 451, 777, 410, 828, 404, 853, 447, 853, 494, 805, 518, 763, 493)
|
||||
|
||||
[node name="LightOccluder2D5" type="LightOccluder2D" parent="."]
|
||||
[node name="LightOccluder2D5" type="LightOccluder2D" parent="." unique_id=688662768]
|
||||
position = Vector2(989, -302)
|
||||
rotation = 1.14325
|
||||
occluder = SubResource("OccluderPolygon2D_2aqyc")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="Polygon2D" type="Polygon2D" parent="LightOccluder2D5"]
|
||||
[node name="Polygon2D" type="Polygon2D" parent="LightOccluder2D5" unique_id=443359839]
|
||||
color = Color(1, 1, 0.537255, 0.270588)
|
||||
polygon = PackedVector2Array(770, 451, 777, 410, 828, 404, 853, 447, 853, 494, 805, 518, 763, 493)
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_j1xdo")
|
||||
}
|
||||
autoplay = "move_particles"
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=342321881]
|
||||
libraries/ = SubResource("AnimationLibrary_j1xdo")
|
||||
autoplay = &"move_particles"
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="." unique_id=884504156]
|
||||
|
||||
[node name="Label" type="Label" parent="CanvasLayer"]
|
||||
[node name="Label" type="Label" parent="CanvasLayer" unique_id=1152297485]
|
||||
process_mode = 3
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
@@ -722,7 +716,7 @@ Up/Down arrows: Adjust particle trail length
|
||||
G: Toggle glow"
|
||||
script = ExtResource("6_5a71v")
|
||||
|
||||
[node name="UnsupportedLabel" type="Label" parent="CanvasLayer"]
|
||||
[node name="UnsupportedLabel" type="Label" parent="CanvasLayer" unique_id=1424327040]
|
||||
process_mode = 3
|
||||
visible = false
|
||||
self_modulate = Color(1, 1, 1, 0.6)
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -14,7 +14,7 @@ config/name="2D GPUParticles"
|
||||
config/description="This demo showcases how 2D particle systems work in Godot."
|
||||
config/tags=PackedStringArray("2d", "demo", "official", "rendering")
|
||||
run/main_scene="res://particles.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[debug]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://djuhrcsvyes6f"]
|
||||
[gd_scene format=3 uid="uid://djuhrcsvyes6f"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b5gaag0kcjwmc" path="res://background/scroll_bg_sky.png" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://ldn8mvqarc8u" path="res://background/scroll_bg_cloud_1.png" id="2"]
|
||||
@@ -7,67 +7,67 @@
|
||||
[ext_resource type="Texture2D" uid="uid://6w5f5a4tr0w6" path="res://background/scroll_bg_fg_2.png" id="5"]
|
||||
[ext_resource type="Texture2D" uid="uid://dqmv1whh5hx6l" path="res://background/scroll_bg_fg_1.png" id="6"]
|
||||
|
||||
[node name="ParallaxBg" type="ParallaxBackground"]
|
||||
[node name="ParallaxBg" type="ParallaxBackground" unique_id=73356238]
|
||||
scroll_base_scale = Vector2(0.7, 0)
|
||||
|
||||
[node name="Sky" type="ParallaxLayer" parent="."]
|
||||
[node name="Sky" type="ParallaxLayer" parent="." unique_id=793853235]
|
||||
motion_mirroring = Vector2(400, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Sky"]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Sky" unique_id=1439315097]
|
||||
scale = Vector2(1000, 0.94)
|
||||
texture = ExtResource("1")
|
||||
centered = false
|
||||
offset = Vector2(-15, 0)
|
||||
|
||||
[node name="Clouds" type="ParallaxLayer" parent="."]
|
||||
[node name="Clouds" type="ParallaxLayer" parent="." unique_id=1027733683]
|
||||
motion_scale = Vector2(0.1, 1)
|
||||
motion_mirroring = Vector2(400, 0)
|
||||
|
||||
[node name="Sprite1" type="Sprite2D" parent="Clouds"]
|
||||
[node name="Sprite1" type="Sprite2D" parent="Clouds" unique_id=1985548022]
|
||||
position = Vector2(14, 64)
|
||||
texture = ExtResource("2")
|
||||
centered = false
|
||||
|
||||
[node name="Sprite2" type="Sprite2D" parent="Clouds"]
|
||||
[node name="Sprite2" type="Sprite2D" parent="Clouds" unique_id=2105785549]
|
||||
position = Vector2(202, 12)
|
||||
texture = ExtResource("2")
|
||||
centered = false
|
||||
|
||||
[node name="Sprite3" type="Sprite2D" parent="Clouds"]
|
||||
[node name="Sprite3" type="Sprite2D" parent="Clouds" unique_id=534386131]
|
||||
position = Vector2(77, 23)
|
||||
texture = ExtResource("3")
|
||||
centered = false
|
||||
|
||||
[node name="Sprite4" type="Sprite2D" parent="Clouds"]
|
||||
[node name="Sprite4" type="Sprite2D" parent="Clouds" unique_id=865765152]
|
||||
position = Vector2(272, 65)
|
||||
texture = ExtResource("3")
|
||||
centered = false
|
||||
|
||||
[node name="Sprite5" type="Sprite2D" parent="Clouds"]
|
||||
[node name="Sprite5" type="Sprite2D" parent="Clouds" unique_id=813041797]
|
||||
position = Vector2(127, 79)
|
||||
texture = ExtResource("4")
|
||||
centered = false
|
||||
|
||||
[node name="Sprite6" type="Sprite2D" parent="Clouds"]
|
||||
[node name="Sprite6" type="Sprite2D" parent="Clouds" unique_id=537771869]
|
||||
position = Vector2(337, 35)
|
||||
texture = ExtResource("4")
|
||||
centered = false
|
||||
|
||||
[node name="Mount2" type="ParallaxLayer" parent="."]
|
||||
[node name="Mount2" type="ParallaxLayer" parent="." unique_id=1262947757]
|
||||
motion_scale = Vector2(0.2, 1)
|
||||
motion_mirroring = Vector2(400, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Mount2"]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Mount2" unique_id=842425983]
|
||||
position = Vector2(0, 113)
|
||||
texture = ExtResource("5")
|
||||
centered = false
|
||||
region_rect = Rect2(0, 0, 400, 128)
|
||||
|
||||
[node name="Mount1" type="ParallaxLayer" parent="."]
|
||||
[node name="Mount1" type="ParallaxLayer" parent="." unique_id=54590134]
|
||||
motion_scale = Vector2(0.4, 1)
|
||||
motion_mirroring = Vector2(400, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Mount1"]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Mount1" unique_id=446999994]
|
||||
position = Vector2(0, 113)
|
||||
texture = ExtResource("6")
|
||||
centered = false
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bin4djw4oa087"]
|
||||
[gd_scene format=3 uid="uid://bin4djw4oa087"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dcee0qf0cuphp" path="res://background/plank.png" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3kbycm85x1ms" path="res://background/plankpin.png" id="2"]
|
||||
@@ -9,27 +9,27 @@ size = Vector2(128, 8)
|
||||
[sub_resource type="RectangleShape2D" id="2"]
|
||||
size = Vector2(16, 27)
|
||||
|
||||
[node name="Seesaw" type="Node2D"]
|
||||
[node name="Seesaw" type="Node2D" unique_id=68439185]
|
||||
|
||||
[node name="Plank" type="RigidBody2D" parent="."]
|
||||
[node name="Plank" type="RigidBody2D" parent="." unique_id=1529097142]
|
||||
mass = 5.10204
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Plank"]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Plank" unique_id=1099129359]
|
||||
texture = ExtResource("1")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Plank"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Plank" unique_id=633000078]
|
||||
shape = SubResource("1")
|
||||
|
||||
[node name="Pin" type="PinJoint2D" parent="."]
|
||||
[node name="Pin" type="PinJoint2D" parent="." unique_id=1272793055]
|
||||
node_a = NodePath("../Plank")
|
||||
node_b = NodePath("../Pillar")
|
||||
|
||||
[node name="Pillar" type="StaticBody2D" parent="."]
|
||||
[node name="Pillar" type="StaticBody2D" parent="." unique_id=1377122313]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Pillar"]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="Pillar" unique_id=421841427]
|
||||
position = Vector2(0, 10)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Pillar"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Pillar" unique_id=415788026]
|
||||
position = Vector2(0, 12.5)
|
||||
shape = SubResource("2")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://bgxb5aqsiln8w"]
|
||||
[gd_scene format=3 uid="uid://bgxb5aqsiln8w"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bpvhrs0h1n17u" path="res://coin/coin.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://dxan1ywh7o6bp" path="res://coin/coin.png" id="2"]
|
||||
@@ -105,26 +105,24 @@ blend_mode = 1
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.1, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[node name="Coin" type="Area2D"]
|
||||
[node name="Coin" type="Area2D" unique_id=1190725018]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1026141368]
|
||||
texture = ExtResource("2")
|
||||
hframes = 4
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_4atuj")
|
||||
}
|
||||
autoplay = "spin"
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=686091748]
|
||||
libraries/ = SubResource("AnimationLibrary_4atuj")
|
||||
autoplay = &"spin"
|
||||
|
||||
[node name="Collision" type="CollisionShape2D" parent="."]
|
||||
[node name="Collision" type="CollisionShape2D" parent="." unique_id=145264527]
|
||||
shape = SubResource("3")
|
||||
|
||||
[node name="Sound" type="AudioStreamPlayer2D" parent="."]
|
||||
[node name="Sound" type="AudioStreamPlayer2D" parent="." unique_id=1899889948]
|
||||
stream = ExtResource("3")
|
||||
|
||||
[node name="GPUParticles3D" type="CPUParticles2D" parent="."]
|
||||
[node name="GPUParticles3D" type="CPUParticles2D" parent="." unique_id=532589275]
|
||||
modulate = Color(0.596078, 0.639216, 1, 1)
|
||||
material = SubResource("4")
|
||||
emitting = false
|
||||
@@ -137,7 +135,7 @@ emission_sphere_radius = 4.0
|
||||
gravity = Vector2(0, 0)
|
||||
scale_amount_curve = SubResource("5")
|
||||
|
||||
[node name="Enabler" type="VisibleOnScreenEnabler2D" parent="."]
|
||||
[node name="Enabler" type="VisibleOnScreenEnabler2D" parent="." unique_id=139280595]
|
||||
rect = Rect2(-5, -5, 10, 10)
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_enter"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://dt13mo16pfgrv"]
|
||||
[gd_scene format=3 uid="uid://dt13mo16pfgrv"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://n4cogbf8t5kb" path="res://enemy/enemy.gd" id="1_hjwkx"]
|
||||
[ext_resource type="Texture2D" uid="uid://dotinr3h2y7e8" path="res://enemy/enemy.png" id="2_org2d"]
|
||||
@@ -142,51 +142,49 @@ radius = 7.0
|
||||
offsets = PackedFloat32Array(0.5, 1)
|
||||
colors = PackedColorArray(1, 1, 1, 0.501961, 0, 0, 0, 0)
|
||||
|
||||
[node name="Enemy" type="RigidBody2D"]
|
||||
[node name="Enemy" type="RigidBody2D" unique_id=1178630446]
|
||||
physics_material_override = SubResource("PhysicsMaterial_eyxlk")
|
||||
lock_rotation = true
|
||||
contact_monitor = true
|
||||
max_contacts_reported = 4
|
||||
script = ExtResource("1_hjwkx")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_ay0tp")
|
||||
}
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=473404497]
|
||||
libraries/ = SubResource("AnimationLibrary_ay0tp")
|
||||
|
||||
[node name="SoundExplode" type="AudioStreamPlayer2D" parent="."]
|
||||
[node name="SoundExplode" type="AudioStreamPlayer2D" parent="." unique_id=1304382245]
|
||||
stream = ExtResource("5_t2e2f")
|
||||
|
||||
[node name="SoundHit" type="AudioStreamPlayer2D" parent="."]
|
||||
[node name="SoundHit" type="AudioStreamPlayer2D" parent="." unique_id=1261565850]
|
||||
position = Vector2(0, -1)
|
||||
stream = ExtResource("4_5rkwm")
|
||||
|
||||
[node name="VisibleOnScreenEnabler2D" type="VisibleOnScreenEnabler2D" parent="."]
|
||||
[node name="VisibleOnScreenEnabler2D" type="VisibleOnScreenEnabler2D" parent="." unique_id=1847664982]
|
||||
rect = Rect2(-150, -100, 300, 200)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=584270471]
|
||||
texture = ExtResource("2_org2d")
|
||||
hframes = 8
|
||||
|
||||
[node name="Shape1" type="CollisionShape2D" parent="."]
|
||||
[node name="Shape1" type="CollisionShape2D" parent="." unique_id=1019070265]
|
||||
position = Vector2(-0.54036, -1.08072)
|
||||
shape = SubResource("5")
|
||||
|
||||
[node name="Shape2" type="CollisionShape2D" parent="."]
|
||||
[node name="Shape2" type="CollisionShape2D" parent="." unique_id=2074664711]
|
||||
position = Vector2(3.24216, 1.62108)
|
||||
shape = SubResource("5")
|
||||
|
||||
[node name="Shape3" type="CollisionShape2D" parent="."]
|
||||
[node name="Shape3" type="CollisionShape2D" parent="." unique_id=1084760241]
|
||||
position = Vector2(-6.2475, 1.76707)
|
||||
shape = SubResource("5")
|
||||
|
||||
[node name="RaycastLeft" type="RayCast2D" parent="."]
|
||||
[node name="RaycastLeft" type="RayCast2D" parent="." unique_id=191827520]
|
||||
position = Vector2(-14, -4.672)
|
||||
|
||||
[node name="RaycastRight" type="RayCast2D" parent="."]
|
||||
[node name="RaycastRight" type="RayCast2D" parent="." unique_id=261023271]
|
||||
position = Vector2(11, -4.672)
|
||||
|
||||
[node name="Explosion" type="CPUParticles2D" parent="."]
|
||||
[node name="Explosion" type="CPUParticles2D" parent="." unique_id=917878361]
|
||||
modulate = Color(1, 1, 1, 0.685843)
|
||||
emitting = false
|
||||
amount = 32
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://b6a18itecp5h4"]
|
||||
[gd_scene format=3 uid="uid://b6a18itecp5h4"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bjgihca72ygrf" path="res://platform/moving_platform.png" id="2"]
|
||||
|
||||
[node name="MovingPlatform" type="CharacterBody2D"]
|
||||
[node name="MovingPlatform" type="CharacterBody2D" unique_id=224207586]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1448881625]
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="." unique_id=123614206]
|
||||
polygon = PackedVector2Array(-44, -12, 44, -12, 44, 12, -44, 12)
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://ctxlm52c2h0u0"]
|
||||
[gd_scene format=3 uid="uid://ctxlm52c2h0u0"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dryq1xennl54p" path="res://platform/one_way_platform.png" id="1"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="1"]
|
||||
size = Vector2(110, 10)
|
||||
|
||||
[node name="OneWayPlatform" type="StaticBody2D"]
|
||||
[node name="OneWayPlatform" type="StaticBody2D" unique_id=1092792616]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=911894361]
|
||||
texture = ExtResource("1")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1073999631]
|
||||
position = Vector2(0.73152, -6.5836)
|
||||
shape = SubResource("1")
|
||||
one_way_collision = true
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bev68x5r1igtw"]
|
||||
[gd_scene format=3 uid="uid://bev68x5r1igtw"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://di2vgtp2fodw2" path="res://player/bullet.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://n28mue73qnk0" path="res://player/bullet.png" id="2"]
|
||||
@@ -55,11 +55,11 @@ _data = {
|
||||
&"shutdown": SubResource("3")
|
||||
}
|
||||
|
||||
[node name="Bullet" type="RigidBody2D"]
|
||||
[node name="Bullet" type="RigidBody2D" unique_id=473089145]
|
||||
continuous_cd = 2
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="GPUParticles2D" type="CPUParticles2D" parent="."]
|
||||
[node name="GPUParticles2D" type="CPUParticles2D" parent="." unique_id=1623680574]
|
||||
material = SubResource("1")
|
||||
emitting = false
|
||||
texture = ExtResource("2")
|
||||
@@ -68,18 +68,16 @@ speed_scale = 3.0
|
||||
spread = 0.0
|
||||
gravity = Vector2(0, 0)
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=93974332]
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=964228795]
|
||||
shape = SubResource("2")
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
[node name="Timer" type="Timer" parent="." unique_id=954750638]
|
||||
one_shot = true
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_hkd2b")
|
||||
}
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1099933579]
|
||||
libraries/ = SubResource("AnimationLibrary_hkd2b")
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="disable"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=20 format=3 uid="uid://busletj2j86ur"]
|
||||
[gd_scene format=3 uid="uid://busletj2j86ur"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://w3c1f8ktmm37" path="res://player/player.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddyjqdvu8b28f" path="res://player/player.webp" id="2_675nc"]
|
||||
@@ -194,7 +194,7 @@ _data = {
|
||||
custom_solver_bias = 0.5
|
||||
length = 18.0
|
||||
|
||||
[node name="Player" type="RigidBody2D"]
|
||||
[node name="Player" type="RigidBody2D" unique_id=1297817494]
|
||||
mass = 1.5
|
||||
physics_material_override = SubResource("1")
|
||||
lock_rotation = true
|
||||
@@ -203,13 +203,13 @@ contact_monitor = true
|
||||
max_contacts_reported = 4
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1348020773]
|
||||
texture = ExtResource("2_675nc")
|
||||
hframes = 16
|
||||
vframes = 2
|
||||
frame = 22
|
||||
|
||||
[node name="Smoke" type="CPUParticles2D" parent="Sprite2D"]
|
||||
[node name="Smoke" type="CPUParticles2D" parent="Sprite2D" unique_id=1121790931]
|
||||
self_modulate = Color(1, 1, 1, 0.26702)
|
||||
position = Vector2(10, 1.5)
|
||||
rotation = -1.45648
|
||||
@@ -222,58 +222,56 @@ spread = 65.84
|
||||
gravity = Vector2(0, -15)
|
||||
color_ramp = SubResource("2")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_30623")
|
||||
}
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=868682448]
|
||||
libraries/ = SubResource("AnimationLibrary_30623")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
[node name="Camera2D" type="Camera2D" parent="." unique_id=252858992]
|
||||
zoom = Vector2(2, 2)
|
||||
process_callback = 0
|
||||
limit_left = 0
|
||||
limit_top = 0
|
||||
|
||||
[node name="BulletShoot" type="Marker2D" parent="."]
|
||||
[node name="BulletShoot" type="Marker2D" parent="." unique_id=1361334242]
|
||||
position = Vector2(15, 2)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1802698286]
|
||||
position = Vector2(0.15, -6)
|
||||
shape = SubResource("13")
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="." unique_id=392987959]
|
||||
polygon = PackedVector2Array(-0.138, 8.25, -10, -12, 11, -12)
|
||||
|
||||
[node name="UI" type="CanvasLayer" parent="."]
|
||||
[node name="UI" type="CanvasLayer" parent="." unique_id=501047010]
|
||||
layer = 0
|
||||
|
||||
[node name="Left" type="TouchScreenButton" parent="UI"]
|
||||
[node name="Left" type="TouchScreenButton" parent="UI" unique_id=1317030686]
|
||||
position = Vector2(27.7593, 360.87)
|
||||
scale = Vector2(1.49157, 1.46265)
|
||||
passby_press = true
|
||||
action = "move_left"
|
||||
visibility_mode = 1
|
||||
|
||||
[node name="Right" type="TouchScreenButton" parent="UI"]
|
||||
[node name="Right" type="TouchScreenButton" parent="UI" unique_id=182956576]
|
||||
position = Vector2(121.542, 361.415)
|
||||
scale = Vector2(1.49157, 1.46265)
|
||||
passby_press = true
|
||||
action = "move_right"
|
||||
visibility_mode = 1
|
||||
|
||||
[node name="Jump" type="TouchScreenButton" parent="UI"]
|
||||
[node name="Jump" type="TouchScreenButton" parent="UI" unique_id=646946240]
|
||||
position = Vector2(666.224, 359.02)
|
||||
scale = Vector2(1.49157, 1.46265)
|
||||
action = "jump"
|
||||
visibility_mode = 1
|
||||
|
||||
[node name="Fire" type="TouchScreenButton" parent="UI"]
|
||||
[node name="Fire" type="TouchScreenButton" parent="UI" unique_id=210071796]
|
||||
position = Vector2(668.073, 262.788)
|
||||
scale = Vector2(1.49157, 1.46265)
|
||||
action = "shoot"
|
||||
visibility_mode = 1
|
||||
|
||||
[node name="SoundShoot" type="AudioStreamPlayer2D" parent="."]
|
||||
[node name="SoundShoot" type="AudioStreamPlayer2D" parent="." unique_id=857997128]
|
||||
stream = ExtResource("8")
|
||||
|
||||
[node name="SoundJump" type="AudioStreamPlayer2D" parent="."]
|
||||
[node name="SoundJump" type="AudioStreamPlayer2D" parent="." unique_id=137791510]
|
||||
stream = ExtResource("9")
|
||||
|
||||
@@ -17,7 +17,7 @@ but can be more difficult to handle, as they require
|
||||
manual modification of the RigidBody3D velocity."
|
||||
config/tags=PackedStringArray("2d", "demo", "official", "physics", "tilemap")
|
||||
run/main_scene="res://stage.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[debug]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=24 format=4 uid="uid://dxbdfosfl1f3x"]
|
||||
[gd_scene format=4 uid="uid://dxbdfosfl1f3x"]
|
||||
|
||||
[ext_resource type="TileSet" uid="uid://b6wjswyh30pt8" path="res://tileset.tres" id="1"]
|
||||
[ext_resource type="PackedScene" uid="uid://bgxb5aqsiln8w" path="res://coin/coin.tscn" id="2"]
|
||||
@@ -276,9 +276,7 @@ position = Vector2(438, 272)
|
||||
position = Vector2(1554, 369)
|
||||
|
||||
[node name="MovePlatforms" type="AnimationPlayer" parent="Props" unique_id=661467677]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_el48w")
|
||||
}
|
||||
libraries/ = SubResource("AnimationLibrary_el48w")
|
||||
autoplay = &"move"
|
||||
|
||||
[node name="Seesaw" parent="Props" unique_id=545326424 instance=ExtResource("4")]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_resource type="TileSet" load_steps=18 format=3 uid="uid://b6wjswyh30pt8"]
|
||||
[gd_resource type="TileSet" format=3 uid="uid://b6wjswyh30pt8"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cic2d5k2c72yg" path="res://tiles_demo.png" id="1"]
|
||||
|
||||
|
||||
@@ -1,149 +1,149 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bfs503wewoj32"]
|
||||
[gd_scene format=3 uid="uid://bfs503wewoj32"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cic2d5k2c72yg" path="res://tiles_demo.png" id="1"]
|
||||
|
||||
[node name="TilesetEdit" type="Node2D"]
|
||||
[node name="TilesetEdit" type="Node2D" unique_id=125853961]
|
||||
|
||||
[node name="Floor" type="Sprite2D" parent="."]
|
||||
[node name="Floor" type="Sprite2D" parent="." unique_id=768595652]
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(0, 0, 32, 32)
|
||||
|
||||
[node name="Collision" type="StaticBody2D" parent="Floor"]
|
||||
[node name="Collision" type="StaticBody2D" parent="Floor" unique_id=460141375]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Floor/Collision"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Floor/Collision" unique_id=1621310434]
|
||||
polygon = PackedVector2Array(16, -12, 16, 16, -16, 16, -16, -12)
|
||||
|
||||
[node name="Edge" type="Sprite2D" parent="."]
|
||||
[node name="Edge" type="Sprite2D" parent="." unique_id=1511898540]
|
||||
position = Vector2(32, 0)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(32, 0, 32, 32)
|
||||
|
||||
[node name="Collision" type="StaticBody2D" parent="Edge"]
|
||||
[node name="Collision" type="StaticBody2D" parent="Edge" unique_id=703010723]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Edge/Collision"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Edge/Collision" unique_id=565848176]
|
||||
polygon = PackedVector2Array(-16, -12, 12, -12, 12, 16, -16, 16)
|
||||
|
||||
[node name="Wall" type="Sprite2D" parent="."]
|
||||
[node name="Wall" type="Sprite2D" parent="." unique_id=1697159889]
|
||||
position = Vector2(32, 32)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(32, 32, 32, 32)
|
||||
|
||||
[node name="Collision" type="StaticBody2D" parent="Wall"]
|
||||
[node name="Collision" type="StaticBody2D" parent="Wall" unique_id=1937943636]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Wall/Collision"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Wall/Collision" unique_id=1146685165]
|
||||
polygon = PackedVector2Array(-16, -16, 12, -16, 12, 16, -16, 16)
|
||||
|
||||
[node name="WallDeco" type="Sprite2D" parent="."]
|
||||
[node name="WallDeco" type="Sprite2D" parent="." unique_id=1435149639]
|
||||
position = Vector2(48, 64)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(160, 64, 64, 32)
|
||||
|
||||
[node name="Collision" type="StaticBody2D" parent="WallDeco"]
|
||||
[node name="Collision" type="StaticBody2D" parent="WallDeco" unique_id=1222598878]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="WallDeco/Collision"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="WallDeco/Collision" unique_id=652115274]
|
||||
polygon = PackedVector2Array(-32, -16, -4, -16, -4, 16, -32, 16)
|
||||
|
||||
[node name="Corner" type="Sprite2D" parent="."]
|
||||
[node name="Corner" type="Sprite2D" parent="." unique_id=1671100959]
|
||||
position = Vector2(32, 96)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(32, 64, 32, 32)
|
||||
|
||||
[node name="Collision" type="StaticBody2D" parent="Corner"]
|
||||
[node name="Collision" type="StaticBody2D" parent="Corner" unique_id=1508894172]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Corner/Collision"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Corner/Collision" unique_id=1222472880]
|
||||
polygon = PackedVector2Array(-16, -16, 12, -16, 16, -12, 16, 16, -16, 16)
|
||||
|
||||
[node name="Flowers" type="Sprite2D" parent="."]
|
||||
[node name="Flowers" type="Sprite2D" parent="." unique_id=1335188074]
|
||||
position = Vector2(64, 96)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(96, 96, 32, 32)
|
||||
|
||||
[node name="Collision" type="StaticBody2D" parent="Flowers"]
|
||||
[node name="Collision" type="StaticBody2D" parent="Flowers" unique_id=931852308]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Flowers/Collision"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Flowers/Collision" unique_id=1784185480]
|
||||
polygon = PackedVector2Array(-16, 16, 16, 16, 16, -12, -16, -12)
|
||||
|
||||
[node name="TreeBase" type="Sprite2D" parent="."]
|
||||
[node name="TreeBase" type="Sprite2D" parent="." unique_id=1252694295]
|
||||
position = Vector2(96, 96)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(128, 96, 32, 32)
|
||||
|
||||
[node name="Collision" type="StaticBody2D" parent="TreeBase"]
|
||||
[node name="Collision" type="StaticBody2D" parent="TreeBase" unique_id=496416378]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="TreeBase/Collision"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="TreeBase/Collision" unique_id=1020865908]
|
||||
polygon = PackedVector2Array(-16, 16, 16, 16, 16, -12, -16, -12)
|
||||
|
||||
[node name="TreeMid" type="Sprite2D" parent="."]
|
||||
[node name="TreeMid" type="Sprite2D" parent="." unique_id=402992481]
|
||||
position = Vector2(96, 64)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(128, 64, 32, 32)
|
||||
|
||||
[node name="TreeMid2" type="Sprite2D" parent="."]
|
||||
[node name="TreeMid2" type="Sprite2D" parent="." unique_id=481297265]
|
||||
position = Vector2(96, 32)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(128, 32, 32, 32)
|
||||
|
||||
[node name="TreeTop" type="Sprite2D" parent="."]
|
||||
[node name="TreeTop" type="Sprite2D" parent="." unique_id=591069610]
|
||||
position = Vector2(96, 0)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(128, 0, 32, 32)
|
||||
|
||||
[node name="Solid" type="Sprite2D" parent="."]
|
||||
[node name="Solid" type="Sprite2D" parent="." unique_id=2135050778]
|
||||
position = Vector2(0, 32)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(0, 32, 32, 32)
|
||||
|
||||
[node name="Ceiling" type="Sprite2D" parent="."]
|
||||
[node name="Ceiling" type="Sprite2D" parent="." unique_id=1789075426]
|
||||
position = Vector2(0, 64)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(192, 32, 32, 32)
|
||||
|
||||
[node name="Collision" type="StaticBody2D" parent="Ceiling"]
|
||||
[node name="Collision" type="StaticBody2D" parent="Ceiling" unique_id=742954922]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Ceiling/Collision"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Ceiling/Collision" unique_id=726936655]
|
||||
polygon = PackedVector2Array(16, -16, 16, 16, -16, 16, -16, -16)
|
||||
|
||||
[node name="Ramp" type="Sprite2D" parent="."]
|
||||
[node name="Ramp" type="Sprite2D" parent="." unique_id=2111488226]
|
||||
position = Vector2(128, 112)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(64, 64, 32, 64)
|
||||
|
||||
[node name="Collision" type="StaticBody2D" parent="Ramp"]
|
||||
[node name="Collision" type="StaticBody2D" parent="Ramp" unique_id=1904217560]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Ramp/Collision"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Ramp/Collision" unique_id=1263776171]
|
||||
polygon = PackedVector2Array(-16, -28, 16, 4, 16, 32, -16, 32)
|
||||
|
||||
[node name="CeilingWall" type="Sprite2D" parent="."]
|
||||
[node name="CeilingWall" type="Sprite2D" parent="." unique_id=1585239098]
|
||||
position = Vector2(0, 96)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(224, 32, 32, 32)
|
||||
|
||||
[node name="Collision" type="StaticBody2D" parent="CeilingWall"]
|
||||
[node name="Collision" type="StaticBody2D" parent="CeilingWall" unique_id=457518714]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="CeilingWall/Collision"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="CeilingWall/Collision" unique_id=870247718]
|
||||
polygon = PackedVector2Array(-16, -16, 12, -16, 12, 16, -16, 16)
|
||||
|
||||
[node name="PlatformFloor" type="Sprite2D" parent="."]
|
||||
[node name="PlatformFloor" type="Sprite2D" parent="." unique_id=1246981817]
|
||||
position = Vector2(0, 128)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(64, 0, 32, 32)
|
||||
|
||||
[node name="Collision" type="StaticBody2D" parent="PlatformFloor"]
|
||||
[node name="Collision" type="StaticBody2D" parent="PlatformFloor" unique_id=340079438]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="PlatformFloor/Collision"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="PlatformFloor/Collision" unique_id=82763792]
|
||||
polygon = PackedVector2Array(16, -12, 16, 12, -16, 12, -16, -12)
|
||||
|
||||
[node name="PlatformEdge" type="Sprite2D" parent="."]
|
||||
[node name="PlatformEdge" type="Sprite2D" parent="." unique_id=1282459804]
|
||||
position = Vector2(32, 128)
|
||||
texture = ExtResource("1")
|
||||
region_rect = Rect2(96, 0, 32, 32)
|
||||
|
||||
[node name="Collision" type="StaticBody2D" parent="PlatformEdge"]
|
||||
[node name="Collision" type="StaticBody2D" parent="PlatformEdge" unique_id=1437080657]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="PlatformEdge/Collision"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="PlatformEdge/Collision" unique_id=1589502005]
|
||||
polygon = PackedVector2Array(12, -12, 12, 12, -16, 12, -16, -12)
|
||||
|
||||
[node name="Help" type="Label" parent="."]
|
||||
[node name="Help" type="Label" parent="." unique_id=672666421]
|
||||
offset_left = 1.0
|
||||
offset_top = 331.0
|
||||
offset_right = 727.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_resource type="TileSet" load_steps=3 format=3 uid="uid://b07pnn5pkpb35"]
|
||||
[gd_resource type="TileSet" format=3 uid="uid://b07pnn5pkpb35"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://duk8iuwrl4u54" path="res://assets/tileset/tiles_demo.png" id="1"]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=15 format=3 uid="uid://duuq3oa8yi6yi"]
|
||||
[gd_scene format=3 uid="uid://duuq3oa8yi6yi"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dubik1f5fneps" path="res://utils/label_fps.gd" id="1"]
|
||||
[ext_resource type="Script" uid="uid://ca4gk4ef7jc6f" path="res://utils/label_version.gd" id="2"]
|
||||
@@ -17,7 +17,7 @@
|
||||
[sub_resource type="StyleBoxFlat" id="1"]
|
||||
bg_color = Color(0, 0, 0, 0.176471)
|
||||
|
||||
[node name="Main" type="Control"]
|
||||
[node name="Main" type="Control" unique_id=2128203463]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -27,7 +27,7 @@ grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("12")
|
||||
|
||||
[node name="TestsMenu" type="MenuButton" parent="."]
|
||||
[node name="TestsMenu" type="MenuButton" parent="." unique_id=1051533574]
|
||||
layout_mode = 0
|
||||
offset_left = 10.0
|
||||
offset_top = 10.0
|
||||
@@ -37,7 +37,7 @@ text = "Tests"
|
||||
flat = false
|
||||
script = ExtResource("4")
|
||||
|
||||
[node name="LabelControls" type="Label" parent="."]
|
||||
[node name="LabelControls" type="Label" parent="." unique_id=1639582477]
|
||||
layout_mode = 0
|
||||
offset_left = 157.0
|
||||
offset_top = 13.0
|
||||
@@ -46,7 +46,7 @@ offset_bottom = 27.0
|
||||
theme_override_constants/outline_size = 4
|
||||
text = "P: Toggle Pause | R: Restart | C: Toggle Collision | F: Toggle Fullscreen | ESC: Quit"
|
||||
|
||||
[node name="LabelFPS" type="Label" parent="."]
|
||||
[node name="LabelFPS" type="Label" parent="." unique_id=1221424336]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
@@ -61,7 +61,7 @@ theme_override_constants/outline_size = 4
|
||||
text = "FPS: 0"
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="LabelEngine" type="Label" parent="."]
|
||||
[node name="LabelEngine" type="Label" parent="." unique_id=285515091]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
@@ -77,7 +77,7 @@ theme_override_constants/outline_size = 4
|
||||
text = "Physics engine:"
|
||||
script = ExtResource("3")
|
||||
|
||||
[node name="LabelVersion" type="Label" parent="."]
|
||||
[node name="LabelVersion" type="Label" parent="." unique_id=1425389712]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
@@ -93,7 +93,7 @@ theme_override_constants/outline_size = 4
|
||||
text = "Godot version:"
|
||||
script = ExtResource("2")
|
||||
|
||||
[node name="LabelTest" type="Label" parent="."]
|
||||
[node name="LabelTest" type="Label" parent="." unique_id=789147083]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
@@ -108,7 +108,7 @@ theme_override_constants/outline_size = 4
|
||||
text = "Test:"
|
||||
script = ExtResource("5")
|
||||
|
||||
[node name="LabelPause" type="Label" parent="."]
|
||||
[node name="LabelPause" type="Label" parent="." unique_id=238168997]
|
||||
modulate = Color(1, 1, 0, 1)
|
||||
layout_mode = 1
|
||||
anchors_preset = 5
|
||||
@@ -124,7 +124,7 @@ theme_override_font_sizes/font_size = 24
|
||||
text = "Paused"
|
||||
script = ExtResource("6")
|
||||
|
||||
[node name="Options" type="VBoxContainer" parent="."]
|
||||
[node name="Options" type="VBoxContainer" parent="." unique_id=1461871449]
|
||||
layout_mode = 1
|
||||
anchors_preset = 1
|
||||
anchor_left = 1.0
|
||||
@@ -136,7 +136,7 @@ offset_bottom = 168.0
|
||||
grow_horizontal = 0
|
||||
theme_override_constants/separation = 6
|
||||
|
||||
[node name="TicksPerSecond" type="HBoxContainer" parent="Options"]
|
||||
[node name="TicksPerSecond" type="HBoxContainer" parent="Options" unique_id=538503540]
|
||||
layout_mode = 2
|
||||
tooltip_text = "Higher values make physics more precise at the cost of higher CPU utilization.
|
||||
Low values may result in objects phasing through each other (tunneling).
|
||||
@@ -144,14 +144,14 @@ Physics ticks per second are automatically multiplied by Time Scale in this proj
|
||||
theme_override_constants/separation = 10
|
||||
script = ExtResource("8_dg77c")
|
||||
|
||||
[node name="Label" type="Label" parent="Options/TicksPerSecond"]
|
||||
[node name="Label" type="Label" parent="Options/TicksPerSecond" unique_id=1576971871]
|
||||
custom_minimum_size = Vector2(164, 0)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 4
|
||||
text = "Ticks per Second"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="Options/TicksPerSecond"]
|
||||
[node name="HSlider" type="HSlider" parent="Options/TicksPerSecond" unique_id=247607595]
|
||||
custom_minimum_size = Vector2(160, 0)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
@@ -160,13 +160,13 @@ max_value = 240.0
|
||||
step = 10.0
|
||||
value = 60.0
|
||||
|
||||
[node name="Value" type="Label" parent="Options/TicksPerSecond"]
|
||||
[node name="Value" type="Label" parent="Options/TicksPerSecond" unique_id=549785606]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 4
|
||||
text = "60"
|
||||
|
||||
[node name="TimeScale" type="HBoxContainer" parent="Options"]
|
||||
[node name="TimeScale" type="HBoxContainer" parent="Options" unique_id=5056712]
|
||||
layout_mode = 2
|
||||
tooltip_text = "Game speed multiplier. Physics ticks per second are
|
||||
automatically multiplied by Time Scale in this project
|
||||
@@ -174,14 +174,14 @@ to ensure accurate simulation regardless of time scale."
|
||||
theme_override_constants/separation = 10
|
||||
script = ExtResource("9_ycdy4")
|
||||
|
||||
[node name="Label" type="Label" parent="Options/TimeScale"]
|
||||
[node name="Label" type="Label" parent="Options/TimeScale" unique_id=151694134]
|
||||
custom_minimum_size = Vector2(164, 0)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 4
|
||||
text = "Time Scale"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="Options/TimeScale"]
|
||||
[node name="HSlider" type="HSlider" parent="Options/TimeScale" unique_id=8530608]
|
||||
custom_minimum_size = Vector2(160, 0)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
@@ -189,13 +189,13 @@ max_value = 5.0
|
||||
step = 0.5
|
||||
value = 0.5
|
||||
|
||||
[node name="Value" type="Label" parent="Options/TimeScale"]
|
||||
[node name="Value" type="Label" parent="Options/TimeScale" unique_id=1344187457]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 4
|
||||
text = "1.0×"
|
||||
|
||||
[node name="MaxStepsPerFrame" type="HBoxContainer" parent="Options"]
|
||||
[node name="MaxStepsPerFrame" type="HBoxContainer" parent="Options" unique_id=1684706066]
|
||||
layout_mode = 2
|
||||
tooltip_text = "Physics will slow down if more physics steps
|
||||
than this value need to be simulated in a
|
||||
@@ -203,14 +203,14 @@ single rendered frame."
|
||||
theme_override_constants/separation = 10
|
||||
script = ExtResource("10_w48qg")
|
||||
|
||||
[node name="Label" type="Label" parent="Options/MaxStepsPerFrame"]
|
||||
[node name="Label" type="Label" parent="Options/MaxStepsPerFrame" unique_id=856708187]
|
||||
custom_minimum_size = Vector2(164, 0)
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 4
|
||||
text = "Max Steps per Frame"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="Options/MaxStepsPerFrame"]
|
||||
[node name="HSlider" type="HSlider" parent="Options/MaxStepsPerFrame" unique_id=1839821832]
|
||||
custom_minimum_size = Vector2(160, 0)
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 4
|
||||
@@ -218,13 +218,13 @@ min_value = 1.0
|
||||
max_value = 20.0
|
||||
value = 8.0
|
||||
|
||||
[node name="Value" type="Label" parent="Options/MaxStepsPerFrame"]
|
||||
[node name="Value" type="Label" parent="Options/MaxStepsPerFrame" unique_id=233340329]
|
||||
layout_mode = 2
|
||||
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
|
||||
theme_override_constants/outline_size = 4
|
||||
text = "8"
|
||||
|
||||
[node name="PhysicsInterpolation" type="CheckButton" parent="Options"]
|
||||
[node name="PhysicsInterpolation" type="CheckButton" parent="Options" unique_id=594845751]
|
||||
custom_minimum_size = Vector2(217, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
@@ -235,7 +235,7 @@ button_pressed = true
|
||||
text = "Physics Interpolation"
|
||||
script = ExtResource("11_ycdy4")
|
||||
|
||||
[node name="PanelLog" type="Panel" parent="."]
|
||||
[node name="PanelLog" type="Panel" parent="." unique_id=859449411]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
@@ -249,7 +249,7 @@ grow_vertical = 0
|
||||
mouse_filter = 1
|
||||
theme_override_styles/panel = SubResource("1")
|
||||
|
||||
[node name="ButtonClear" type="Button" parent="PanelLog"]
|
||||
[node name="ButtonClear" type="Button" parent="PanelLog" unique_id=1294766683]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
@@ -265,7 +265,7 @@ grow_vertical = 0
|
||||
focus_mode = 0
|
||||
text = "Clear"
|
||||
|
||||
[node name="CheckBoxScroll" type="CheckButton" parent="PanelLog"]
|
||||
[node name="CheckBoxScroll" type="CheckButton" parent="PanelLog" unique_id=377719472]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
@@ -282,7 +282,7 @@ focus_mode = 0
|
||||
button_pressed = true
|
||||
text = "Automatic Scrolling"
|
||||
|
||||
[node name="ScrollLog" type="ScrollContainer" parent="PanelLog"]
|
||||
[node name="ScrollLog" type="ScrollContainer" parent="PanelLog" unique_id=2110387942]
|
||||
layout_mode = 0
|
||||
offset_left = 10.0
|
||||
offset_top = 5.0
|
||||
@@ -291,14 +291,14 @@ offset_bottom = 210.0
|
||||
script = ExtResource("11")
|
||||
auto_scroll = true
|
||||
|
||||
[node name="VBoxLog" type="VBoxContainer" parent="PanelLog/ScrollLog"]
|
||||
[node name="VBoxLog" type="VBoxContainer" parent="PanelLog/ScrollLog" unique_id=1138962883]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
alignment = 2
|
||||
script = ExtResource("10")
|
||||
|
||||
[node name="LabelLog" type="Label" parent="PanelLog/ScrollLog/VBoxLog"]
|
||||
[node name="LabelLog" type="Label" parent="PanelLog/ScrollLog/VBoxLog" unique_id=1624492529]
|
||||
layout_mode = 2
|
||||
text = "Log start"
|
||||
max_lines_visible = 5
|
||||
|
||||
@@ -13,7 +13,7 @@ config_version=5
|
||||
config/name="2D Physics Tests"
|
||||
config/tags=PackedStringArray("2d", "demo", "official", "physics")
|
||||
run/main_scene="res://main.tscn"
|
||||
config/features=PackedStringArray("4.5")
|
||||
config/features=PackedStringArray("4.6")
|
||||
config/icon="res://icon.webp"
|
||||
|
||||
[autoload]
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://yprbfhqhs7p0"]
|
||||
[gd_scene format=3 uid="uid://yprbfhqhs7p0"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="1"]
|
||||
size = Vector2(40, 40)
|
||||
|
||||
[node name="StackBox" type="RigidBody2D"]
|
||||
[node name="StackBox" type="RigidBody2D" unique_id=1764330786]
|
||||
position = Vector2(-180, -20)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=558482687]
|
||||
shape = SubResource("1")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=12 format=3 uid="uid://b4gn8h4n7rkt8"]
|
||||
[gd_scene format=3 uid="uid://b4gn8h4n7rkt8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://nmj1humuvys0" path="res://tests/functional/test_character_pixels.gd" id="1"]
|
||||
[ext_resource type="Script" uid="uid://b0jkxylp22kyw" path="res://utils/rigidbody_controller.gd" id="2"]
|
||||
@@ -24,14 +24,14 @@ size = Vector2(6, 10)
|
||||
[sub_resource type="RectangleShape2D" id="6"]
|
||||
size = Vector2(20, 4)
|
||||
|
||||
[node name="Test" type="Node2D"]
|
||||
[node name="Test" type="Node2D" unique_id=152241021]
|
||||
script = ExtResource("1")
|
||||
_motion_speed = 30.0
|
||||
_gravity_force = 2.0
|
||||
_jump_force = 50.0
|
||||
_snap_distance = 1.0
|
||||
|
||||
[node name="ViewportContainer" type="SubViewportContainer" parent="."]
|
||||
[node name="ViewportContainer" type="SubViewportContainer" parent="." unique_id=636890399]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
@@ -41,41 +41,41 @@ size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
stretch = true
|
||||
|
||||
[node name="Viewport" type="SubViewport" parent="ViewportContainer"]
|
||||
[node name="Viewport" type="SubViewport" parent="ViewportContainer" unique_id=1722913787]
|
||||
handle_input_locally = false
|
||||
size = Vector2i(1024, 600)
|
||||
size_2d_override = Vector2i(128, 75)
|
||||
size_2d_override_stretch = true
|
||||
render_target_update_mode = 4
|
||||
|
||||
[node name="StaticSceneFlat" parent="ViewportContainer/Viewport" instance=ExtResource("4")]
|
||||
[node name="StaticSceneFlat" parent="ViewportContainer/Viewport" unique_id=176586756 instance=ExtResource("4")]
|
||||
position = Vector2(0, -450)
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="ViewportContainer/Viewport"]
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="ViewportContainer/Viewport" unique_id=2117387502]
|
||||
position = Vector2(30, 40)
|
||||
collision_mask = 2147483649
|
||||
script = ExtResource("7")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/CharacterBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/CharacterBody2D" unique_id=741686706]
|
||||
shape = SubResource("3")
|
||||
debug_color = Color(0, 1, 0, 0.0980392)
|
||||
|
||||
[node name="CharacterBodyRay2D" type="CharacterBody2D" parent="ViewportContainer/Viewport"]
|
||||
[node name="CharacterBodyRay2D" type="CharacterBody2D" parent="ViewportContainer/Viewport" unique_id=1443061453]
|
||||
position = Vector2(30, 40)
|
||||
collision_mask = 2147483649
|
||||
script = ExtResource("7")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/CharacterBodyRay2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/CharacterBodyRay2D" unique_id=1491368171]
|
||||
position = Vector2(0, -2.5)
|
||||
shape = SubResource("RectangleShape2D_scs3g")
|
||||
debug_color = Color(0, 1, 0, 0.0980392)
|
||||
|
||||
[node name="CollisionShapeRay2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/CharacterBodyRay2D"]
|
||||
[node name="CollisionShapeRay2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/CharacterBodyRay2D" unique_id=1584523437]
|
||||
position = Vector2(0, -2)
|
||||
shape = SubResource("SeparationRayShape2D_vby12")
|
||||
debug_color = Color(0, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidDynamicBody2D" type="RigidBody2D" parent="ViewportContainer/Viewport"]
|
||||
[node name="RigidDynamicBody2D" type="RigidBody2D" parent="ViewportContainer/Viewport" unique_id=486999686]
|
||||
position = Vector2(30, 40)
|
||||
collision_mask = 2147483649
|
||||
physics_material_override = SubResource("1")
|
||||
@@ -83,11 +83,11 @@ lock_rotation = true
|
||||
contact_monitor = true
|
||||
script = ExtResource("2")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/RigidDynamicBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/RigidDynamicBody2D" unique_id=80710354]
|
||||
shape = SubResource("2")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodyRay2D" type="RigidBody2D" parent="ViewportContainer/Viewport"]
|
||||
[node name="RigidBodyRay2D" type="RigidBody2D" parent="ViewportContainer/Viewport" unique_id=860170656]
|
||||
position = Vector2(30, 40)
|
||||
collision_mask = 2147483649
|
||||
physics_material_override = SubResource("1")
|
||||
@@ -95,70 +95,70 @@ lock_rotation = true
|
||||
contact_monitor = true
|
||||
script = ExtResource("2")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/RigidBodyRay2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/RigidBodyRay2D" unique_id=10099508]
|
||||
position = Vector2(0, -2.5)
|
||||
shape = SubResource("RectangleShape2D_scs3g")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="CollisionShapeRay2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/RigidBodyRay2D"]
|
||||
[node name="CollisionShapeRay2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/RigidBodyRay2D" unique_id=963006796]
|
||||
position = Vector2(0, -2)
|
||||
shape = SubResource("SeparationRayShape2D_vby12")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="Wall1" type="StaticBody2D" parent="ViewportContainer/Viewport"]
|
||||
[node name="Wall1" type="StaticBody2D" parent="ViewportContainer/Viewport" unique_id=602706131]
|
||||
position = Vector2(20, 40)
|
||||
|
||||
[node name="Wall2" type="StaticBody2D" parent="ViewportContainer/Viewport"]
|
||||
[node name="Wall2" type="StaticBody2D" parent="ViewportContainer/Viewport" unique_id=719719767]
|
||||
position = Vector2(122, 40)
|
||||
|
||||
[node name="Platform1" type="StaticBody2D" parent="ViewportContainer/Viewport"]
|
||||
[node name="Platform1" type="StaticBody2D" parent="ViewportContainer/Viewport" unique_id=2074359358]
|
||||
position = Vector2(50, 44)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/Platform1"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/Platform1" unique_id=1147030331]
|
||||
shape = SubResource("6")
|
||||
one_way_collision = true
|
||||
debug_color = Color(0, 0.533333, 1, 0.0980392)
|
||||
|
||||
[node name="Platform2" type="StaticBody2D" parent="ViewportContainer/Viewport"]
|
||||
[node name="Platform2" type="StaticBody2D" parent="ViewportContainer/Viewport" unique_id=1980854548]
|
||||
position = Vector2(80, 38)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/Platform2"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ViewportContainer/Viewport/Platform2" unique_id=866872349]
|
||||
shape = SubResource("6")
|
||||
debug_color = Color(0, 0.533333, 1, 0.0980392)
|
||||
|
||||
[node name="Slope" type="StaticBody2D" parent="ViewportContainer/Viewport"]
|
||||
[node name="Slope" type="StaticBody2D" parent="ViewportContainer/Viewport" unique_id=1700334965]
|
||||
position = Vector2(85, 36)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionPolygon2D" parent="ViewportContainer/Viewport/Slope"]
|
||||
[node name="CollisionShape2D" type="CollisionPolygon2D" parent="ViewportContainer/Viewport/Slope" unique_id=833316202]
|
||||
polygon = PackedVector2Array(0, 0, 6, 0, 22, 16, 16, 16)
|
||||
|
||||
[node name="SubViewportContainer_SubViewport_Wall1#CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="SubViewportContainer_SubViewport_Wall1#CollisionShape2D" type="CollisionShape2D" parent="." unique_id=324743157]
|
||||
rotation = 1.5708
|
||||
shape = SubResource("6")
|
||||
debug_color = Color(0, 0.6, 0.7, 0.42)
|
||||
|
||||
[node name="SubViewportContainer_SubViewport_Wall2#CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="SubViewportContainer_SubViewport_Wall2#CollisionShape2D" type="CollisionShape2D" parent="." unique_id=2005301768]
|
||||
rotation = 1.5708
|
||||
shape = SubResource("6")
|
||||
debug_color = Color(0, 0.6, 0.7, 0.42)
|
||||
|
||||
[node name="LabelTestType" type="Label" parent="."]
|
||||
[node name="LabelTestType" type="Label" parent="." unique_id=1199744586]
|
||||
offset_left = 14.0
|
||||
offset_top = 79.0
|
||||
offset_right = 145.0
|
||||
offset_bottom = 93.0
|
||||
text = "Testing: "
|
||||
|
||||
[node name="Options" parent="." instance=ExtResource("3")]
|
||||
[node name="Options" parent="." unique_id=87509474 instance=ExtResource("3")]
|
||||
|
||||
[node name="LabelFloor" type="Label" parent="."]
|
||||
[node name="LabelFloor" type="Label" parent="." unique_id=68159891]
|
||||
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="."]
|
||||
[node name="LabelControls" type="Label" parent="." unique_id=2133054037]
|
||||
offset_left = 14.0
|
||||
offset_top = 263.291
|
||||
offset_right = 145.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=15 format=3 uid="uid://dcpy1a0rk8cb8"]
|
||||
[gd_scene format=3 uid="uid://dcpy1a0rk8cb8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cwi8jmbb33c0i" path="res://tests/functional/test_character.gd" id="1"]
|
||||
[ext_resource type="PackedScene" uid="uid://cwjfkltvisc0n" path="res://tests/test_options.tscn" id="3"]
|
||||
@@ -31,28 +31,28 @@ radius = 32.0
|
||||
[sub_resource type="SeparationRayShape2D" id="RayShape2D_w83f0"]
|
||||
length = 64.0
|
||||
|
||||
[node name="Test" type="Node2D"]
|
||||
[node name="Test" type="Node2D" unique_id=708037199]
|
||||
script = ExtResource("1")
|
||||
_snap_distance = 32.0
|
||||
_floor_max_angle = 60.0
|
||||
|
||||
[node name="LabelTestType" type="Label" parent="."]
|
||||
[node name="LabelTestType" type="Label" parent="." unique_id=1608347537]
|
||||
offset_left = 14.0
|
||||
offset_top = 79.0
|
||||
offset_right = 145.0
|
||||
offset_bottom = 93.0
|
||||
text = "Testing: "
|
||||
|
||||
[node name="Options" parent="." instance=ExtResource("3")]
|
||||
[node name="Options" parent="." unique_id=1934766548 instance=ExtResource("3")]
|
||||
|
||||
[node name="LabelFloor" type="Label" parent="."]
|
||||
[node name="LabelFloor" type="Label" parent="." unique_id=1412264601]
|
||||
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="."]
|
||||
[node name="LabelControls" type="Label" parent="." unique_id=306282668]
|
||||
offset_left = 14.0
|
||||
offset_top = 263.291
|
||||
offset_right = 145.0
|
||||
@@ -60,7 +60,7 @@ offset_bottom = 294.291
|
||||
text = "LEFT/RIGHT - MOVE
|
||||
UP - JUMP"
|
||||
|
||||
[node name="FloorMaxAngle" type="HBoxContainer" parent="."]
|
||||
[node name="FloorMaxAngle" type="HBoxContainer" parent="." unique_id=772465303]
|
||||
offset_left = 14.0
|
||||
offset_top = 160.0
|
||||
offset_right = 476.0
|
||||
@@ -68,47 +68,47 @@ offset_bottom = 186.0
|
||||
theme_override_constants/separation = 20
|
||||
alignment = 2
|
||||
|
||||
[node name="Label" type="Label" parent="FloorMaxAngle"]
|
||||
[node name="Label" type="Label" parent="FloorMaxAngle" unique_id=1454121721]
|
||||
layout_mode = 2
|
||||
text = "Floor Max angle"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="FloorMaxAngle"]
|
||||
[node name="HSlider" type="HSlider" parent="FloorMaxAngle" unique_id=412005815]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
max_value = 180.0
|
||||
script = ExtResource("3_cd5g0")
|
||||
snap_step = 5.0
|
||||
|
||||
[node name="LabelValue" type="Label" parent="FloorMaxAngle"]
|
||||
[node name="LabelValue" type="Label" parent="FloorMaxAngle" unique_id=1362034584]
|
||||
layout_mode = 2
|
||||
text = "0.0"
|
||||
script = ExtResource("4_eoplu")
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="." unique_id=1742613051]
|
||||
position = Vector2(100, 450)
|
||||
collision_mask = 2147483649
|
||||
script = ExtResource("7")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D" unique_id=418049460]
|
||||
shape = SubResource("3")
|
||||
debug_color = Color(0, 1, 0, 0.0980392)
|
||||
|
||||
[node name="CharacterBodyRay2D" type="CharacterBody2D" parent="."]
|
||||
[node name="CharacterBodyRay2D" type="CharacterBody2D" parent="." unique_id=1681799428]
|
||||
position = Vector2(100, 450)
|
||||
collision_mask = 2147483649
|
||||
script = ExtResource("7")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBodyRay2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBodyRay2D" unique_id=1343232865]
|
||||
position = Vector2(0, -16)
|
||||
shape = SubResource("CircleShape2D_llvur")
|
||||
debug_color = Color(0, 1, 0, 0.0980392)
|
||||
|
||||
[node name="CollisionShapeRay2D" type="CollisionShape2D" parent="CharacterBodyRay2D"]
|
||||
[node name="CollisionShapeRay2D" type="CollisionShape2D" parent="CharacterBodyRay2D" unique_id=1936911797]
|
||||
position = Vector2(0, -16)
|
||||
shape = SubResource("RayShape2D_3lv1w")
|
||||
debug_color = Color(0, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidDynamicBody2D" type="RigidBody2D" parent="."]
|
||||
[node name="RigidDynamicBody2D" type="RigidBody2D" parent="." unique_id=2086705732]
|
||||
position = Vector2(100, 450)
|
||||
collision_mask = 2147483649
|
||||
physics_material_override = SubResource("1")
|
||||
@@ -116,11 +116,11 @@ lock_rotation = true
|
||||
contact_monitor = true
|
||||
script = ExtResource("6")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidDynamicBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidDynamicBody2D" unique_id=1003504887]
|
||||
shape = SubResource("2")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodyRay2D" type="RigidBody2D" parent="."]
|
||||
[node name="RigidBodyRay2D" type="RigidBody2D" parent="." unique_id=385727826]
|
||||
position = Vector2(100, 450)
|
||||
collision_mask = 2147483649
|
||||
physics_material_override = SubResource("1")
|
||||
@@ -128,22 +128,22 @@ lock_rotation = true
|
||||
contact_monitor = true
|
||||
script = ExtResource("6")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBodyRay2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBodyRay2D" unique_id=540796978]
|
||||
position = Vector2(-7.62939e-06, -16)
|
||||
shape = SubResource("CircleShape2D_dr08f")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="CollisionShapeRay2D" type="CollisionShape2D" parent="RigidBodyRay2D"]
|
||||
[node name="CollisionShapeRay2D" type="CollisionShape2D" parent="RigidBodyRay2D" unique_id=1487362999]
|
||||
position = Vector2(-7.62939e-06, -16)
|
||||
shape = SubResource("RayShape2D_w83f0")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="StaticSceneFlat" parent="." instance=ExtResource("4")]
|
||||
[node name="StaticSceneFlat" parent="." unique_id=1651722863 instance=ExtResource("4")]
|
||||
position = Vector2(0, 12)
|
||||
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||
[node name="StaticBody2D" type="StaticBody2D" parent="." unique_id=547964258]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="StaticBody2D"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="StaticBody2D" unique_id=944757009]
|
||||
polygon = PackedVector2Array(171.04, 529.248, 379.275, 294.316, 506.084, 429.135, 648.26, 322.058, 868.746, 322.058, 985.282, 36.6919, 1242.91, 531.917)
|
||||
|
||||
[connection signal="value_changed" from="FloorMaxAngle/HSlider" to="." method="_update_floor_max_angle"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=12 format=4 uid="uid://c6ncvkymn6dj3"]
|
||||
[gd_scene 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"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://dlsit8un6ax3r"]
|
||||
[gd_scene format=3 uid="uid://dlsit8un6ax3r"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bnidvscv3kh2r" path="res://tests/functional/test_collision_pairs.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://d2ujwstm8tvci" path="res://assets/texture/godot-head.png" id="2"]
|
||||
@@ -17,78 +17,78 @@ height = 110.0
|
||||
[sub_resource type="ConcavePolygonShape2D" id="4"]
|
||||
segments = PackedVector2Array(-5.93512, -43.2195, 6.44476, -42.9695, 6.44476, -42.9695, 11.127, -54.3941, 11.127, -54.3941, 26.9528, -49.4309, 26.9528, -49.4309, 26.2037, -36.508, 26.2037, -36.508, 37.5346, -28.1737, 37.5346, -28.1737, 47.6282, -34.3806, 47.6282, -34.3806, 58.0427, -20.9631, 58.0427, -20.9631, 51.113, -10.2876, 51.113, -10.2876, 50.9869, 35.2694, 50.9869, 35.2694, 38.8, 47.5, 38.8, 47.5, 15.9852, 54.3613, 15.9852, 54.3613, -14.9507, 54.1845, -14.9507, 54.1845, -36.5, 48.1, -36.5, 48.1, -50.4828, 36.33, -50.4828, 36.33, -51.3668, -9.98545, -51.3668, -9.98545, -57.8889, -20.5885, -57.8889, -20.5885, -46.9473, -34.7342, -46.9473, -34.7342, -37.4014, -28.547, -37.4014, -28.547, -26.0876, -37.0323, -26.0876, -37.0323, -26.9862, -49.15, -26.9862, -49.15, -11.4152, -54.5332, -11.4152, -54.5332, -5.93512, -43.2195)
|
||||
|
||||
[node name="Test" type="Node2D"]
|
||||
[node name="Test" type="Node2D" unique_id=760039979]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Options" parent="." instance=ExtResource("3")]
|
||||
[node name="Options" parent="." unique_id=887282195 instance=ExtResource("3")]
|
||||
|
||||
[node name="Shapes" type="Node2D" parent="."]
|
||||
[node name="Shapes" type="Node2D" parent="." unique_id=1651467330]
|
||||
z_index = -1
|
||||
z_as_relative = false
|
||||
|
||||
[node name="RigidBodyRectangle" type="RigidBody2D" parent="Shapes"]
|
||||
[node name="RigidBodyRectangle" type="RigidBody2D" parent="Shapes" unique_id=914457354]
|
||||
position = Vector2(114.877, 248.76)
|
||||
freeze = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shapes/RigidBodyRectangle"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shapes/RigidBodyRectangle" unique_id=1095284664]
|
||||
rotation = -1.19206
|
||||
scale = Vector2(1.2, 1.2)
|
||||
shape = SubResource("1")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodySphere" type="RigidBody2D" parent="Shapes"]
|
||||
[node name="RigidBodySphere" type="RigidBody2D" parent="Shapes" unique_id=1380480525]
|
||||
position = Vector2(314.894, 257.658)
|
||||
freeze = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shapes/RigidBodySphere"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shapes/RigidBodySphere" unique_id=2138293174]
|
||||
shape = SubResource("2")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodyCapsule" type="RigidBody2D" parent="Shapes"]
|
||||
[node name="RigidBodyCapsule" type="RigidBody2D" parent="Shapes" unique_id=515496187]
|
||||
position = Vector2(465.629, 261.204)
|
||||
freeze = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shapes/RigidBodyCapsule"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shapes/RigidBodyCapsule" unique_id=977792112]
|
||||
rotation = -0.202458
|
||||
scale = Vector2(1.2, 1.2)
|
||||
shape = SubResource("3")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodyConvexPolygon" type="RigidBody2D" parent="Shapes"]
|
||||
[node name="RigidBodyConvexPolygon" type="RigidBody2D" parent="Shapes" unique_id=803386569]
|
||||
position = Vector2(613.385, 252.771)
|
||||
freeze = true
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shapes/RigidBodyConvexPolygon"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shapes/RigidBodyConvexPolygon" unique_id=347526724]
|
||||
polygon = PackedVector2Array(10.7, -54.5, 28.3596, -49.4067, 47.6282, -34.3806, 57.9717, -20.9447, 50.9869, 35.2694, 38.8, 47.5, 15.9852, 54.3613, -14.9507, 54.1845, -36.5, 48.1, -50.4828, 36.33, -58.0115, -20.515, -46.9473, -34.7342, -26.0876, -50.1138, -11.4152, -54.5332)
|
||||
|
||||
[node name="GodotIcon" type="Sprite2D" parent="Shapes/RigidBodyConvexPolygon"]
|
||||
[node name="GodotIcon" type="Sprite2D" parent="Shapes/RigidBodyConvexPolygon" unique_id=58725154]
|
||||
modulate = Color(1, 1, 1, 0.392157)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="RigidBodyConcavePolygon" type="RigidBody2D" parent="Shapes"]
|
||||
[node name="RigidBodyConcavePolygon" type="RigidBody2D" parent="Shapes" unique_id=934302510]
|
||||
position = Vector2(771.159, 252.771)
|
||||
freeze = true
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shapes/RigidBodyConcavePolygon"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shapes/RigidBodyConcavePolygon" unique_id=1311096948]
|
||||
polygon = PackedVector2Array(-5.93512, -43.2195, 6.44476, -42.9695, 11.127, -54.3941, 26.9528, -49.4309, 26.2037, -36.508, 37.5346, -28.1737, 47.6282, -34.3806, 58.0427, -20.9631, 51.113, -10.2876, 50.9869, 35.2694, 38.8, 47.5, 15.9852, 54.3613, -14.9507, 54.1845, -36.5, 48.1, -50.4828, 36.33, -51.3668, -9.98545, -57.8889, -20.5885, -46.9473, -34.7342, -37.4014, -28.547, -26.0876, -37.0323, -26.9862, -49.15, -11.4152, -54.5332)
|
||||
|
||||
[node name="GodotIcon" type="Sprite2D" parent="Shapes/RigidBodyConcavePolygon"]
|
||||
[node name="GodotIcon" type="Sprite2D" parent="Shapes/RigidBodyConcavePolygon" unique_id=152643855]
|
||||
modulate = Color(1, 1, 1, 0.392157)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="RigidBodyConcaveSegments" type="RigidBody2D" parent="Shapes"]
|
||||
[node name="RigidBodyConcaveSegments" type="RigidBody2D" parent="Shapes" unique_id=1695139509]
|
||||
position = Vector2(930.097, 252.771)
|
||||
freeze = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shapes/RigidBodyConcaveSegments"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shapes/RigidBodyConcaveSegments" unique_id=2070109080]
|
||||
shape = SubResource("4")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="GodotIcon" type="Sprite2D" parent="Shapes/RigidBodyConcaveSegments"]
|
||||
[node name="GodotIcon" type="Sprite2D" parent="Shapes/RigidBodyConcaveSegments" unique_id=572224783]
|
||||
modulate = Color(1, 1, 1, 0.392157)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="Controls" type="VBoxContainer" parent="."]
|
||||
[node name="Controls" type="VBoxContainer" parent="." unique_id=1543916071]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
@@ -98,32 +98,32 @@ offset_right = 218.362
|
||||
offset_bottom = 458.765
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="OffsetH" type="HBoxContainer" parent="Controls"]
|
||||
[node name="OffsetH" type="HBoxContainer" parent="Controls" unique_id=1421061196]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 20
|
||||
alignment = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Controls/OffsetH"]
|
||||
[node name="Label" type="Label" parent="Controls/OffsetH" unique_id=1467828472]
|
||||
layout_mode = 2
|
||||
text = "Offset H"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="Controls/OffsetH"]
|
||||
[node name="HSlider" type="HSlider" parent="Controls/OffsetH" unique_id=1859311493]
|
||||
custom_minimum_size = Vector2(200, 0)
|
||||
layout_mode = 2
|
||||
min_value = -1.0
|
||||
max_value = 1.0
|
||||
step = 0.01
|
||||
|
||||
[node name="OffsetV" type="HBoxContainer" parent="Controls"]
|
||||
[node name="OffsetV" type="HBoxContainer" parent="Controls" unique_id=1613276541]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 20
|
||||
alignment = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Controls/OffsetV"]
|
||||
[node name="Label" type="Label" parent="Controls/OffsetV" unique_id=293647334]
|
||||
layout_mode = 2
|
||||
text = "Offset V"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="Controls/OffsetV"]
|
||||
[node name="HSlider" type="HSlider" parent="Controls/OffsetV" unique_id=1017248588]
|
||||
custom_minimum_size = Vector2(200, 0)
|
||||
layout_mode = 2
|
||||
min_value = -1.0
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://b0p2x0t1iiqf6"]
|
||||
[gd_scene format=3 uid="uid://b0p2x0t1iiqf6"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bh82f07h87s6y" path="res://tests/functional/test_joints.gd" id="2"]
|
||||
[ext_resource type="PackedScene" uid="uid://cwjfkltvisc0n" path="res://tests/test_options.tscn" id="4"]
|
||||
|
||||
[node name="JointTest2D" type="Node2D"]
|
||||
[node name="JointTest2D" type="Node2D" unique_id=1030909811]
|
||||
script = ExtResource("2")
|
||||
|
||||
[node name="LabelJointType" type="Label" parent="."]
|
||||
[node name="LabelJointType" type="Label" parent="." unique_id=932688892]
|
||||
offset_left = 14.0
|
||||
offset_top = 79.0
|
||||
offset_right = 145.0
|
||||
offset_bottom = 93.0
|
||||
text = "Joint Type: "
|
||||
|
||||
[node name="Options" parent="." instance=ExtResource("4")]
|
||||
[node name="Options" parent="." unique_id=1092798145 instance=ExtResource("4")]
|
||||
|
||||
[node name="Joints" type="Node2D" parent="."]
|
||||
[node name="Joints" type="Node2D" parent="." unique_id=1069918392]
|
||||
position = Vector2(512, 200)
|
||||
|
||||
[node name="PinJoint2D" type="PinJoint2D" parent="Joints"]
|
||||
[node name="PinJoint2D" type="PinJoint2D" parent="Joints" unique_id=16229002]
|
||||
|
||||
[node name="DampedSpringJoint2D" type="DampedSpringJoint2D" parent="Joints"]
|
||||
[node name="DampedSpringJoint2D" type="DampedSpringJoint2D" parent="Joints" unique_id=553853747]
|
||||
|
||||
[node name="GrooveJoint2D" type="GrooveJoint2D" parent="Joints"]
|
||||
[node name="GrooveJoint2D" type="GrooveJoint2D" parent="Joints" unique_id=1336705272]
|
||||
|
||||
[node name="Objects" type="Node2D" parent="."]
|
||||
[node name="Objects" type="Node2D" parent="." unique_id=1793709354]
|
||||
position = Vector2(512, 200)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://dsql8ihjjomwc"]
|
||||
[gd_scene format=3 uid="uid://dsql8ihjjomwc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://chf520lkt2et" path="res://tests/functional/test_one_way_collision.gd" id="1"]
|
||||
[ext_resource type="Texture2D" uid="uid://dce6bomnuj24c" path="res://icon.webp" id="2"]
|
||||
@@ -15,19 +15,19 @@ size = Vector2(128, 64)
|
||||
[sub_resource type="RectangleShape2D" id="3"]
|
||||
size = Vector2(64, 64)
|
||||
|
||||
[node name="Test" type="Node2D"]
|
||||
[node name="Test" type="Node2D" unique_id=1907505970]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="LabelTestType" type="Label" parent="."]
|
||||
[node name="LabelTestType" type="Label" parent="." unique_id=1061420347]
|
||||
offset_left = 14.0
|
||||
offset_top = 79.0
|
||||
offset_right = 145.0
|
||||
offset_bottom = 93.0
|
||||
text = "Testing: "
|
||||
|
||||
[node name="Options" parent="." instance=ExtResource("3")]
|
||||
[node name="Options" parent="." unique_id=1692809787 instance=ExtResource("3")]
|
||||
|
||||
[node name="Controls" type="VBoxContainer" parent="."]
|
||||
[node name="Controls" type="VBoxContainer" parent="." unique_id=1527188243]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
@@ -39,18 +39,18 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/separation = 10
|
||||
|
||||
[node name="PlatformSize" type="HBoxContainer" parent="Controls"]
|
||||
[node name="PlatformSize" type="HBoxContainer" parent="Controls" unique_id=1520140173]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 20
|
||||
alignment = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Controls/PlatformSize"]
|
||||
[node name="Label" type="Label" parent="Controls/PlatformSize" unique_id=1397346691]
|
||||
custom_minimum_size = Vector2(120, 2.08165e-12)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
text = "Platform size"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="Controls/PlatformSize"]
|
||||
[node name="HSlider" type="HSlider" parent="Controls/PlatformSize" unique_id=2127572956]
|
||||
custom_minimum_size = Vector2(200, 2.08165e-12)
|
||||
layout_mode = 2
|
||||
min_value = 64.0
|
||||
@@ -58,59 +58,59 @@ max_value = 256.0
|
||||
value = 64.0
|
||||
script = ExtResource("5")
|
||||
|
||||
[node name="LabelValue" type="Label" parent="Controls/PlatformSize"]
|
||||
[node name="LabelValue" type="Label" parent="Controls/PlatformSize" unique_id=1669245169]
|
||||
custom_minimum_size = Vector2(60, 2.08165e-12)
|
||||
layout_mode = 2
|
||||
text = "64.0"
|
||||
script = ExtResource("4")
|
||||
|
||||
[node name="PlatformAngle" type="HBoxContainer" parent="Controls"]
|
||||
[node name="PlatformAngle" type="HBoxContainer" parent="Controls" unique_id=2047908002]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 20
|
||||
alignment = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Controls/PlatformAngle"]
|
||||
[node name="Label" type="Label" parent="Controls/PlatformAngle" unique_id=1347694656]
|
||||
custom_minimum_size = Vector2(120, 2.08165e-12)
|
||||
layout_mode = 2
|
||||
text = "Platform angle"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="Controls/PlatformAngle"]
|
||||
[node name="HSlider" type="HSlider" parent="Controls/PlatformAngle" unique_id=657872341]
|
||||
custom_minimum_size = Vector2(200, 2.08165e-12)
|
||||
layout_mode = 2
|
||||
max_value = 360.0
|
||||
script = ExtResource("5")
|
||||
snap_step = 5.0
|
||||
|
||||
[node name="LabelValue" type="Label" parent="Controls/PlatformAngle"]
|
||||
[node name="LabelValue" type="Label" parent="Controls/PlatformAngle" unique_id=541909043]
|
||||
custom_minimum_size = Vector2(60, 2.08165e-12)
|
||||
layout_mode = 2
|
||||
text = "0.0"
|
||||
script = ExtResource("4")
|
||||
|
||||
[node name="BodyAngle" type="HBoxContainer" parent="Controls"]
|
||||
[node name="BodyAngle" type="HBoxContainer" parent="Controls" unique_id=905556826]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 20
|
||||
alignment = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Controls/BodyAngle"]
|
||||
[node name="Label" type="Label" parent="Controls/BodyAngle" unique_id=1365776267]
|
||||
custom_minimum_size = Vector2(120, 2.08165e-12)
|
||||
layout_mode = 2
|
||||
text = "Body angle"
|
||||
|
||||
[node name="HSlider" type="HSlider" parent="Controls/BodyAngle"]
|
||||
[node name="HSlider" type="HSlider" parent="Controls/BodyAngle" unique_id=1999919062]
|
||||
custom_minimum_size = Vector2(200, 2.08165e-12)
|
||||
layout_mode = 2
|
||||
max_value = 360.0
|
||||
script = ExtResource("5")
|
||||
snap_step = 5.0
|
||||
|
||||
[node name="LabelValue" type="Label" parent="Controls/BodyAngle"]
|
||||
[node name="LabelValue" type="Label" parent="Controls/BodyAngle" unique_id=1987445644]
|
||||
custom_minimum_size = Vector2(60, 2.08165e-12)
|
||||
layout_mode = 2
|
||||
text = "0.0"
|
||||
script = ExtResource("4")
|
||||
|
||||
[node name="LabelResultTitle" type="Label" parent="."]
|
||||
[node name="LabelResultTitle" type="Label" parent="." unique_id=1234187329]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
@@ -122,7 +122,7 @@ offset_right = 88.1273
|
||||
offset_bottom = 265.131
|
||||
text = "RESULT: "
|
||||
|
||||
[node name="LabelResult" type="Label" parent="."]
|
||||
[node name="LabelResult" type="Label" parent="." unique_id=209392518]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
@@ -134,7 +134,7 @@ offset_right = 88.1273
|
||||
offset_bottom = 280.131
|
||||
text = "..."
|
||||
|
||||
[node name="LabelRestart" type="Label" parent="."]
|
||||
[node name="LabelRestart" type="Label" parent="." unique_id=289828093]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
@@ -146,50 +146,50 @@ offset_right = 139.127
|
||||
offset_bottom = 318.841
|
||||
text = "SPACE - RESTART"
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
[node name="Timer" type="Timer" parent="." unique_id=247261981]
|
||||
wait_time = 5.0
|
||||
one_shot = true
|
||||
|
||||
[node name="TargetArea2D" type="Area2D" parent="."]
|
||||
[node name="TargetArea2D" type="Area2D" parent="." unique_id=921452050]
|
||||
position = Vector2(512, 300)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TargetArea2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TargetArea2D" unique_id=2129384612]
|
||||
shape = SubResource("CircleShape2D_e5nt1")
|
||||
debug_color = Color(1, 0, 1, 0.0980392)
|
||||
|
||||
[node name="OneWayStaticBody2D" type="StaticBody2D" parent="."]
|
||||
[node name="OneWayStaticBody2D" type="StaticBody2D" parent="." unique_id=966759254]
|
||||
position = Vector2(512, 300)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="OneWayStaticBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="OneWayStaticBody2D" unique_id=513423926]
|
||||
shape = SubResource("2")
|
||||
one_way_collision = true
|
||||
debug_color = Color(0, 0.533333, 1, 0.0980392)
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="." unique_id=1310305007]
|
||||
position = Vector2(300, 300)
|
||||
collision_mask = 2147483649
|
||||
gravity_scale = 0.0
|
||||
contact_monitor = true
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="RigidBody2D"]
|
||||
[node name="Sprite" type="Sprite2D" parent="RigidBody2D" unique_id=1194019764]
|
||||
self_modulate = Color(1, 1, 1, 0.501961)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D" unique_id=1461267028]
|
||||
shape = SubResource("3")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" parent="." unique_id=1647646622]
|
||||
position = Vector2(300, 300)
|
||||
collision_mask = 2147483649
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="CharacterBody2D"]
|
||||
[node name="Sprite" type="Sprite2D" parent="CharacterBody2D" unique_id=75704299]
|
||||
self_modulate = Color(1, 1, 1, 0.501961)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("2")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D" unique_id=1641387924]
|
||||
shape = SubResource("3")
|
||||
debug_color = Color(0, 1, 0, 0.0980392)
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://sb6gjd5qmf7d"]
|
||||
[gd_scene format=3 uid="uid://sb6gjd5qmf7d"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ciivkvibikjfc" path="res://tests/functional/test_pyramid.gd" id="1"]
|
||||
[ext_resource type="PackedScene" uid="uid://bme1oft43530u" path="res://tests/static_scene_flat.tscn" id="2"]
|
||||
|
||||
[node name="Test" type="Node2D"]
|
||||
[node name="Test" type="Node2D" unique_id=1807271551]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Pyramid" type="Node2D" parent="."]
|
||||
[node name="Pyramid" type="Node2D" parent="." unique_id=1881427247]
|
||||
position = Vector2(512, 500)
|
||||
|
||||
[node name="StaticSceneFlat" parent="." instance=ExtResource("2")]
|
||||
[node name="StaticSceneFlat" parent="." unique_id=1541781505 instance=ExtResource("2")]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://tmj3cphntn1i"]
|
||||
[gd_scene format=3 uid="uid://tmj3cphntn1i"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d2ujwstm8tvci" path="res://assets/texture/godot-head.png" id="1"]
|
||||
[ext_resource type="Script" uid="uid://br1sgv520f8fy" path="res://tests/functional/test_raycasting.gd" id="2"]
|
||||
@@ -14,76 +14,76 @@ radius = 60.0
|
||||
radius = 30.0
|
||||
height = 110.0
|
||||
|
||||
[node name="Test" type="Node2D"]
|
||||
[node name="Test" type="Node2D" unique_id=743165966]
|
||||
script = ExtResource("2")
|
||||
|
||||
[node name="Options" parent="." instance=ExtResource("2_q8u1v")]
|
||||
[node name="Options" parent="." unique_id=19438286 instance=ExtResource("2_q8u1v")]
|
||||
offset_right = 134.0
|
||||
offset_bottom = 135.719
|
||||
theme_override_font_sizes/font_size = 16
|
||||
|
||||
[node name="Shapes" type="Node2D" parent="."]
|
||||
[node name="Shapes" type="Node2D" parent="." unique_id=960991966]
|
||||
z_index = -1
|
||||
z_as_relative = false
|
||||
|
||||
[node name="RigidBodyRectangle" type="RigidBody2D" parent="Shapes"]
|
||||
[node name="RigidBodyRectangle" type="RigidBody2D" parent="Shapes" unique_id=1975378276]
|
||||
position = Vector2(114.877, 248.76)
|
||||
freeze = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shapes/RigidBodyRectangle"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shapes/RigidBodyRectangle" unique_id=2096011195]
|
||||
rotation = -1.19206
|
||||
scale = Vector2(1.2, 1.2)
|
||||
shape = SubResource("1")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodySphere" type="RigidBody2D" parent="Shapes"]
|
||||
[node name="RigidBodySphere" type="RigidBody2D" parent="Shapes" unique_id=417429994]
|
||||
position = Vector2(314.894, 257.658)
|
||||
freeze = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shapes/RigidBodySphere"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shapes/RigidBodySphere" unique_id=982889941]
|
||||
shape = SubResource("2")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodyCapsule" type="RigidBody2D" parent="Shapes"]
|
||||
[node name="RigidBodyCapsule" type="RigidBody2D" parent="Shapes" unique_id=1174776839]
|
||||
position = Vector2(465.629, 261.204)
|
||||
freeze = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shapes/RigidBodyCapsule"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Shapes/RigidBodyCapsule" unique_id=859203572]
|
||||
rotation = -0.202458
|
||||
scale = Vector2(1.2, 1.2)
|
||||
shape = SubResource("3")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodyConvexPolygon" type="RigidBody2D" parent="Shapes"]
|
||||
[node name="RigidBodyConvexPolygon" type="RigidBody2D" parent="Shapes" unique_id=1123108113]
|
||||
position = Vector2(613.385, 252.771)
|
||||
freeze = true
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shapes/RigidBodyConvexPolygon"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shapes/RigidBodyConvexPolygon" unique_id=1805659928]
|
||||
polygon = PackedVector2Array(10.7, -54.5, 28.3596, -49.4067, 47.6282, -34.3806, 57.9717, -20.9447, 50.9869, 35.2694, 38.8, 47.5, 15.9852, 54.3613, -14.9507, 54.1845, -36.5, 48.1, -50.4828, 36.33, -58.0115, -20.515, -46.9473, -34.7342, -26.0876, -50.1138, -11.4152, -54.5332)
|
||||
|
||||
[node name="GodotIcon" type="Sprite2D" parent="Shapes/RigidBodyConvexPolygon"]
|
||||
[node name="GodotIcon" type="Sprite2D" parent="Shapes/RigidBodyConvexPolygon" unique_id=555981430]
|
||||
modulate = Color(1, 1, 1, 0.392157)
|
||||
texture = ExtResource("1")
|
||||
|
||||
[node name="RigidBodyConcavePolygon" type="RigidBody2D" parent="Shapes"]
|
||||
[node name="RigidBodyConcavePolygon" type="RigidBody2D" parent="Shapes" unique_id=1081406353]
|
||||
position = Vector2(771.159, 252.771)
|
||||
freeze = true
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shapes/RigidBodyConcavePolygon"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shapes/RigidBodyConcavePolygon" unique_id=1149043747]
|
||||
polygon = PackedVector2Array(-5.93512, -43.2195, 6.44476, -42.9695, 11.127, -54.3941, 26.9528, -49.4309, 26.2037, -36.508, 37.5346, -28.1737, 47.6282, -34.3806, 58.0427, -20.9631, 51.113, -10.2876, 50.9869, 35.2694, 38.8, 47.5, 15.9852, 54.3613, -14.9507, 54.1845, -36.5, 48.1, -50.4828, 36.33, -51.3668, -9.98545, -57.8889, -20.5885, -46.9473, -34.7342, -37.4014, -28.547, -26.0876, -37.0323, -26.9862, -49.15, -11.4152, -54.5332)
|
||||
|
||||
[node name="GodotIcon" type="Sprite2D" parent="Shapes/RigidBodyConcavePolygon"]
|
||||
[node name="GodotIcon" type="Sprite2D" parent="Shapes/RigidBodyConcavePolygon" unique_id=2028380436]
|
||||
modulate = Color(1, 1, 1, 0.392157)
|
||||
texture = ExtResource("1")
|
||||
|
||||
[node name="RigidBodyConcaveSegments" type="RigidBody2D" parent="Shapes"]
|
||||
[node name="RigidBodyConcaveSegments" type="RigidBody2D" parent="Shapes" unique_id=2089952222]
|
||||
position = Vector2(930.097, 252.771)
|
||||
freeze = true
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shapes/RigidBodyConcaveSegments"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Shapes/RigidBodyConcaveSegments" unique_id=1705027971]
|
||||
build_mode = 1
|
||||
polygon = PackedVector2Array(-5.93512, -43.2195, 6.44476, -42.9695, 11.127, -54.3941, 26.9528, -49.4309, 26.2037, -36.508, 37.5346, -28.1737, 47.6282, -34.3806, 58.0427, -20.9631, 51.113, -10.2876, 50.9869, 35.2694, 38.8, 47.5, 15.9852, 54.3613, -14.9507, 54.1845, -36.5, 48.1, -50.4828, 36.33, -51.3668, -9.98545, -57.8889, -20.5885, -46.9473, -34.7342, -37.4014, -28.547, -26.0876, -37.0323, -26.9862, -49.15, -11.4152, -54.5332)
|
||||
|
||||
[node name="GodotIcon" type="Sprite2D" parent="Shapes/RigidBodyConcaveSegments"]
|
||||
[node name="GodotIcon" type="Sprite2D" parent="Shapes/RigidBodyConcaveSegments" unique_id=1350677071]
|
||||
modulate = Color(1, 1, 1, 0.392157)
|
||||
texture = ExtResource("1")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://d1mqngb2u14l3"]
|
||||
[gd_scene format=3 uid="uid://d1mqngb2u14l3"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://d2ujwstm8tvci" path="res://assets/texture/godot-head.png" id="1"]
|
||||
[ext_resource type="Script" uid="uid://dew0xqsc3n17u" path="res://test.gd" id="2"]
|
||||
@@ -15,61 +15,61 @@ height = 70.0
|
||||
[sub_resource type="CircleShape2D" id="3"]
|
||||
radius = 30.0
|
||||
|
||||
[node name="Test" type="Node2D"]
|
||||
[node name="Test" type="Node2D" unique_id=966005265]
|
||||
script = ExtResource("2")
|
||||
|
||||
[node name="DynamicShapes" type="Node2D" parent="."]
|
||||
[node name="DynamicShapes" type="Node2D" parent="." unique_id=37892535]
|
||||
|
||||
[node name="RigidBodyRectangle" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodyRectangle" type="RigidBody2D" parent="DynamicShapes" unique_id=936295904]
|
||||
position = Vector2(96, 127)
|
||||
script = ExtResource("3")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodyRectangle"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodyRectangle" unique_id=1686345849]
|
||||
rotation = 0.675442
|
||||
shape = SubResource("1")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodyCapsule" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodyCapsule" type="RigidBody2D" parent="DynamicShapes" unique_id=1959998118]
|
||||
position = Vector2(270.165, 139.444)
|
||||
script = ExtResource("3")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodyCapsule"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodyCapsule" unique_id=1815936586]
|
||||
rotation = -0.202458
|
||||
shape = SubResource("2")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodyConcavePolygon" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodyConcavePolygon" type="RigidBody2D" parent="DynamicShapes" unique_id=2135391193]
|
||||
position = Vector2(683.614, 132.749)
|
||||
script = ExtResource("3")
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DynamicShapes/RigidBodyConcavePolygon"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DynamicShapes/RigidBodyConcavePolygon" unique_id=1894626918]
|
||||
scale = Vector2(0.5, 0.5)
|
||||
polygon = PackedVector2Array(-5.93512, -43.2195, 6.44476, -42.9695, 11.127, -54.3941, 26.9528, -49.4309, 26.2037, -36.508, 37.5346, -28.1737, 47.6282, -34.3806, 58.0427, -20.9631, 51.113, -10.2876, 50.9869, 35.2694, 38.8, 47.5, 15.9852, 54.3613, -14.9507, 54.1845, -36.5, 48.1, -50.4828, 36.33, -51.3668, -9.98545, -57.8889, -20.5885, -46.9473, -34.7342, -37.4014, -28.547, -26.0876, -37.0323, -26.9862, -49.15, -11.4152, -54.5332)
|
||||
|
||||
[node name="GodotIcon" type="Sprite2D" parent="DynamicShapes/RigidBodyConcavePolygon"]
|
||||
[node name="GodotIcon" type="Sprite2D" parent="DynamicShapes/RigidBodyConcavePolygon" unique_id=1864003881]
|
||||
self_modulate = Color(1, 1, 1, 0.392157)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("1")
|
||||
|
||||
[node name="RigidBodyConvexPolygon" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodyConvexPolygon" type="RigidBody2D" parent="DynamicShapes" unique_id=261715870]
|
||||
position = Vector2(473.536, 134.336)
|
||||
script = ExtResource("3")
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DynamicShapes/RigidBodyConvexPolygon"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DynamicShapes/RigidBodyConvexPolygon" unique_id=1084523598]
|
||||
scale = Vector2(0.5, 0.5)
|
||||
polygon = PackedVector2Array(10.7, -54.5, 28.3596, -49.4067, 47.6282, -34.3806, 57.9717, -20.9447, 50.9869, 35.2694, 38.8, 47.5, 15.9852, 54.3613, -14.9507, 54.1845, -36.5, 48.1, -50.4828, 36.33, -58.0115, -20.515, -46.9473, -34.7342, -26.0876, -50.1138, -11.4152, -54.5332)
|
||||
|
||||
[node name="GodotIcon" type="Sprite2D" parent="DynamicShapes/RigidBodyConvexPolygon"]
|
||||
[node name="GodotIcon" type="Sprite2D" parent="DynamicShapes/RigidBodyConvexPolygon" unique_id=190426157]
|
||||
self_modulate = Color(1, 1, 1, 0.392157)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("1")
|
||||
|
||||
[node name="RigidBodySphere" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodySphere" type="RigidBody2D" parent="DynamicShapes" unique_id=1364691144]
|
||||
position = Vector2(919.968, 115.129)
|
||||
script = ExtResource("3")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodySphere"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodySphere" unique_id=537759280]
|
||||
shape = SubResource("3")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="StaticScene" parent="." instance=ExtResource("6")]
|
||||
[node name="StaticScene" parent="." unique_id=1530959036 instance=ExtResource("6")]
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://xafrbjjd0phi"]
|
||||
[gd_scene format=3 uid="uid://xafrbjjd0phi"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cvubpdyk4bduy" path="res://tests/functional/test_stack.gd" id="1"]
|
||||
[ext_resource type="PackedScene" uid="uid://bme1oft43530u" path="res://tests/static_scene_flat.tscn" id="2"]
|
||||
|
||||
[node name="Test" type="Node2D"]
|
||||
[node name="Test" type="Node2D" unique_id=149479681]
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="Stack" type="Node2D" parent="."]
|
||||
[node name="Stack" type="Node2D" parent="." unique_id=990676562]
|
||||
position = Vector2(512, 500)
|
||||
|
||||
[node name="StaticSceneFlat" parent="." instance=ExtResource("2")]
|
||||
[node name="StaticSceneFlat" parent="." unique_id=1334113382 instance=ExtResource("2")]
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://77uwads01no7"]
|
||||
[gd_scene format=3 uid="uid://77uwads01no7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bjop0rogi5niv" path="res://tests/performance/test_perf_broadphase.gd" id="1"]
|
||||
|
||||
[node name="Test" type="Node2D"]
|
||||
[node name="Test" type="Node2D" unique_id=2045294521]
|
||||
script = ExtResource("1")
|
||||
row_size = 300
|
||||
column_size = 300
|
||||
_enable_debug_collision = false
|
||||
|
||||
[node name="Objects" type="Node2D" parent="."]
|
||||
[node name="Objects" type="Node2D" parent="." unique_id=687911200]
|
||||
position = Vector2(512, 300)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://c50qe1ywvgo50"]
|
||||
[gd_scene format=3 uid="uid://c50qe1ywvgo50"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://tpgxjpc126ld" path="res://tests/static_scene.tscn" id="1"]
|
||||
[ext_resource type="Script" uid="uid://mj1krpr0l1cu" path="res://tests/performance/test_perf_contacts.gd" id="2"]
|
||||
@@ -15,94 +15,94 @@ radius = 5.0
|
||||
radius = 5.0
|
||||
height = 17.0
|
||||
|
||||
[node name="Test" type="Node2D"]
|
||||
[node name="Test" type="Node2D" unique_id=497556246]
|
||||
script = ExtResource("2")
|
||||
spawns = Array[NodePath]([NodePath("SpawnTarget1"), NodePath("SpawnTarget2"), NodePath("SpawnTarget3"), NodePath("SpawnTarget4"), NodePath("SpawnTarget5"), NodePath("SpawnTarget6"), NodePath("SpawnTarget7"), NodePath("SpawnTarget8"), NodePath("SpawnTarget9")])
|
||||
spawn_count = 300
|
||||
spawn_randomize = Vector2(10, 10)
|
||||
_enable_debug_collision = false
|
||||
|
||||
[node name="Options" parent="." instance=ExtResource("4")]
|
||||
[node name="Options" parent="." unique_id=261404581 instance=ExtResource("4")]
|
||||
|
||||
[node name="SpawnTarget1" type="Node2D" parent="."]
|
||||
[node name="SpawnTarget1" type="Node2D" parent="." unique_id=271441349]
|
||||
position = Vector2(145.646, 109.462)
|
||||
|
||||
[node name="SpawnTarget2" type="Node2D" parent="."]
|
||||
[node name="SpawnTarget2" type="Node2D" parent="." unique_id=1867703658]
|
||||
position = Vector2(508.14, 109.113)
|
||||
|
||||
[node name="SpawnTarget3" type="Node2D" parent="."]
|
||||
[node name="SpawnTarget3" type="Node2D" parent="." unique_id=1830110338]
|
||||
position = Vector2(873.995, 110.042)
|
||||
|
||||
[node name="SpawnTarget4" type="Node2D" parent="."]
|
||||
[node name="SpawnTarget4" type="Node2D" parent="." unique_id=203896044]
|
||||
position = Vector2(149.646, 301.462)
|
||||
|
||||
[node name="SpawnTarget5" type="Node2D" parent="."]
|
||||
[node name="SpawnTarget5" type="Node2D" parent="." unique_id=537822944]
|
||||
position = Vector2(512.14, 301.113)
|
||||
|
||||
[node name="SpawnTarget6" type="Node2D" parent="."]
|
||||
[node name="SpawnTarget6" type="Node2D" parent="." unique_id=103316858]
|
||||
position = Vector2(877.995, 302.042)
|
||||
|
||||
[node name="SpawnTarget7" type="Node2D" parent="."]
|
||||
[node name="SpawnTarget7" type="Node2D" parent="." unique_id=269013639]
|
||||
position = Vector2(165.646, 507.462)
|
||||
|
||||
[node name="SpawnTarget8" type="Node2D" parent="."]
|
||||
[node name="SpawnTarget8" type="Node2D" parent="." unique_id=992380685]
|
||||
position = Vector2(528.14, 507.113)
|
||||
|
||||
[node name="SpawnTarget9" type="Node2D" parent="."]
|
||||
[node name="SpawnTarget9" type="Node2D" parent="." unique_id=221041312]
|
||||
position = Vector2(893.995, 508.042)
|
||||
|
||||
[node name="StaticScene" parent="." instance=ExtResource("1")]
|
||||
[node name="StaticScene" parent="." unique_id=2138476485 instance=ExtResource("1")]
|
||||
visible = false
|
||||
position = Vector2(0, 125.017)
|
||||
|
||||
[node name="DynamicShapes" type="Node2D" parent="."]
|
||||
[node name="DynamicShapes" type="Node2D" parent="." unique_id=309359431]
|
||||
|
||||
[node name="RigidBodyRectangle" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodyRectangle" type="RigidBody2D" parent="DynamicShapes" unique_id=365550536]
|
||||
position = Vector2(0, 1024)
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodyRectangle"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodyRectangle" unique_id=796561971]
|
||||
shape = SubResource("1")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodySphere" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodySphere" type="RigidBody2D" parent="DynamicShapes" unique_id=1294732075]
|
||||
position = Vector2(100, 1024)
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodySphere"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodySphere" unique_id=181909886]
|
||||
shape = SubResource("2")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodyCapsule" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodyCapsule" type="RigidBody2D" parent="DynamicShapes" unique_id=823055183]
|
||||
position = Vector2(200, 1024)
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodyCapsule"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodyCapsule" unique_id=859515311]
|
||||
shape = SubResource("3")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodyConvexPolygon" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodyConvexPolygon" type="RigidBody2D" parent="DynamicShapes" unique_id=695133906]
|
||||
position = Vector2(300, 1024)
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DynamicShapes/RigidBodyConvexPolygon"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DynamicShapes/RigidBodyConvexPolygon" unique_id=464503205]
|
||||
scale = Vector2(0.1, 0.1)
|
||||
polygon = PackedVector2Array(10.7, -54.5, 28.3596, -49.4067, 47.6282, -34.3806, 57.9717, -20.9447, 50.9869, 35.2694, 38.8, 47.5, 15.9852, 54.3613, -14.9507, 54.1845, -36.5, 48.1, -50.4828, 36.33, -58.0115, -20.515, -46.9473, -34.7342, -26.0876, -50.1138, -11.4152, -54.5332)
|
||||
|
||||
[node name="GodotIcon" type="Sprite2D" parent="DynamicShapes/RigidBodyConvexPolygon"]
|
||||
[node name="GodotIcon" type="Sprite2D" parent="DynamicShapes/RigidBodyConvexPolygon" unique_id=1896935629]
|
||||
self_modulate = Color(1, 1, 1, 0.392157)
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("3")
|
||||
|
||||
[node name="RigidBodyConcavePolygon" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodyConcavePolygon" type="RigidBody2D" parent="DynamicShapes" unique_id=650665742]
|
||||
position = Vector2(400, 1024)
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DynamicShapes/RigidBodyConcavePolygon"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DynamicShapes/RigidBodyConcavePolygon" unique_id=1407978976]
|
||||
scale = Vector2(0.1, 0.1)
|
||||
polygon = PackedVector2Array(-5.93512, -43.2195, 6.44476, -42.9695, 11.127, -54.3941, 26.9528, -49.4309, 26.2037, -36.508, 37.5346, -28.1737, 47.6282, -34.3806, 58.0427, -20.9631, 51.113, -10.2876, 50.9869, 35.2694, 38.8, 47.5, 15.9852, 54.3613, -14.9507, 54.1845, -36.5, 48.1, -50.4828, 36.33, -51.3668, -9.98545, -57.8889, -20.5885, -46.9473, -34.7342, -37.4014, -28.547, -26.0876, -37.0323, -26.9862, -49.15, -11.4152, -54.5332)
|
||||
|
||||
[node name="GodotIcon" type="Sprite2D" parent="DynamicShapes/RigidBodyConcavePolygon"]
|
||||
[node name="GodotIcon" type="Sprite2D" parent="DynamicShapes/RigidBodyConcavePolygon" unique_id=1909190287]
|
||||
self_modulate = Color(1, 1, 1, 0.392157)
|
||||
scale = Vector2(0.1, 0.1)
|
||||
texture = ExtResource("3")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://jbsqinrst71x"]
|
||||
[gd_scene format=3 uid="uid://jbsqinrst71x"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://tpgxjpc126ld" path="res://tests/static_scene.tscn" id="1"]
|
||||
[ext_resource type="Script" uid="uid://mj1krpr0l1cu" path="res://tests/performance/test_perf_contacts.gd" id="2"]
|
||||
@@ -14,64 +14,64 @@ radius = 15.0
|
||||
[sub_resource type="CapsuleShape2D" id="3"]
|
||||
height = 35.0
|
||||
|
||||
[node name="Test" type="Node2D"]
|
||||
[node name="Test" type="Node2D" unique_id=1188874277]
|
||||
script = ExtResource("2")
|
||||
spawns = Array[NodePath]([NodePath("SpawnTarget1")])
|
||||
spawn_count = 500
|
||||
spawn_randomize = Vector2(10, 10)
|
||||
_enable_debug_collision = false
|
||||
|
||||
[node name="Options" parent="." instance=ExtResource("4")]
|
||||
[node name="Options" parent="." unique_id=253825003 instance=ExtResource("4")]
|
||||
|
||||
[node name="SpawnTarget1" type="Node2D" parent="."]
|
||||
[node name="SpawnTarget1" type="Node2D" parent="." unique_id=1311673421]
|
||||
position = Vector2(512, 400)
|
||||
|
||||
[node name="StaticScene" parent="." instance=ExtResource("1")]
|
||||
[node name="StaticScene" parent="." unique_id=1848054815 instance=ExtResource("1")]
|
||||
position = Vector2(0, 125.017)
|
||||
|
||||
[node name="DynamicShapes" type="Node2D" parent="."]
|
||||
[node name="DynamicShapes" type="Node2D" parent="." unique_id=704563245]
|
||||
|
||||
[node name="RigidBodyRectangle" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodyRectangle" type="RigidBody2D" parent="DynamicShapes" unique_id=2039286066]
|
||||
position = Vector2(0, 1024)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodyRectangle"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodyRectangle" unique_id=1188151468]
|
||||
shape = SubResource("1")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodySphere" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodySphere" type="RigidBody2D" parent="DynamicShapes" unique_id=2091673009]
|
||||
position = Vector2(100, 1024)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodySphere"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodySphere" unique_id=1991074960]
|
||||
shape = SubResource("2")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodyCapsule" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodyCapsule" type="RigidBody2D" parent="DynamicShapes" unique_id=1656405818]
|
||||
position = Vector2(200, 1024)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodyCapsule"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DynamicShapes/RigidBodyCapsule" unique_id=1502107283]
|
||||
shape = SubResource("3")
|
||||
debug_color = Color(1, 1, 0, 0.0980392)
|
||||
|
||||
[node name="RigidBodyConvexPolygon" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodyConvexPolygon" type="RigidBody2D" parent="DynamicShapes" unique_id=766589103]
|
||||
position = Vector2(300, 1024)
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DynamicShapes/RigidBodyConvexPolygon"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DynamicShapes/RigidBodyConvexPolygon" unique_id=1612603478]
|
||||
scale = Vector2(0.25, 0.25)
|
||||
polygon = PackedVector2Array(10.7, -54.5, 28.3596, -49.4067, 47.6282, -34.3806, 57.9717, -20.9447, 50.9869, 35.2694, 38.8, 47.5, 15.9852, 54.3613, -14.9507, 54.1845, -36.5, 48.1, -50.4828, 36.33, -58.0115, -20.515, -46.9473, -34.7342, -26.0876, -50.1138, -11.4152, -54.5332)
|
||||
|
||||
[node name="GodotIcon" type="Sprite2D" parent="DynamicShapes/RigidBodyConvexPolygon"]
|
||||
[node name="GodotIcon" type="Sprite2D" parent="DynamicShapes/RigidBodyConvexPolygon" unique_id=892559346]
|
||||
self_modulate = Color(1, 1, 1, 0.392157)
|
||||
scale = Vector2(0.25, 0.25)
|
||||
texture = ExtResource("3")
|
||||
|
||||
[node name="RigidBodyConcavePolygon" type="RigidBody2D" parent="DynamicShapes"]
|
||||
[node name="RigidBodyConcavePolygon" type="RigidBody2D" parent="DynamicShapes" unique_id=1269892822]
|
||||
position = Vector2(400, 1024)
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DynamicShapes/RigidBodyConcavePolygon"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="DynamicShapes/RigidBodyConcavePolygon" unique_id=323430949]
|
||||
scale = Vector2(0.25, 0.25)
|
||||
polygon = PackedVector2Array(-5.93512, -43.2195, 6.44476, -42.9695, 11.127, -54.3941, 26.9528, -49.4309, 26.2037, -36.508, 37.5346, -28.1737, 47.6282, -34.3806, 58.0427, -20.9631, 51.113, -10.2876, 50.9869, 35.2694, 38.8, 47.5, 15.9852, 54.3613, -14.9507, 54.1845, -36.5, 48.1, -50.4828, 36.33, -51.3668, -9.98545, -57.8889, -20.5885, -46.9473, -34.7342, -37.4014, -28.547, -26.0876, -37.0323, -26.9862, -49.15, -11.4152, -54.5332)
|
||||
|
||||
[node name="GodotIcon" type="Sprite2D" parent="DynamicShapes/RigidBodyConcavePolygon"]
|
||||
[node name="GodotIcon" type="Sprite2D" parent="DynamicShapes/RigidBodyConcavePolygon" unique_id=528737965]
|
||||
self_modulate = Color(1, 1, 1, 0.392157)
|
||||
scale = Vector2(0.25, 0.25)
|
||||
texture = ExtResource("3")
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
[gd_scene format=3 uid="uid://tpgxjpc126ld"]
|
||||
|
||||
[node name="StaticScene" type="Node2D"]
|
||||
[node name="StaticScene" type="Node2D" unique_id=1609265177]
|
||||
|
||||
[node name="StaticBodyPolygon" type="StaticBody2D" parent="."]
|
||||
[node name="StaticBodyPolygon" type="StaticBody2D" parent="." unique_id=1636493684]
|
||||
position = Vector2(-7.85718, 399.596)
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="StaticBodyPolygon"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="StaticBodyPolygon" unique_id=405964531]
|
||||
build_mode = 1
|
||||
polygon = PackedVector2Array(16.3331, -129.432, 154.006, -20.0078, 292.354, 30.3943, 447.054, 33.9161, 584.899, -14.7955, 751.156, -15.5179, 894.098, -65.4518, 1000.73, -209.127, 1037.77, -398.823, 1029.92, 253.327, 6.2309, 261.185, 7.35339, -398.823)
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bme1oft43530u"]
|
||||
[gd_scene format=3 uid="uid://bme1oft43530u"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="1"]
|
||||
size = Vector2(1600, 100)
|
||||
|
||||
[node name="StaticSceneFlat" type="Node2D"]
|
||||
[node name="StaticSceneFlat" type="Node2D" unique_id=1914068619]
|
||||
|
||||
[node name="StaticBodyPolygon" type="StaticBody2D" parent="."]
|
||||
[node name="StaticBodyPolygon" type="StaticBody2D" parent="." unique_id=630627728]
|
||||
position = Vector2(512, 550)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBodyPolygon"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBodyPolygon" unique_id=2120368870]
|
||||
shape = SubResource("1")
|
||||
debug_color = Color(0, 0.533333, 1, 0.0980392)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cwjfkltvisc0n"]
|
||||
[gd_scene format=3 uid="uid://cwjfkltvisc0n"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://blfg0yb2epr8g" path="res://utils/option_menu.gd" id="1"]
|
||||
|
||||
[node name="Options" type="MenuButton"]
|
||||
[node name="Options" type="MenuButton" unique_id=443704194]
|
||||
offset_left = 10.0
|
||||
offset_top = 106.719
|
||||
offset_right = 125.0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=15 format=3 uid="uid://bc4a8j7okb15h"]
|
||||
[gd_scene format=3 uid="uid://bc4a8j7okb15h"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dh5f4544n38df" path="res://player/bullet.webp" id="1"]
|
||||
[ext_resource type="AudioStream" uid="uid://cwqx3s5fy0q7t" path="res://enemy/explode.wav" id="2"]
|
||||
@@ -248,27 +248,27 @@ blend_mode = 1
|
||||
offsets = PackedFloat32Array(0.5, 1)
|
||||
colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 1)
|
||||
|
||||
[node name="Enemy" type="CharacterBody2D"]
|
||||
[node name="Enemy" type="CharacterBody2D" unique_id=596459649]
|
||||
collision_layer = 2
|
||||
collision_mask = 24
|
||||
script = ExtResource("5")
|
||||
|
||||
[node name="PlatformDetector" type="RayCast2D" parent="."]
|
||||
[node name="PlatformDetector" type="RayCast2D" parent="." unique_id=973558554]
|
||||
position = Vector2(0, 6)
|
||||
target_position = Vector2(0, 8)
|
||||
collision_mask = 8
|
||||
|
||||
[node name="FloorDetectorLeft" type="RayCast2D" parent="."]
|
||||
[node name="FloorDetectorLeft" type="RayCast2D" parent="." unique_id=910279955]
|
||||
position = Vector2(-15, -4)
|
||||
target_position = Vector2(0, 35)
|
||||
collision_mask = 24
|
||||
|
||||
[node name="FloorDetectorRight" type="RayCast2D" parent="."]
|
||||
[node name="FloorDetectorRight" type="RayCast2D" parent="." unique_id=782144340]
|
||||
position = Vector2(15.5, -3)
|
||||
target_position = Vector2(0, 35)
|
||||
collision_mask = 24
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=78034897]
|
||||
material = SubResource("1")
|
||||
scale = Vector2(0.8, 0.8)
|
||||
texture = ExtResource("4")
|
||||
@@ -276,16 +276,14 @@ flip_h = true
|
||||
hframes = 8
|
||||
vframes = 2
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_0kjfc")
|
||||
}
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="." unique_id=1362484596]
|
||||
libraries/ = SubResource("AnimationLibrary_0kjfc")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1682765481]
|
||||
rotation = -1.5708
|
||||
shape = SubResource("5")
|
||||
|
||||
[node name="Explosion" type="CPUParticles2D" parent="."]
|
||||
[node name="Explosion" type="CPUParticles2D" parent="." unique_id=1322275026]
|
||||
self_modulate = Color(1, 1, 1, 0.12)
|
||||
material = SubResource("6")
|
||||
emitting = false
|
||||
@@ -302,8 +300,8 @@ spread = 180.0
|
||||
gravity = Vector2(0, -250)
|
||||
color_ramp = SubResource("7")
|
||||
|
||||
[node name="Hit" type="AudioStreamPlayer2D" parent="."]
|
||||
[node name="Hit" type="AudioStreamPlayer2D" parent="." unique_id=1791067492]
|
||||
stream = ExtResource("3")
|
||||
|
||||
[node name="Explode" type="AudioStreamPlayer2D" parent="."]
|
||||
[node name="Explode" type="AudioStreamPlayer2D" parent="." unique_id=453738939]
|
||||
stream = ExtResource("2")
|
||||
|
||||
@@ -1,24 +1,24 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cca4jtwjb0i61"]
|
||||
[gd_scene format=3 uid="uid://cca4jtwjb0i61"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dwvlcsxdrm03l" path="res://game.gd" id="2"]
|
||||
[ext_resource type="PackedScene" uid="uid://cygtqanamu68e" path="res://level/level.tscn" id="3"]
|
||||
[ext_resource type="PackedScene" uid="uid://dsqy8lxrpip13" path="res://player/player.tscn" id="4"]
|
||||
[ext_resource type="PackedScene" uid="uid://nhpj5cy87771" path="res://gui/pause_menu_singleplayer.tscn" id="4_x6l06"]
|
||||
|
||||
[node name="Game" type="Node"]
|
||||
[node name="Game" type="Node" unique_id=924924404]
|
||||
process_mode = 3
|
||||
script = ExtResource("2")
|
||||
|
||||
[node name="Level" parent="." instance=ExtResource("3")]
|
||||
[node name="Level" parent="." unique_id=1137818157 instance=ExtResource("3")]
|
||||
|
||||
[node name="Player" parent="Level" instance=ExtResource("4")]
|
||||
[node name="Player" parent="Level" unique_id=717387679 instance=ExtResource("4")]
|
||||
z_index = 3
|
||||
position = Vector2(90, 636.5)
|
||||
scale = Vector2(1, 1)
|
||||
|
||||
[node name="InterfaceLayer" type="CanvasLayer" parent="."]
|
||||
[node name="InterfaceLayer" type="CanvasLayer" parent="." unique_id=837823649]
|
||||
layer = 100
|
||||
|
||||
[node name="PauseMenu" parent="InterfaceLayer" instance=ExtResource("4_x6l06")]
|
||||
[node name="PauseMenu" parent="InterfaceLayer" unique_id=1388998718 instance=ExtResource("4_x6l06")]
|
||||
|
||||
[connection signal="coin_collected" from="Level/Player" to="InterfaceLayer/PauseMenu" method="_on_coin_collected"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://b3g7ixn60jkwc"]
|
||||
[gd_scene format=3 uid="uid://b3g7ixn60jkwc"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bucsl5avrup6l" path="res://game_splitscreen.gd" id="1_60qgt"]
|
||||
[ext_resource type="PackedScene" uid="uid://bw4o5bonstovl" path="res://gui/pause_menu_splitscreen.tscn" id="2_xkexm"]
|
||||
@@ -12,11 +12,11 @@
|
||||
gradient = SubResource("Gradient_77njx")
|
||||
width = 2
|
||||
|
||||
[node name="GameSplitscreen" type="Node"]
|
||||
[node name="GameSplitscreen" type="Node" unique_id=1687835120]
|
||||
process_mode = 3
|
||||
script = ExtResource("1_60qgt")
|
||||
|
||||
[node name="Black" type="ColorRect" parent="."]
|
||||
[node name="Black" type="ColorRect" parent="." unique_id=2013401300]
|
||||
process_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -25,7 +25,7 @@ offset_right = 6.10352e-05
|
||||
offset_bottom = 3.05176e-05
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="SplitContainer" type="HSplitContainer" parent="Black"]
|
||||
[node name="SplitContainer" type="HSplitContainer" parent="Black" unique_id=648615839]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -36,13 +36,13 @@ theme_override_constants/separation = 0
|
||||
theme_override_icons/grabber = SubResource("GradientTexture1D_5sxld")
|
||||
dragger_visibility = 1
|
||||
|
||||
[node name="ViewportContainer1" type="SubViewportContainer" parent="Black/SplitContainer"]
|
||||
[node name="ViewportContainer1" type="SubViewportContainer" parent="Black/SplitContainer" unique_id=695024105]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
stretch = true
|
||||
|
||||
[node name="Viewport1" type="SubViewport" parent="Black/SplitContainer/ViewportContainer1"]
|
||||
[node name="Viewport1" type="SubViewport" parent="Black/SplitContainer/ViewportContainer1" unique_id=1278576161]
|
||||
unique_name_in_owner = true
|
||||
handle_input_locally = false
|
||||
canvas_item_default_texture_filter = 0
|
||||
@@ -50,9 +50,9 @@ audio_listener_enable_2d = true
|
||||
size = Vector2i(399, 480)
|
||||
render_target_update_mode = 4
|
||||
|
||||
[node name="Level" parent="Black/SplitContainer/ViewportContainer1/Viewport1" instance=ExtResource("3_e0nyr")]
|
||||
[node name="Level" parent="Black/SplitContainer/ViewportContainer1/Viewport1" unique_id=1987057291 instance=ExtResource("3_e0nyr")]
|
||||
|
||||
[node name="Player1" parent="Black/SplitContainer/ViewportContainer1/Viewport1" instance=ExtResource("4_8j0va")]
|
||||
[node name="Player1" parent="Black/SplitContainer/ViewportContainer1/Viewport1" unique_id=1560919728 instance=ExtResource("4_8j0va")]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(1, 1.5, 2.5, 1)
|
||||
z_index = 3
|
||||
@@ -60,7 +60,7 @@ position = Vector2(100, 636.5)
|
||||
scale = Vector2(1, 1)
|
||||
action_suffix = "_p1"
|
||||
|
||||
[node name="Player2" parent="Black/SplitContainer/ViewportContainer1/Viewport1" instance=ExtResource("4_8j0va")]
|
||||
[node name="Player2" parent="Black/SplitContainer/ViewportContainer1/Viewport1" unique_id=1494580024 instance=ExtResource("4_8j0va")]
|
||||
unique_name_in_owner = true
|
||||
modulate = Color(3, 1, 1, 1)
|
||||
z_index = 3
|
||||
@@ -68,13 +68,13 @@ position = Vector2(160, 636.5)
|
||||
scale = Vector2(1, 1)
|
||||
action_suffix = "_p2"
|
||||
|
||||
[node name="ViewportContainer2" type="SubViewportContainer" parent="Black/SplitContainer"]
|
||||
[node name="ViewportContainer2" type="SubViewportContainer" parent="Black/SplitContainer" unique_id=1466400981]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
stretch = true
|
||||
|
||||
[node name="Viewport2" type="SubViewport" parent="Black/SplitContainer/ViewportContainer2"]
|
||||
[node name="Viewport2" type="SubViewport" parent="Black/SplitContainer/ViewportContainer2" unique_id=986244409]
|
||||
unique_name_in_owner = true
|
||||
handle_input_locally = false
|
||||
canvas_item_default_texture_filter = 0
|
||||
@@ -82,12 +82,12 @@ audio_listener_enable_2d = true
|
||||
size = Vector2i(399, 480)
|
||||
render_target_update_mode = 4
|
||||
|
||||
[node name="ParallaxBackground" parent="Black/SplitContainer/ViewportContainer2/Viewport2" instance=ExtResource("5_47vt4")]
|
||||
[node name="ParallaxBackground" parent="Black/SplitContainer/ViewportContainer2/Viewport2" unique_id=1935440390 instance=ExtResource("5_47vt4")]
|
||||
|
||||
[node name="InterfaceLayer" type="CanvasLayer" parent="."]
|
||||
[node name="InterfaceLayer" type="CanvasLayer" parent="." unique_id=1729022326]
|
||||
layer = 100
|
||||
|
||||
[node name="PauseMenu" parent="InterfaceLayer" instance=ExtResource("2_xkexm")]
|
||||
[node name="PauseMenu" parent="InterfaceLayer" unique_id=2027766477 instance=ExtResource("2_xkexm")]
|
||||
|
||||
[connection signal="coin_collected" from="Black/SplitContainer/ViewportContainer1/Viewport1/Player1" to="InterfaceLayer/PauseMenu" method="_on_coin_collected"]
|
||||
[connection signal="coin_collected" from="Black/SplitContainer/ViewportContainer1/Viewport1/Player2" to="InterfaceLayer/PauseMenu" method="_on_coin_collected"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=17 format=3 uid="uid://cbxfkqpq2rynb"]
|
||||
[gd_scene format=3 uid="uid://cbxfkqpq2rynb"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://bc4kpaija14nv" path="res://gui/theme.tres" id="1_mctnl"]
|
||||
[ext_resource type="Texture2D" uid="uid://gwsn8ufh1n7i" path="res://level/coin.webp" id="2"]
|
||||
@@ -96,7 +96,7 @@ animations = [{
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[node name="CoinsCounter" type="Panel"]
|
||||
[node name="CoinsCounter" type="Panel" unique_id=1407430856]
|
||||
offset_left = 5.0
|
||||
offset_top = 5.0
|
||||
offset_right = 100.0
|
||||
@@ -104,7 +104,7 @@ offset_bottom = 45.0
|
||||
theme = ExtResource("1_mctnl")
|
||||
script = ExtResource("3")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
[node name="Label" type="Label" parent="." unique_id=1249769116]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -121,7 +121,7 @@ text = "99"
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1948616029]
|
||||
position = Vector2(23.5, 24.5)
|
||||
sprite_frames = SubResource("6")
|
||||
animation = &"coin_spinning"
|
||||
|
||||
@@ -4,6 +4,15 @@
|
||||
subpixel_positioning = 0
|
||||
msdf_pixel_range = 14
|
||||
msdf_size = 128
|
||||
cache/0/variation_coordinates = {}
|
||||
cache/0/face_index = 0
|
||||
cache/0/embolden = 0.0
|
||||
cache/0/transform = Transform2D(1, 0, 0, 1, 0, 0)
|
||||
cache/0/spacing_top = 0
|
||||
cache/0/spacing_bottom = 0
|
||||
cache/0/spacing_space = 0
|
||||
cache/0/spacing_glyph = 0
|
||||
cache/0/baseline_offset = 0.0
|
||||
cache/0/16/0/ascent = 0.0
|
||||
cache/0/16/0/descent = 0.0
|
||||
cache/0/16/0/underline_position = 0.0
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://mqs27wy1rtxk"]
|
||||
[gd_scene format=3 uid="uid://mqs27wy1rtxk"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://bc4kpaija14nv" path="res://gui/theme.tres" id="1"]
|
||||
[ext_resource type="Script" uid="uid://hiv0htsf7jd7" path="res://gui/pause_menu.gd" id="2"]
|
||||
[ext_resource type="PackedScene" uid="uid://cbxfkqpq2rynb" path="res://gui/coins_counter.tscn" id="4"]
|
||||
|
||||
[node name="PauseMenu" type="Control"]
|
||||
[node name="PauseMenu" type="Control" unique_id=1424075319]
|
||||
process_mode = 3
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
@@ -15,7 +15,7 @@ grow_vertical = 2
|
||||
theme = ExtResource("1")
|
||||
script = ExtResource("2")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
[node name="ColorRect" type="ColorRect" parent="." unique_id=1798084660]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -24,7 +24,7 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 0, 0, 0.294118)
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="ColorRect"]
|
||||
[node name="CenterContainer" type="CenterContainer" parent="ColorRect" unique_id=1384053806]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_right = 1.0
|
||||
@@ -32,29 +32,29 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="ColorRect/CenterContainer"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="ColorRect/CenterContainer" unique_id=103114303]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Label" type="Label" parent="ColorRect/CenterContainer/VBoxContainer"]
|
||||
[node name="Label" type="Label" parent="ColorRect/CenterContainer/VBoxContainer" unique_id=695120830]
|
||||
layout_mode = 2
|
||||
text = "Game Paused"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="ColorRect/CenterContainer/VBoxContainer"]
|
||||
[node name="MarginContainer" type="MarginContainer" parent="ColorRect/CenterContainer/VBoxContainer" unique_id=90007633]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="ResumeButton" type="Button" parent="ColorRect/CenterContainer/VBoxContainer"]
|
||||
[node name="ResumeButton" type="Button" parent="ColorRect/CenterContainer/VBoxContainer" unique_id=1637699098]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "Resume"
|
||||
|
||||
[node name="QuitButton" type="Button" parent="ColorRect/CenterContainer/VBoxContainer"]
|
||||
[node name="QuitButton" type="Button" parent="ColorRect/CenterContainer/VBoxContainer" unique_id=2134735849]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
text = "Quit"
|
||||
|
||||
[node name="CoinsCounter" parent="ColorRect" instance=ExtResource("4")]
|
||||
[node name="CoinsCounter" parent="ColorRect" unique_id=663611775 instance=ExtResource("4")]
|
||||
layout_mode = 0
|
||||
offset_left = 0.0
|
||||
offset_top = 0.0
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user