Skip to content

Commit

Permalink
平滑移动
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaaczhr committed Dec 12, 2024
1 parent 90b0731 commit 741260b
Show file tree
Hide file tree
Showing 29 changed files with 397 additions and 119 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,4 @@ Anim={
"zfar": 4000.01,
"znear": 0.05
}
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16886/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9272/@VSplitContainer@9094/@HSplitContainer@9096/@HSplitContainer@9098/@Control@9099/@SubViewportContainer@9100/@SubViewport@9101/Node2D")])
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16886/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9272/@VSplitContainer@9094/@HSplitContainer@9096/@HSplitContainer@9098/@Control@9099/@SubViewportContainer@9100/@SubViewport@9101/Node2D/Label")])
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[folding]

node_unfolds=[NodePath("OriginalRoad"), PackedStringArray("Offset"), NodePath("enemy"), PackedStringArray("Ordering", "Transform")]
node_unfolds=[NodePath("OriginalRoad"), PackedStringArray("Offset"), NodePath("enemy_1"), PackedStringArray("Ordering", "Transform"), NodePath("Label"), PackedStringArray("Layout", "Layout/Transform", "Theme Overrides", "Theme Overrides/constants", "Theme Overrides/font_sizes", "Theme Overrides/fonts")]
resource_unfolds=[]
nodes_folded=[]
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,4 @@ Anim={
"zfar": 4000.01,
"znear": 0.05
}
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16886/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9272/@VSplitContainer@9094/@HSplitContainer@9096/@HSplitContainer@9098/@Control@9099/@SubViewportContainer@9100/@SubViewport@9101/Node2D")])
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16886/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9272/@VSplitContainer@9094/@HSplitContainer@9096/@HSplitContainer@9098/@Control@9099/@SubViewportContainer@9100/@SubViewport@9101/Node2D/Label")])
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[folding]

node_unfolds=[NodePath("Menu/Button"), PackedStringArray("Text Behavior", "Icon Behavior", "BiDi", "Ordering", "Process", "Process/Thread Group", "Physics Interpolation", "Auto Translate", "Editor Description"), NodePath("Menu/MenuBkg"), PackedStringArray("Ordering")]
node_unfolds=[NodePath("Menu/MenuBkg"), PackedStringArray("Ordering"), NodePath("Menu/Button1"), PackedStringArray("Text Behavior", "Icon Behavior", "BiDi", "Ordering", "Process", "Process/Thread Group", "Physics Interpolation", "Auto Translate", "Editor Description")]
resource_unfolds=[]
nodes_folded=[]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[folding]

sections_unfolded=PackedStringArray()
2 changes: 1 addition & 1 deletion .godot/editor/create_recent.Node
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Label
Sprite2D
Button
Node2D
AudioStreamPlayer
AudioStreamPlayer2D
Control
Label
Window
6 changes: 3 additions & 3 deletions .godot/editor/editor_layout.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dock_filesystem_v_split_offset=0
dock_filesystem_display_mode=0
dock_filesystem_file_sort=0
dock_filesystem_file_list_display_mode=1
dock_filesystem_selected_paths=PackedStringArray("res://")
dock_filesystem_selected_paths=PackedStringArray("res://Menubutton1.gd")
dock_filesystem_uncollapsed_paths=PackedStringArray("Favorites", "res://", "res://Pic/", "res://Game/")
dock_3="Scene,Import"
dock_4="FileSystem"
Expand All @@ -34,8 +34,8 @@ selected_bottom_panel_item=0

[ScriptEditor]

open_scripts=["res://Game/game_1.gd", "res://Game/map1.json", "res://Menubutton.gd"]
selected_script="res://Game/game_1.gd"
open_scripts=["res://Game/enemy_1.gd", "res://Game/game_1.gd", "res://Game/label.gd", "res://Game/map1.json", "res://Menubutton1.gd", "res://Menubutton2.gd"]
selected_script="res://Game/label.gd"
open_help=[]
script_split_offset=233
list_split_offset=0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[folding]

