Skip to content

Commit

Permalink
refactor: 重构项目结构(其二) (#87)
Browse files Browse the repository at this point in the history
* refactor: 将 bg 文件夹移动至 ui 文件夹

* refactor: 将部分场景从 objects/ 移到 scenes/

移动了 credits 和 main_menu。
  • Loading branch information
cutekibry authored Sep 23, 2024
1 parent 668ca4c commit a197cec
Show file tree
Hide file tree
Showing 89 changed files with 147 additions and 147 deletions.
4 changes: 2 additions & 2 deletions main.tscn
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[gd_scene load_steps=8 format=3 uid="uid://c17fbsiogbgo1"]

[ext_resource type="PackedScene" uid="uid://c07co5p46apu7" path="res://objects/main_menu/main_menu.tscn" id="1_fk6j6"]
[ext_resource type="PackedScene" uid="uid://c07co5p46apu7" path="res://scenes/main_menu/main_menu.tscn" id="1_fk6j6"]
[ext_resource type="Script" path="res://main.gd" id="1_nb6uf"]
[ext_resource type="PackedScene" uid="uid://d3geq38s5fjc6" path="res://bg/dynamic_bg/dynamic_bg.tscn" id="2_8k4il"]
[ext_resource type="PackedScene" uid="uid://d3geq38s5fjc6" path="res://ui/dynamic_bg/dynamic_bg.tscn" id="2_8k4il"]
[ext_resource type="PackedScene" uid="uid://budvuitfjtjcd" path="res://scripts/image_lib/image_lib.tscn" id="2_771gm"]
[ext_resource type="AudioStream" uid="uid://cr3nkhf0fejm5" path="res://scenes/base_level/bgm.wav" id="3_n81it"]
[ext_resource type="PackedScene" uid="uid://prht3u5pnjls" path="res://scripts/cursor_manager/cursor_manager.tscn" id="5_pqych"]
Expand Down
2 changes: 1 addition & 1 deletion project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ window/size/viewport_width=640
window/size/viewport_height=360
window/stretch/mode="viewport"
window/stretch/scale_mode="integer"
mouse_cursor/custom_image="res://bg/cursor/cursor_arrow.png"
mouse_cursor/custom_image="res://ui/cursor/cursor_arrow.png"

[editor_plugins]

Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c585nvnsd4utt"
path="res://.godot/imported/bunny.png-f17081fcd39d3c41b363cd0360ac3c4e.ctex"
path="res://.godot/imported/bunny.png-aec77c8af011a6d7f8056800e398631e.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/credits/bunny.png"
dest_files=["res://.godot/imported/bunny.png-f17081fcd39d3c41b363cd0360ac3c4e.ctex"]
source_file="res://scenes/credits/bunny.png"
dest_files=["res://.godot/imported/bunny.png-aec77c8af011a6d7f8056800e398631e.ctex"]

[params]

Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions objects/credits/credits.tscn → scenes/credits/credits.tscn
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[gd_scene load_steps=7 format=3 uid="uid://cdu8yubd7fyvb"]

[ext_resource type="FontFile" uid="uid://1000owdyvwfg" path="res://fonts/unifont-15.1.04.otf" id="1_re7ax"]
[ext_resource type="Script" path="res://objects/credits/credits.gd" id="2_epjvn"]
[ext_resource type="Texture2D" uid="uid://c585nvnsd4utt" path="res://objects/credits/bunny.png" id="3_4jp5o"]
[ext_resource type="Texture2D" uid="uid://dtf6v2q2p4mku" path="res://objects/credits/ligen.png" id="4_m7war"]
[ext_resource type="Texture2D" uid="uid://chh0duwbissj5" path="res://objects/credits/tsuki.png" id="5_uqmmc"]
[ext_resource type="Texture2D" uid="uid://c0pt1v7cx7631" path="res://objects/credits/mouse.png" id="6_316uh"]
[ext_resource type="Script" path="res://scenes/credits/credits.gd" id="2_epjvn"]
[ext_resource type="Texture2D" uid="uid://c585nvnsd4utt" path="res://scenes/credits/bunny.png" id="3_4jp5o"]
[ext_resource type="Texture2D" uid="uid://dtf6v2q2p4mku" path="res://scenes/credits/ligen.png" id="4_m7war"]
[ext_resource type="Texture2D" uid="uid://chh0duwbissj5" path="res://scenes/credits/tsuki.png" id="5_uqmmc"]
[ext_resource type="Texture2D" uid="uid://c0pt1v7cx7631" path="res://scenes/credits/mouse.png" id="6_316uh"]

[node name="Label" type="Label"]
custom_minimum_size = Vector2(480, 256)
Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://dtf6v2q2p4mku"
path="res://.godot/imported/ligen.png-fec13055aaa464f5ab7ae0a9c8debd20.ctex"
path="res://.godot/imported/ligen.png-62d8bcd19adc981548c712823f8331bf.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/credits/ligen.png"
dest_files=["res://.godot/imported/ligen.png-fec13055aaa464f5ab7ae0a9c8debd20.ctex"]
source_file="res://scenes/credits/ligen.png"
dest_files=["res://.godot/imported/ligen.png-62d8bcd19adc981548c712823f8331bf.ctex"]

[params]

Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c0pt1v7cx7631"
path="res://.godot/imported/mouse.png-2f127b435ac041c677f871a73fe64754.ctex"
path="res://.godot/imported/mouse.png-f01e7da28c579de654441b8bc3d14042.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/credits/mouse.png"
dest_files=["res://.godot/imported/mouse.png-2f127b435ac041c677f871a73fe64754.ctex"]
source_file="res://scenes/credits/mouse.png"
dest_files=["res://.godot/imported/mouse.png-f01e7da28c579de654441b8bc3d14042.ctex"]

[params]

Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://chh0duwbissj5"
path="res://.godot/imported/tsuki.png-1cce4def5607aa81bc72753120a0a6c6.ctex"
path="res://.godot/imported/tsuki.png-960165d52c4af91fd134e8b944666ac7.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/credits/tsuki.png"
dest_files=["res://.godot/imported/tsuki.png-1cce4def5607aa81bc72753120a0a6c6.ctex"]
source_file="res://scenes/credits/tsuki.png"
dest_files=["res://.godot/imported/tsuki.png-960165d52c4af91fd134e8b944666ac7.ctex"]

[params]

Expand Down
2 changes: 1 addition & 1 deletion scenes/level_menu/level_menu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class_name LevelMenu

const LevelButtonScn := preload("res://scenes/level_menu/level_button/level_button.tscn")
const BaseLevelScn := preload("res://scenes/base_level/base_level.tscn")
const CreditsScn := preload("res://objects/credits/credits.tscn")
const CreditsScn := preload("res://scenes/credits/credits.tscn")

const WIDTH := 1920 / 3

Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://ksc3hj3vyr8"
path="res://.godot/imported/backgroud.png-b2aa382c53a2cf59867df51a4f899b1d.ctex"
path="res://.godot/imported/backgroud.png-43cd505e3a334399ebeddc0375fefbeb.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/main_menu/background/backgroud.png"
dest_files=["res://.godot/imported/backgroud.png-b2aa382c53a2cf59867df51a4f899b1d.ctex"]
source_file="res://scenes/main_menu/background/backgroud.png"
dest_files=["res://.godot/imported/backgroud.png-43cd505e3a334399ebeddc0375fefbeb.ctex"]

[params]

Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://ceeypoydffke"
path="res://.godot/imported/main_menu1.png-23ae448944db4bce25666a05c370853c.ctex"
path="res://.godot/imported/main_menu1.png-ae0d26b327aa0c2a6ca181bd5a3ff183.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/main_menu/background/main_menu1.png"
dest_files=["res://.godot/imported/main_menu1.png-23ae448944db4bce25666a05c370853c.ctex"]
source_file="res://scenes/main_menu/background/main_menu1.png"
dest_files=["res://.godot/imported/main_menu1.png-ae0d26b327aa0c2a6ca181bd5a3ff183.ctex"]

[params]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://doj3api7yqkwa"
path="res://.godot/imported/main_menu10.png-9b0cb6641df6c748ca6f1eb9207620e7.ctex"
path="res://.godot/imported/main_menu10.png-50b7edb60662187afc588456941a9ad8.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/main_menu/background/main_menu10.png"
dest_files=["res://.godot/imported/main_menu10.png-9b0cb6641df6c748ca6f1eb9207620e7.ctex"]
source_file="res://scenes/main_menu/background/main_menu10.png"
dest_files=["res://.godot/imported/main_menu10.png-50b7edb60662187afc588456941a9ad8.ctex"]

[params]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://cb8hwijy6lslu"
path="res://.godot/imported/main_menu11.png-36db7957dff930e1aaa20f85be44d30f.ctex"
path="res://.godot/imported/main_menu11.png-c9c7fb3861d30ff1a76b852df610386c.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/main_menu/background/main_menu11.png"
dest_files=["res://.godot/imported/main_menu11.png-36db7957dff930e1aaa20f85be44d30f.ctex"]
source_file="res://scenes/main_menu/background/main_menu11.png"
dest_files=["res://.godot/imported/main_menu11.png-c9c7fb3861d30ff1a76b852df610386c.ctex"]

[params]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bf1rm32qprbpu"
path="res://.godot/imported/main_menu12.png-5fbba76b8eb615cb0515a05a2cb576cd.ctex"
path="res://.godot/imported/main_menu12.png-d949a35079a4f281895ada0ef1dfdb6e.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/main_menu/background/main_menu12.png"
dest_files=["res://.godot/imported/main_menu12.png-5fbba76b8eb615cb0515a05a2cb576cd.ctex"]
source_file="res://scenes/main_menu/background/main_menu12.png"
dest_files=["res://.godot/imported/main_menu12.png-d949a35079a4f281895ada0ef1dfdb6e.ctex"]

[params]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bretm2cyiirtb"
path="res://.godot/imported/main_menu13.png-d6d60de9020b0d12ea6e6d04069df0a6.ctex"
path="res://.godot/imported/main_menu13.png-84bd5ea0bbc3ceed8551c0daea1d805d.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/main_menu/background/main_menu13.png"
dest_files=["res://.godot/imported/main_menu13.png-d6d60de9020b0d12ea6e6d04069df0a6.ctex"]
source_file="res://scenes/main_menu/background/main_menu13.png"
dest_files=["res://.godot/imported/main_menu13.png-84bd5ea0bbc3ceed8551c0daea1d805d.ctex"]

[params]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bqm3lgo8c8nfb"
path="res://.godot/imported/main_menu14.png-b74489c0e88a335f94cccdbf2fac7187.ctex"
path="res://.godot/imported/main_menu14.png-fecc1f8f621bcd9277d0c32b36124fa3.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/main_menu/background/main_menu14.png"
dest_files=["res://.godot/imported/main_menu14.png-b74489c0e88a335f94cccdbf2fac7187.ctex"]
source_file="res://scenes/main_menu/background/main_menu14.png"
dest_files=["res://.godot/imported/main_menu14.png-fecc1f8f621bcd9277d0c32b36124fa3.ctex"]

[params]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bw8xulwxqnhbc"
path="res://.godot/imported/main_menu15.png-0bfd33b71978a3ed207be9e9eb34f81e.ctex"
path="res://.godot/imported/main_menu15.png-ea5e1fb9f7763f59e258c9b27671fdda.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/main_menu/background/main_menu15.png"
dest_files=["res://.godot/imported/main_menu15.png-0bfd33b71978a3ed207be9e9eb34f81e.ctex"]
source_file="res://scenes/main_menu/background/main_menu15.png"
dest_files=["res://.godot/imported/main_menu15.png-ea5e1fb9f7763f59e258c9b27671fdda.ctex"]

[params]

Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://7gpyu0xntcot"
path="res://.godot/imported/main_menu2.png-730d97dfbfbd3f683f5c82945ce935ef.ctex"
path="res://.godot/imported/main_menu2.png-42f42a51bb87b7ae55a04caea5b7301e.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/main_menu/background/main_menu2.png"
dest_files=["res://.godot/imported/main_menu2.png-730d97dfbfbd3f683f5c82945ce935ef.ctex"]
source_file="res://scenes/main_menu/background/main_menu2.png"
dest_files=["res://.godot/imported/main_menu2.png-42f42a51bb87b7ae55a04caea5b7301e.ctex"]

[params]

Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://13bbhjgsdyy7"
path="res://.godot/imported/main_menu3.png-1e9f7215e2580e1c85c968849305b2fa.ctex"
path="res://.godot/imported/main_menu3.png-03b4bfff413aa7cfb6862a776716e683.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/main_menu/background/main_menu3.png"
dest_files=["res://.godot/imported/main_menu3.png-1e9f7215e2580e1c85c968849305b2fa.ctex"]
source_file="res://scenes/main_menu/background/main_menu3.png"
dest_files=["res://.godot/imported/main_menu3.png-03b4bfff413aa7cfb6862a776716e683.ctex"]

[params]

Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://cyly0xfifssay"
path="res://.godot/imported/main_menu4.png-b69fec57d158bb39b0a31b2b5fce42ac.ctex"
path="res://.godot/imported/main_menu4.png-a250625d337573d5954d7de9d330349d.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/main_menu/background/main_menu4.png"
dest_files=["res://.godot/imported/main_menu4.png-b69fec57d158bb39b0a31b2b5fce42ac.ctex"]
source_file="res://scenes/main_menu/background/main_menu4.png"
dest_files=["res://.godot/imported/main_menu4.png-a250625d337573d5954d7de9d330349d.ctex"]

[params]

Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://be7wgh0pa8bvi"
path="res://.godot/imported/main_menu5.png-b07abb9962aad52f89f44756bee7c3d8.ctex"
path="res://.godot/imported/main_menu5.png-94f73268f60702d5683936c23d4962e9.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/main_menu/background/main_menu5.png"
dest_files=["res://.godot/imported/main_menu5.png-b07abb9962aad52f89f44756bee7c3d8.ctex"]
source_file="res://scenes/main_menu/background/main_menu5.png"
dest_files=["res://.godot/imported/main_menu5.png-94f73268f60702d5683936c23d4962e9.ctex"]

[params]

Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://c6hd45docu4q4"
path="res://.godot/imported/main_menu6.png-1986c9793ea213417459222ae356c6f1.ctex"
path="res://.godot/imported/main_menu6.png-2b62f56d4e876ffa5915ce423ba2dfbf.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/main_menu/background/main_menu6.png"
dest_files=["res://.godot/imported/main_menu6.png-1986c9793ea213417459222ae356c6f1.ctex"]
source_file="res://scenes/main_menu/background/main_menu6.png"
dest_files=["res://.godot/imported/main_menu6.png-2b62f56d4e876ffa5915ce423ba2dfbf.ctex"]

[params]

Expand Down
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://brrl02ie8hhti"
path="res://.godot/imported/main_menu7.png-a79c804395169f465ca8f8fa346bb21a.ctex"
path="res://.godot/imported/main_menu7.png-fb51a3197cf7056fe745541cdcfe2ea5.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://objects/main_menu/background/main_menu7.png"
dest_files=["res://.godot/imported/main_menu7.png-a79c804395169f465ca8f8fa346bb21a.ctex"]
source_file="res://scenes/main_menu/background/main_menu7.png"
dest_files=["res://.godot/imported/main_menu7.png-fb51a3197cf7056fe745541cdcfe2ea5.ctex"]

[params]

Expand Down
File renamed without changes
Loading

0 comments on commit a197cec

Please sign in to comment.