瀏覽代碼

Rename Dodge The Creeps files to snake case (#1084)

This follows the style guide:

- https://docs.godotengine.org/en/stable/tutorials/best_practices/project_organization.html#style-guide

For reference, a documentation PR exists to update references to the
demo.
Russell Sanborn 1 年之前
父節點
當前提交
7d42ae3c9a

+ 0 - 0
2d/dodge_the_creeps/HUD.gd → 2d/dodge_the_creeps/hud.gd


+ 1 - 1
2d/dodge_the_creeps/HUD.tscn → 2d/dodge_the_creeps/hud.tscn

@@ -1,6 +1,6 @@
 [gd_scene load_steps=5 format=3 uid="uid://ccqoreueuxdb7"]
 [gd_scene load_steps=5 format=3 uid="uid://ccqoreueuxdb7"]
 
 
-[ext_resource type="Script" path="res://HUD.gd" id="1"]
+[ext_resource type="Script" path="res://hud.gd" id="1"]
 [ext_resource type="FontFile" uid="uid://cit6gwe5px1q8" path="res://fonts/Xolonium-Regular.ttf" id="2_2jm3i"]
 [ext_resource type="FontFile" uid="uid://cit6gwe5px1q8" path="res://fonts/Xolonium-Regular.ttf" id="2_2jm3i"]
 
 
 [sub_resource type="InputEventAction" id="InputEventAction_fopy7"]
 [sub_resource type="InputEventAction" id="InputEventAction_fopy7"]

+ 0 - 0
2d/dodge_the_creeps/Main.gd → 2d/dodge_the_creeps/main.gd


+ 12 - 12
2d/dodge_the_creeps/Main.tscn → 2d/dodge_the_creeps/main.tscn

@@ -1,11 +1,11 @@
 [gd_scene load_steps=8 format=3 uid="uid://cyfwty2q3rdse"]
 [gd_scene load_steps=8 format=3 uid="uid://cyfwty2q3rdse"]
 
 
-[ext_resource type="Script" path="res://Main.gd" id="1"]
-[ext_resource type="PackedScene" uid="uid://rkdnhqgf2hpj" path="res://Mob.tscn" id="2"]
-[ext_resource type="PackedScene" uid="uid://4vwrqjegqwpj" path="res://Player.tscn" id="3"]
-[ext_resource type="PackedScene" uid="uid://ccqoreueuxdb7" path="res://HUD.tscn" id="4"]
-[ext_resource type="AudioStream" uid="uid://q2pf4fr8d0ks" path="res://art/House In a Forest Loop.ogg" id="5"]
-[ext_resource type="AudioStream" uid="uid://dw26fpygeag8o" path="res://art/gameover.wav" id="6"]
+[ext_resource type="Script" path="res://main.gd" id="1_0r6n5"]
+[ext_resource type="PackedScene" uid="uid://rkdnhqgf2hpj" path="res://mob.tscn" id="2_50pww"]
+[ext_resource type="PackedScene" uid="uid://4vwrqjegqwpj" path="res://player.tscn" id="3_veqnc"]
+[ext_resource type="PackedScene" uid="uid://ccqoreueuxdb7" path="res://hud.tscn" id="4_0qnje"]
+[ext_resource type="AudioStream" uid="uid://q2pf4fr8d0ks" path="res://art/House In a Forest Loop.ogg" id="5_55d8h"]
+[ext_resource type="AudioStream" uid="uid://dw26fpygeag8o" path="res://art/gameover.wav" id="6_hp1r0"]
 
 
 [sub_resource type="Curve2D" id="1"]
 [sub_resource type="Curve2D" id="1"]
 _data = {
 _data = {
@@ -14,8 +14,8 @@ _data = {
 point_count = 5
 point_count = 5
 
 
 [node name="Main" type="Node"]
 [node name="Main" type="Node"]
-script = ExtResource("1")
-mob_scene = ExtResource("2")
+script = ExtResource("1_0r6n5")
+mob_scene = ExtResource("2_50pww")
 
 
 [node name="ColorRect" type="ColorRect" parent="."]
 [node name="ColorRect" type="ColorRect" parent="."]
 anchors_preset = 15
 anchors_preset = 15
@@ -25,7 +25,7 @@ grow_horizontal = 2
 grow_vertical = 2
 grow_vertical = 2
 color = Color(0.219608, 0.372549, 0.380392, 1)
 color = Color(0.219608, 0.372549, 0.380392, 1)
 
 
-[node name="Player" parent="." instance=ExtResource("3")]
+[node name="Player" parent="." instance=ExtResource("3_veqnc")]
 
 
 [node name="MobTimer" type="Timer" parent="."]
 [node name="MobTimer" type="Timer" parent="."]
 wait_time = 0.5
 wait_time = 0.5
@@ -44,13 +44,13 @@ curve = SubResource("1")
 
 
 [node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"]
 [node name="MobSpawnLocation" type="PathFollow2D" parent="MobPath"]
 
 
-[node name="HUD" parent="." instance=ExtResource("4")]
+[node name="HUD" parent="." instance=ExtResource("4_0qnje")]
 
 
 [node name="Music" type="AudioStreamPlayer" parent="."]
 [node name="Music" type="AudioStreamPlayer" parent="."]
-stream = ExtResource("5")
+stream = ExtResource("5_55d8h")
 
 
 [node name="DeathSound" type="AudioStreamPlayer" parent="."]
 [node name="DeathSound" type="AudioStreamPlayer" parent="."]
-stream = ExtResource("6")
+stream = ExtResource("6_hp1r0")
 
 
 [connection signal="hit" from="Player" to="." method="game_over"]
 [connection signal="hit" from="Player" to="." method="game_over"]
 [connection signal="timeout" from="MobTimer" to="." method="_on_MobTimer_timeout"]
 [connection signal="timeout" from="MobTimer" to="." method="_on_MobTimer_timeout"]

+ 0 - 0
2d/dodge_the_creeps/Mob.gd → 2d/dodge_the_creeps/mob.gd


+ 1 - 1
2d/dodge_the_creeps/Mob.tscn → 2d/dodge_the_creeps/mob.tscn

@@ -1,6 +1,6 @@
 [gd_scene load_steps=10 format=3 uid="uid://rkdnhqgf2hpj"]
 [gd_scene load_steps=10 format=3 uid="uid://rkdnhqgf2hpj"]
 
 
-[ext_resource type="Script" path="res://Mob.gd" id="1"]
+[ext_resource type="Script" path="res://mob.gd" id="1"]
 [ext_resource type="Texture2D" uid="uid://yqglrrsx7j1f" path="res://art/enemyFlyingAlt_1.png" id="2"]
 [ext_resource type="Texture2D" uid="uid://yqglrrsx7j1f" path="res://art/enemyFlyingAlt_1.png" id="2"]
 [ext_resource type="Texture2D" uid="uid://bpot8awhdn6ph" path="res://art/enemyFlyingAlt_2.png" id="3"]
 [ext_resource type="Texture2D" uid="uid://bpot8awhdn6ph" path="res://art/enemyFlyingAlt_2.png" id="3"]
 [ext_resource type="Texture2D" uid="uid://bu4221t7qpa7d" path="res://art/enemyWalking_1.png" id="4"]
 [ext_resource type="Texture2D" uid="uid://bu4221t7qpa7d" path="res://art/enemyWalking_1.png" id="4"]

+ 0 - 0
2d/dodge_the_creeps/Player.gd → 2d/dodge_the_creeps/player.gd


+ 1 - 1
2d/dodge_the_creeps/Player.tscn → 2d/dodge_the_creeps/player.tscn

@@ -1,6 +1,6 @@
 [gd_scene load_steps=13 format=3 uid="uid://4vwrqjegqwpj"]
 [gd_scene load_steps=13 format=3 uid="uid://4vwrqjegqwpj"]
 
 
-[ext_resource type="Script" path="res://Player.gd" id="1"]
+[ext_resource type="Script" path="res://player.gd" id="1"]
 [ext_resource type="Texture2D" uid="uid://ftkxr8r4qghp" path="res://art/playerGrey_walk1.png" id="2"]
 [ext_resource type="Texture2D" uid="uid://ftkxr8r4qghp" path="res://art/playerGrey_walk1.png" id="2"]
 [ext_resource type="Texture2D" uid="uid://couyhcegeihme" path="res://art/playerGrey_walk2.png" id="3"]
 [ext_resource type="Texture2D" uid="uid://couyhcegeihme" path="res://art/playerGrey_walk2.png" id="3"]
 [ext_resource type="Texture2D" uid="uid://b4yyoafu8bi0q" path="res://art/playerGrey_up1.png" id="4"]
 [ext_resource type="Texture2D" uid="uid://b4yyoafu8bi0q" path="res://art/playerGrey_up1.png" id="4"]

+ 1 - 1
2d/dodge_the_creeps/project.godot

@@ -18,7 +18,7 @@ This is a finished version of the game featured in the 'Your first 2D game'
 tutorial in the documentation. For more details, consider
 tutorial in the documentation. For more details, consider
 following the tutorial in the documentation."
 following the tutorial in the documentation."
 config/tags=PackedStringArray("2d", "demo", "official")
 config/tags=PackedStringArray("2d", "demo", "official")
-run/main_scene="res://Main.tscn"
+run/main_scene="res://main.tscn"
 config/features=PackedStringArray("4.2")
 config/features=PackedStringArray("4.2")
 config/icon="res://icon.webp"
 config/icon="res://icon.webp"