sections_unfolded=PackedStringArray()
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Anim={
"grid_snap_active": false,
"grid_step": Vector2(8, 8),
"grid_visibility": 1,
"ofs": Vector2(-535.792, -320.913),
"ofs": Vector2(-165, -70),
"primary_grid_step": Vector2i(8, 8),
"show_group_gizmos": true,
"show_guides": true,
Expand All @@ -34,7 +34,7 @@ Anim={
"snap_rotation_step": 0.261799,
"snap_scale": false,
"snap_scale_step": 0.1,
"zoom": 0.707107
"zoom": 1.0
}
3D={
"fov": 70.01,
Expand Down Expand Up @@ -100,7 +100,7 @@ Anim={
"auto_orthogonal_enabled": true,
"cinematic_preview": false,
"display_mode": 21,
"distance": 4.04278,
"distance": 4.0,
"doppler": false,
"frame_time": false,
"gizmos": true,
Expand All @@ -112,8 +112,8 @@ Anim={
"position": Vector3(0, 0, 0),
"use_environment": false,
"view_type": 0,
"x_rotation": 0.469457,
"y_rotation": -2.83001
"x_rotation": 0.5,
"y_rotation": -0.5
}, {
"auto_orthogonal": false,
"auto_orthogonal_enabled": true,
Expand Down Expand Up @@ -175,4 +175,4 @@ Anim={
"zfar": 4000.01,
"znear": 0.05
}
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16886/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9272/@VSplitContainer@9094/@HSplitContainer@9096/@HSplitContainer@9098/@Control@9099/@SubViewportContainer@9100/@SubViewport@9101/Node2D")])
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@16886/@Panel@13/@VBoxContainer@14/DockHSplitLeftL/DockHSplitLeftR/DockHSplitMain/@VBoxContainer@25/DockVSplitCenter/@VSplitContainer@52/@VBoxContainer@53/@PanelContainer@98/MainScreen/@CanvasItemEditor@9272/@VSplitContainer@9094/@HSplitContainer@9096/@HSplitContainer@9098/@Control@9099/@SubViewportContainer@9100/@SubViewport@9101/Node2D/Label")])
47 changes: 24 additions & 23 deletions .godot/editor/filesystem_cache8
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
fc8a56933c4b1c8d796fdb8f7a9f9475
::res://::1733753191
BGM01.mp3::AudioStreamMP3::7492941563579154536::1733753047::1733753122::1::::<><>::
button.gd::GDScript::-1::1733753048::0::1::::<>Button<>::
entrance.tscn::PackedScene::2746068924257683609::1733753048::0::1::::<><>::uid://bd36r1e5yh08v::::res://Pic/Background.png<>uid://ljucl4kg36m4::::res://Pic/start.png<>res://button.gd
export_presets.cfg::TextFile::-1::1733753048::0::1::::<><>::
icon.svg::CompressedTexture2D::7454284446828602664::1733753048::1733753122::1::::<><>::
Menu.tscn::PackedScene::633722661368511703::1733753047::0::1::::<><>::uid://cqxs5sfoa1bj6::::res://Pic/MenuBkg.png<>res://Menubutton.gd
Menubutton.gd::GDScript::-1::1733753047::0::1::::<>Button<>::
README.md::TextFile::-1::1733753047::0::1::::<><>::
start.gd::GDScript::-1::1733753048::0::1::::<>Node2D<>::
::res://android/::1733753047
::res://Game/::1733753047
Game1.tscn::PackedScene::4858701676642721380::1733753047::0::1::::<><>::res://Game/game_1.gd<>uid://cpiyoy1ip3gly::::res://Pic/16pic_9368989_s.png<>uid://bd2syxwwandwr::::res://Pic/精灵-0001.png
game_1.gd::GDScript::-1::1733753047::0::1::::<>Node2D<>::
map1.json::JSON::-1::1733753047::0::1::::<><>::
::res://Pic/::1733753124
16pic_9368989_s.png::CompressedTexture2D::5843672554040184310::1733753047::1733753122::1::::<><>::
Background.png::CompressedTexture2D::2656703750174776915::1733753047::1733753122::1::::<><>::
enemy.jpg::CompressedTexture2D::281635740069666929::1733753047::1733753122::1::::<><>::
MenuBkg.png::CompressedTexture2D::5944490987406482341::1733753047::1733753124::1::::<><>::
start.png::CompressedTexture2D::791875214267721969::1733753047::1733753122::1::::<><>::
精灵-0001.png::CompressedTexture2D::2653862421913170993::1733753047::1733753122::1::::<><>::
::res://新建文件夹/::1733753146
::res://::1733999734
BGM01.mp3::AudioStreamMP3::7492941563579154536::1731320651::1733753599::1::::<><>::
button.gd::GDScript::-1::1732534330::0::1::::<>Button<>::
entrance.tscn::PackedScene::2746068924257683609::1733999446::0::1::::<><>::uid://bd36r1e5yh08v::::res://Pic/Background.png<>uid://ljucl4kg36m4::::res://Pic/start.png<>res://button.gd
export_presets.cfg::TextFile::-1::1731802477::0::1::::<><>::
icon.svg::CompressedTexture2D::7454284446828602664::1731252576::1733753599::1::::<><>::
Menu.tscn::PackedScene::633722661368511703::1733999734::0::1::::<><>::uid://cqxs5sfoa1bj6::::res://Pic/MenuBkg.png<>res://Menubutton1.gd
Menubutton1.gd::GDScript::-1::1733980575::0::1::::<>Button<>::
README.md::TextFile::-1::1733751593::0::1::::<><>::
start.gd::GDScript::-1::1731321260::0::1::::<>Node2D<>::
::res://android/::1732535050
::res://Game/::1733999446
enemy_1.gd::GDScript::-1::1733999572::0::1::::<>Sprite2D<>::
game1.json::JSON::-1::1733980522::0::1::::<><>::
Game1.tscn::PackedScene::4858701676642721380::1733999446::0::1::::<><>::res://Game/game_1.gd<>uid://cpiyoy1ip3gly::::res://Pic/16pic_9368989_s.png<>uid://bd2syxwwandwr::::res://Pic/精灵-0001.png<>res://Game/enemy_1.gd
game_1.gd::GDScript::-1::1733999055::0::1::::<>Node2D<>::
map1.json::JSON::-1::1733980575::0::1::::<><>::
::res://Pic/::1733753603
16pic_9368989_s.png::CompressedTexture2D::5843672554040184310::1732535980::1733753599::1::::<><>::
Background.png::CompressedTexture2D::2656703750174776915::1731317143::1733753599::1::::<><>::
enemy.jpg::CompressedTexture2D::281635740069666929::1732537920::1733753599::1::::<><>::
MenuBkg.png::CompressedTexture2D::5944490987406482341::1732533827::1733753603::1::::<><>::
start.png::CompressedTexture2D::791875214267721969::1731317761::1733753599::1::::<><>::
精灵-0001.png::CompressedTexture2D::2653862421913170993::1733376390::1733753599::1::::<><>::
7 changes: 5 additions & 2 deletions .godot/editor/filesystem_update4
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
res://entrance.tscn
res://Menu.tscn
res://Game/Game1.tscn
res://Game/game_1.gd
res://entrance.tscn
res://Menu.tscn
res://Menubutton.gd
res://Game/enemy_1.gd
res://Menubutton2.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[folding]

sections_unfolded=PackedStringArray()
10 changes: 7 additions & 3 deletions .godot/editor/project_metadata.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[editor_metadata]

executable_path="D:/Downloads/Godot_v4.3-stable_win64.exe/Godot_v4.3-stable_win64.exe"
executable_path="D:/Program Files/Godot Engine/Godot_v4.3-stable_win64.exe"

[dialog_bounds]

Expand All @@ -11,8 +11,8 @@ export=Rect2(830, 550, 900, 635)

[recent_files]

scenes=["res://Game/Game1.tscn", "res://Menu.tscn", "res://entrance.tscn", "res://Game1.tscn", "res://entry.tscn"]
scripts=["res://Menubutton.gd", "res://Map/map1.json", "res://game_1.gd", "res://button.gd", "res://entrance.tscn::GDScript_01h32", "res://screen.gd", "res://ready.gd", "res://music.gd", "res://start.gd"]
scenes=["res://Menu.tscn", "res://Game/Game1.tscn", "res://entrance.tscn", "res://Game1.tscn", "res://entry.tscn"]
scripts=["res://Game/label.gd", "res://Menubutton2.gd", "res://Menubutton.gd", "res://Game/enemy_1.gd", "res://Map/map1.json", "res://game_1.gd", "res://button.gd", "res://entrance.tscn::GDScript_01h32", "res://screen.gd", "res://ready.gd"]

[project_settings]

Expand All @@ -33,3 +33,7 @@ show_scripts_panel=true
[export_options]

default_filename="保卫USTC-0.0.1"

[color_picker]

picker_shape=3
58 changes: 50 additions & 8 deletions .godot/editor/script_editor_cache.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -30,43 +30,85 @@ state={
"syntax_highlighter": "GDScript"
}

[res://Menubutton.gd]
[res://Game/map1.json]

state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 0,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 13,
"row": 16,
"scroll_position": 0.0,
"selection": false,
"syntax_highlighter": "JSON"
}

[res://Game/game_1.gd]

state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 0,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 59,
"scroll_position": 31.0,
"selection": false,
"syntax_highlighter": "GDScript"
}

[res://Game/map1.json]
[res://Game/enemy_1.gd]

state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 13,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 28,
"scroll_position": 10.0,
"selection": false,
"syntax_highlighter": "GDScript"
}

[res://Menubutton1.gd]

state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 0,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 16,
"row": 0,
"scroll_position": 0.0,
"selection": false,
"syntax_highlighter": "JSON"
"syntax_highlighter": "GDScript"
}

[res://Game/game_1.gd]
[res://Menubutton2.gd]

state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 0,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 13,
"scroll_position": 0.0,
"selection": false,
"syntax_highlighter": "GDScript"
}

[res://Game/label.gd]

state={
"bookmarks": PackedInt32Array(),
"breakpoints": PackedInt32Array(),
"column": 53,
"column": 0,
"folded_lines": Array[int]([]),
"h_scroll_position": 0,
"row": 51,
"row": 11,
"scroll_position": 0.0,
"selection": false,
"syntax_highlighter": "GDScript"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
source_md5="3dd1dd8d7e3c01ab5a96153f4117797f"
dest_md5="3f967799d62697229f724be1a5b946ae"
dest_md5="f0823e9f7f644cbc8f61e06dcf003e83"

Binary file not shown.
Binary file added .godot/imported/Men9C1.tmp
Binary file not shown.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"godotTools.editorPath.godot4": "d:\\Games\\保卫USTC-Debug-0.0.1\\保卫USTC-0.0.1.exe"
}
20 changes: 20 additions & 0 deletions Game/Gam4043.tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[gd_scene load_steps=4 format=3 uid="uid://cbhudvnww6ovk"]

[ext_resource type="Script" path="res://Game/game_1.gd" id="1_gbnhh"]
[ext_resource type="Texture2D" uid="uid://cpiyoy1ip3gly" path="res://Pic/16pic_9368989_s.png" id="2_mwqu1"]
[ext_resource type="Texture2D" uid="uid://bd2syxwwandwr" path="res://Pic/精灵-0001.png" id="3_y25sv"]

[node name="Node2D" type="Node2D"]
script = ExtResource("1_gbnhh")

[node name="OriginalRoad" type="Sprite2D" parent="."]
position = Vector2(-184, 272)
texture = ExtResource("2_mwqu1")

[node name="GamingPkg" type="Sprite2D" parent="."]

[node name="enemy_1" type="Sprite2D" parent="."]
z_index = 10
position = Vector2(-90.9999, 82.0001)
scale = Vector2(3, 3)
texture = ExtResource("3_y25sv")
20 changes: 20 additions & 0 deletions Game/Gam72DD.tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[gd_scene load_steps=4 format=3 uid="uid://cbhudvnww6ovk"]

[ext_resource type="Script" path="res://Game/game_1.gd" id="1_gbnhh"]
[ext_resource type="Texture2D" uid="uid://cpiyoy1ip3gly" path="res://Pic/16pic_9368989_s.png" id="2_mwqu1"]
[ext_resource type="Texture2D" uid="uid://bd2syxwwandwr" path="res://Pic/精灵-0001.png" id="3_y25sv"]

[node name="Node2D" type="Node2D"]
script = ExtResource("1_gbnhh")

[node name="OriginalRoad" type="Sprite2D" parent="."]
position = Vector2(-184, 272)
texture = ExtResource("2_mwqu1")

[node name="GamingPkg" type="Sprite2D" parent="."]

[node name="enemy_1" type="Sprite2D" parent="."]
z_index = 10
position = Vector2(-90.9999, 82.0001)
scale = Vector2(3, 3)
texture = ExtResource("3_y25sv")
20 changes: 20 additions & 0 deletions Game/Gam968B.tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[gd_scene load_steps=4 format=3 uid="uid://cbhudvnww6ovk"]

[ext_resource type="Script" path="res://Game/game_1.gd" id="1_gbnhh"]
[ext_resource type="Texture2D" uid="uid://cpiyoy1ip3gly" path="res://Pic/16pic_9368989_s.png" id="2_mwqu1"]
[ext_resource type="Texture2D" uid="uid://bd2syxwwandwr" path="res://Pic/精灵-0001.png" id="3_y25sv"]

[node name="Node2D" type="Node2D"]
script = ExtResource("1_gbnhh")

[node name="OriginalRoad" type="Sprite2D" parent="."]
position = Vector2(-184, 272)
texture = ExtResource("2_mwqu1")

[node name="GamingPkg" type="Sprite2D" parent="."]

[node name="enemy_1" type="Sprite2D" parent="."]
z_index = 10
position = Vector2(-90.9999, 82.0001)
scale = Vector2(3, 3)
texture = ExtResource("3_y25sv")
16 changes: 14 additions & 2 deletions Game/Game1.tscn
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
[gd_scene load_steps=4 format=3 uid="uid://cbhudvnww6ovk"]
[gd_scene load_steps=6 format=3 uid="uid://cbhudvnww6ovk"]

[ext_resource type="Script" path="res://Game/game_1.gd" id="1_gbnhh"]
[ext_resource type="Texture2D" uid="uid://cpiyoy1ip3gly" path="res://Pic/16pic_9368989_s.png" id="2_mwqu1"]
[ext_resource type="Texture2D" uid="uid://bd2syxwwandwr" path="res://Pic/精灵-0001.png" id="3_y25sv"]
[ext_resource type="Script" path="res://Game/enemy_1.gd" id="4_ybhqw"]
[ext_resource type="Script" path="res://Game/label.gd" id="5_jafd5"]

[node name="Node2D" type="Node2D"]
script = ExtResource("1_gbnhh")
Expand All @@ -13,8 +15,18 @@ texture = ExtResource("2_mwqu1")

[node name="GamingPkg" type="Sprite2D" parent="."]

[node name="enemy" type="Sprite2D" parent="."]
[node name="enemy_1" type="Sprite2D" parent="."]
z_index = 10
position = Vector2(-90.9999, 82.0001)
scale = Vector2(3, 3)
texture = ExtResource("3_y25sv")
script = ExtResource("4_ybhqw")

[node name="Label" type="Label" parent="."]
offset_left = 620.0
offset_top = 153.0
offset_right = 1125.0
offset_bottom = 658.0
theme_override_font_sizes/font_size = 370
text = "3"
script = ExtResource("5_jafd5")
Loading

0 comments on commit 741260b

Please sign in to comment.