main.tscn 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. [gd_scene load_steps=65 format=3 uid="uid://vd6f817st20r"]
  2. [ext_resource type="Script" uid="uid://dyfhfmncwhby0" path="res://scripts/main.gd" id="1_tbgi4"]
  3. [ext_resource type="PackedScene" uid="uid://dob8a2h4f6gt8" path="res://scenes/player.tscn" id="2_sugp2"]
  4. [ext_resource type="PackedScene" uid="uid://dxcvuxgvdsx7" path="res://scenes/npc.tscn" id="3_jyhfs"]
  5. [ext_resource type="Texture2D" uid="uid://dcljwh6jlvwaq" path="res://assets/characters/character_3.png" id="5_o6xl0"]
  6. [ext_resource type="Texture2D" uid="uid://c6guopaun4bag" path="res://assets/interiors/Japanese_Home_1_preview_48x48.png" id="5_tbgi4"]
  7. [ext_resource type="PackedScene" uid="uid://cm0yi2d074t64" path="res://scenes/dialogue_ui.tscn" id="5_tefeu"]
  8. [ext_resource type="Texture2D" uid="uid://ev8s67j8speg" path="res://assets/characters/character_4.png" id="6_o6xl0"]
  9. [ext_resource type="Texture2D" uid="uid://be80ipi13u6xb" path="res://assets/interiors/小鲸鱼.png" id="8_tipki"]
  10. [ext_resource type="AudioStream" uid="uid://brhbet2ll8icy" path="res://assets/audio/BGM.ogg" id="9_85g3d"]
  11. [sub_resource type="AtlasTexture" id="AtlasTexture_tipki"]
  12. atlas = ExtResource("5_o6xl0")
  13. region = Rect2(2016, 1086, 48, 70)
  14. [sub_resource type="AtlasTexture" id="AtlasTexture_85g3d"]
  15. atlas = ExtResource("5_o6xl0")
  16. region = Rect2(2064, 1086, 48, 70)
  17. [sub_resource type="AtlasTexture" id="AtlasTexture_choun"]
  18. atlas = ExtResource("5_o6xl0")
  19. region = Rect2(2112, 1086, 48, 70)
  20. [sub_resource type="AtlasTexture" id="AtlasTexture_ya4ey"]
  21. atlas = ExtResource("5_o6xl0")
  22. region = Rect2(2160, 1086, 48, 70)
  23. [sub_resource type="AtlasTexture" id="AtlasTexture_eb6dy"]
  24. atlas = ExtResource("5_o6xl0")
  25. region = Rect2(2208, 1086, 48, 70)
  26. [sub_resource type="AtlasTexture" id="AtlasTexture_trceg"]
  27. atlas = ExtResource("5_o6xl0")
  28. region = Rect2(2256, 1086, 48, 70)
  29. [sub_resource type="AtlasTexture" id="AtlasTexture_dp3eg"]
  30. atlas = ExtResource("5_o6xl0")
  31. region = Rect2(2304, 1086, 48, 70)
  32. [sub_resource type="AtlasTexture" id="AtlasTexture_0ld40"]
  33. atlas = ExtResource("5_o6xl0")
  34. region = Rect2(2352, 1086, 48, 70)
  35. [sub_resource type="AtlasTexture" id="AtlasTexture_gqmmt"]
  36. atlas = ExtResource("5_o6xl0")
  37. region = Rect2(2400, 1086, 48, 70)
  38. [sub_resource type="AtlasTexture" id="AtlasTexture_yc10j"]
  39. atlas = ExtResource("5_o6xl0")
  40. region = Rect2(2448, 1086, 48, 70)
  41. [sub_resource type="AtlasTexture" id="AtlasTexture_jscy8"]
  42. atlas = ExtResource("5_o6xl0")
  43. region = Rect2(2496, 1086, 48, 70)
  44. [sub_resource type="AtlasTexture" id="AtlasTexture_pm3ni"]
  45. atlas = ExtResource("5_o6xl0")
  46. region = Rect2(2544, 1086, 48, 70)
  47. [sub_resource type="AtlasTexture" id="AtlasTexture_y6deb"]
  48. atlas = ExtResource("5_o6xl0")
  49. region = Rect2(2592, 1086, 48, 70)
  50. [sub_resource type="AtlasTexture" id="AtlasTexture_og1vs"]
  51. atlas = ExtResource("5_o6xl0")
  52. region = Rect2(2640, 1086, 48, 70)
  53. [sub_resource type="AtlasTexture" id="AtlasTexture_2wyq8"]
  54. atlas = ExtResource("5_o6xl0")
  55. region = Rect2(864, 792, 48, 70)
  56. [sub_resource type="AtlasTexture" id="AtlasTexture_vxglm"]
  57. atlas = ExtResource("5_o6xl0")
  58. region = Rect2(912, 792, 48, 70)
  59. [sub_resource type="AtlasTexture" id="AtlasTexture_2f3dj"]
  60. atlas = ExtResource("5_o6xl0")
  61. region = Rect2(960, 792, 48, 70)
  62. [sub_resource type="AtlasTexture" id="AtlasTexture_yq6so"]
  63. atlas = ExtResource("5_o6xl0")
  64. region = Rect2(1008, 792, 48, 70)
  65. [sub_resource type="AtlasTexture" id="AtlasTexture_fv21b"]
  66. atlas = ExtResource("5_o6xl0")
  67. region = Rect2(1056, 792, 48, 70)
  68. [sub_resource type="AtlasTexture" id="AtlasTexture_tel4y"]
  69. atlas = ExtResource("5_o6xl0")
  70. region = Rect2(1104, 792, 48, 70)
  71. [sub_resource type="AtlasTexture" id="AtlasTexture_qkpxi"]
  72. atlas = ExtResource("5_o6xl0")
  73. region = Rect2(576, 792, 48, 70)
  74. [sub_resource type="AtlasTexture" id="AtlasTexture_5q0nq"]
  75. atlas = ExtResource("5_o6xl0")
  76. region = Rect2(624, 792, 48, 70)
  77. [sub_resource type="AtlasTexture" id="AtlasTexture_dgi5k"]
  78. atlas = ExtResource("5_o6xl0")
  79. region = Rect2(672, 792, 48, 70)
  80. [sub_resource type="AtlasTexture" id="AtlasTexture_j8jky"]
  81. atlas = ExtResource("5_o6xl0")
  82. region = Rect2(720, 792, 48, 70)
  83. [sub_resource type="AtlasTexture" id="AtlasTexture_kmb1v"]
  84. atlas = ExtResource("5_o6xl0")
  85. region = Rect2(768, 792, 48, 70)
  86. [sub_resource type="AtlasTexture" id="AtlasTexture_fuf3a"]
  87. atlas = ExtResource("5_o6xl0")
  88. region = Rect2(816, 792, 48, 70)
  89. [sub_resource type="AtlasTexture" id="AtlasTexture_pibwh"]
  90. atlas = ExtResource("5_o6xl0")
  91. region = Rect2(0, 792, 48, 70)
  92. [sub_resource type="AtlasTexture" id="AtlasTexture_c6pm6"]
  93. atlas = ExtResource("5_o6xl0")
  94. region = Rect2(48, 792, 48, 70)
  95. [sub_resource type="AtlasTexture" id="AtlasTexture_5he1u"]
  96. atlas = ExtResource("5_o6xl0")
  97. region = Rect2(96, 792, 48, 70)
  98. [sub_resource type="AtlasTexture" id="AtlasTexture_5poiv"]
  99. atlas = ExtResource("5_o6xl0")
  100. region = Rect2(144, 792, 48, 70)
  101. [sub_resource type="AtlasTexture" id="AtlasTexture_2cjbq"]
  102. atlas = ExtResource("5_o6xl0")
  103. region = Rect2(192, 792, 48, 70)
  104. [sub_resource type="AtlasTexture" id="AtlasTexture_chjal"]
  105. atlas = ExtResource("5_o6xl0")
  106. region = Rect2(240, 792, 48, 70)
  107. [sub_resource type="AtlasTexture" id="AtlasTexture_cjqg0"]
  108. atlas = ExtResource("5_o6xl0")
  109. region = Rect2(288, 792, 48, 70)
  110. [sub_resource type="AtlasTexture" id="AtlasTexture_vchkt"]
  111. atlas = ExtResource("5_o6xl0")
  112. region = Rect2(336, 792, 48, 70)
  113. [sub_resource type="AtlasTexture" id="AtlasTexture_txyw0"]
  114. atlas = ExtResource("5_o6xl0")
  115. region = Rect2(384, 792, 48, 70)
  116. [sub_resource type="AtlasTexture" id="AtlasTexture_vc5cj"]
  117. atlas = ExtResource("5_o6xl0")
  118. region = Rect2(432, 792, 48, 70)
  119. [sub_resource type="AtlasTexture" id="AtlasTexture_nvyfr"]
  120. atlas = ExtResource("5_o6xl0")
  121. region = Rect2(480, 792, 48, 70)
  122. [sub_resource type="AtlasTexture" id="AtlasTexture_ty1g6"]
  123. atlas = ExtResource("5_o6xl0")
  124. region = Rect2(528, 792, 48, 70)
  125. [sub_resource type="SpriteFrames" id="SpriteFrames_tbgi4"]
  126. animations = [{
  127. "frames": [{
  128. "duration": 1.0,
  129. "texture": SubResource("AtlasTexture_tipki")
  130. }, {
  131. "duration": 1.0,
  132. "texture": SubResource("AtlasTexture_85g3d")
  133. }, {
  134. "duration": 1.0,
  135. "texture": SubResource("AtlasTexture_choun")
  136. }, {
  137. "duration": 1.0,
  138. "texture": SubResource("AtlasTexture_ya4ey")
  139. }, {
  140. "duration": 1.0,
  141. "texture": SubResource("AtlasTexture_eb6dy")
  142. }, {
  143. "duration": 1.0,
  144. "texture": SubResource("AtlasTexture_trceg")
  145. }, {
  146. "duration": 1.0,
  147. "texture": SubResource("AtlasTexture_dp3eg")
  148. }, {
  149. "duration": 1.0,
  150. "texture": SubResource("AtlasTexture_0ld40")
  151. }, {
  152. "duration": 1.0,
  153. "texture": SubResource("AtlasTexture_gqmmt")
  154. }, {
  155. "duration": 1.0,
  156. "texture": SubResource("AtlasTexture_yc10j")
  157. }, {
  158. "duration": 1.0,
  159. "texture": SubResource("AtlasTexture_jscy8")
  160. }, {
  161. "duration": 1.0,
  162. "texture": SubResource("AtlasTexture_pm3ni")
  163. }, {
  164. "duration": 1.0,
  165. "texture": SubResource("AtlasTexture_y6deb")
  166. }, {
  167. "duration": 1.0,
  168. "texture": SubResource("AtlasTexture_og1vs")
  169. }],
  170. "loop": true,
  171. "name": &"idle",
  172. "speed": 5.0
  173. }, {
  174. "frames": [{
  175. "duration": 1.0,
  176. "texture": SubResource("AtlasTexture_2wyq8")
  177. }, {
  178. "duration": 1.0,
  179. "texture": SubResource("AtlasTexture_vxglm")
  180. }, {
  181. "duration": 1.0,
  182. "texture": SubResource("AtlasTexture_2f3dj")
  183. }, {
  184. "duration": 1.0,
  185. "texture": SubResource("AtlasTexture_yq6so")
  186. }, {
  187. "duration": 1.0,
  188. "texture": SubResource("AtlasTexture_fv21b")
  189. }, {
  190. "duration": 1.0,
  191. "texture": SubResource("AtlasTexture_tel4y")
  192. }],
  193. "loop": true,
  194. "name": &"walk_down",
  195. "speed": 5.0
  196. }, {
  197. "frames": [{
  198. "duration": 1.0,
  199. "texture": SubResource("AtlasTexture_qkpxi")
  200. }, {
  201. "duration": 1.0,
  202. "texture": SubResource("AtlasTexture_5q0nq")
  203. }, {
  204. "duration": 1.0,
  205. "texture": SubResource("AtlasTexture_dgi5k")
  206. }, {
  207. "duration": 1.0,
  208. "texture": SubResource("AtlasTexture_j8jky")
  209. }, {
  210. "duration": 1.0,
  211. "texture": SubResource("AtlasTexture_kmb1v")
  212. }, {
  213. "duration": 1.0,
  214. "texture": SubResource("AtlasTexture_fuf3a")
  215. }],
  216. "loop": true,
  217. "name": &"walk_left",
  218. "speed": 5.0
  219. }, {
  220. "frames": [{
  221. "duration": 1.0,
  222. "texture": SubResource("AtlasTexture_pibwh")
  223. }, {
  224. "duration": 1.0,
  225. "texture": SubResource("AtlasTexture_c6pm6")
  226. }, {
  227. "duration": 1.0,
  228. "texture": SubResource("AtlasTexture_5he1u")
  229. }, {
  230. "duration": 1.0,
  231. "texture": SubResource("AtlasTexture_5poiv")
  232. }, {
  233. "duration": 1.0,
  234. "texture": SubResource("AtlasTexture_2cjbq")
  235. }, {
  236. "duration": 1.0,
  237. "texture": SubResource("AtlasTexture_chjal")
  238. }],
  239. "loop": true,
  240. "name": &"walk_right",
  241. "speed": 5.0
  242. }, {
  243. "frames": [{
  244. "duration": 1.0,
  245. "texture": SubResource("AtlasTexture_cjqg0")
  246. }, {
  247. "duration": 1.0,
  248. "texture": SubResource("AtlasTexture_vchkt")
  249. }, {
  250. "duration": 1.0,
  251. "texture": SubResource("AtlasTexture_txyw0")
  252. }, {
  253. "duration": 1.0,
  254. "texture": SubResource("AtlasTexture_vc5cj")
  255. }, {
  256. "duration": 1.0,
  257. "texture": SubResource("AtlasTexture_nvyfr")
  258. }, {
  259. "duration": 1.0,
  260. "texture": SubResource("AtlasTexture_ty1g6")
  261. }],
  262. "loop": true,
  263. "name": &"walk_up",
  264. "speed": 5.0
  265. }]
  266. [sub_resource type="AtlasTexture" id="AtlasTexture_tefeu"]
  267. atlas = ExtResource("6_o6xl0")
  268. region = Rect2(288, 410, 48, 70)
  269. [sub_resource type="AtlasTexture" id="AtlasTexture_o6xl0"]
  270. atlas = ExtResource("6_o6xl0")
  271. region = Rect2(336, 410, 48, 70)
  272. [sub_resource type="AtlasTexture" id="AtlasTexture_a8y0u"]
  273. atlas = ExtResource("6_o6xl0")
  274. region = Rect2(384, 410, 48, 70)
  275. [sub_resource type="AtlasTexture" id="AtlasTexture_jkv2x"]
  276. atlas = ExtResource("6_o6xl0")
  277. region = Rect2(432, 410, 48, 70)
  278. [sub_resource type="AtlasTexture" id="AtlasTexture_jbj1t"]
  279. atlas = ExtResource("6_o6xl0")
  280. region = Rect2(480, 410, 48, 70)
  281. [sub_resource type="AtlasTexture" id="AtlasTexture_muem4"]
  282. atlas = ExtResource("6_o6xl0")
  283. region = Rect2(528, 410, 48, 70)
  284. [sub_resource type="SpriteFrames" id="SpriteFrames_dp3eg"]
  285. animations = [{
  286. "frames": [{
  287. "duration": 1.0,
  288. "texture": SubResource("AtlasTexture_tefeu")
  289. }, {
  290. "duration": 1.0,
  291. "texture": SubResource("AtlasTexture_o6xl0")
  292. }, {
  293. "duration": 1.0,
  294. "texture": SubResource("AtlasTexture_a8y0u")
  295. }, {
  296. "duration": 1.0,
  297. "texture": SubResource("AtlasTexture_jkv2x")
  298. }, {
  299. "duration": 1.0,
  300. "texture": SubResource("AtlasTexture_jbj1t")
  301. }, {
  302. "duration": 1.0,
  303. "texture": SubResource("AtlasTexture_muem4")
  304. }],
  305. "loop": true,
  306. "name": &"default",
  307. "speed": 5.0
  308. }]
  309. [sub_resource type="RectangleShape2D" id="RectangleShape2D_tipki"]
  310. size = Vector2(712, 20)
  311. [sub_resource type="RectangleShape2D" id="RectangleShape2D_85g3d"]
  312. size = Vector2(414.5, 20)
  313. [sub_resource type="RectangleShape2D" id="RectangleShape2D_choun"]
  314. size = Vector2(75.5, 20)
  315. [sub_resource type="RectangleShape2D" id="RectangleShape2D_ya4ey"]
  316. size = Vector2(14.5, 18.5)
  317. [sub_resource type="RectangleShape2D" id="RectangleShape2D_eb6dy"]
  318. size = Vector2(1258, 20)
  319. [sub_resource type="RectangleShape2D" id="RectangleShape2D_trceg"]
  320. size = Vector2(23.5, 484)
  321. [sub_resource type="RectangleShape2D" id="RectangleShape2D_a8y0u"]
  322. size = Vector2(779, 75)
  323. [sub_resource type="RectangleShape2D" id="RectangleShape2D_jkv2x"]
  324. size = Vector2(302, 67)
  325. [sub_resource type="RectangleShape2D" id="RectangleShape2D_jbj1t"]
  326. size = Vector2(107, 65)
  327. [node name="Main" type="Node2D"]
  328. script = ExtResource("1_tbgi4")
  329. [node name="Background" type="Sprite2D" parent="."]
  330. position = Vector2(644.49994, 371.25)
  331. scale = Vector2(1.4747808, 1.1394081)
  332. texture = ExtResource("5_tbgi4")
  333. metadata/_edit_lock_ = true
  334. [node name="小鲸鱼" type="Sprite2D" parent="Background"]
  335. position = Vector2(96.62457, -220.50922)
  336. scale = Vector2(0.09239753, 0.12666555)
  337. texture = ExtResource("8_tipki")
  338. [node name="Player" parent="." instance=ExtResource("2_sugp2")]
  339. position = Vector2(453, 492)
  340. [node name="NPCs" type="Node2D" parent="."]
  341. [node name="NPC_Zhang" parent="NPCs" instance=ExtResource("3_jyhfs")]
  342. position = Vector2(367, 172)
  343. [node name="NPC_Li" parent="NPCs" instance=ExtResource("3_jyhfs")]
  344. position = Vector2(1071, 164)
  345. npc_name = "李四"
  346. npc_title = "产品经理"
  347. sprite_frames = SubResource("SpriteFrames_tbgi4")
  348. move_speed = 20.0
  349. [node name="NPC_Wang" parent="NPCs" instance=ExtResource("3_jyhfs")]
  350. z_index = 1
  351. position = Vector2(206, 423)
  352. npc_name = "王五"
  353. npc_title = "UI设计师"
  354. sprite_frames = SubResource("SpriteFrames_dp3eg")
  355. wander_range = 0.0
  356. [node name="DialogueUI" parent="." instance=ExtResource("5_tefeu")]
  357. [node name="Walls" type="Node2D" parent="."]
  358. [node name="TopWall" type="StaticBody2D" parent="Walls"]
  359. [node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/TopWall"]
  360. position = Vector2(396, 86)
  361. shape = SubResource("RectangleShape2D_tipki")
  362. [node name="CollisionShape2D2" type="CollisionShape2D" parent="Walls/TopWall"]
  363. position = Vector2(1034, 86)
  364. shape = SubResource("RectangleShape2D_85g3d")
  365. [node name="CollisionShape2D3" type="CollisionShape2D" parent="Walls/TopWall"]
  366. position = Vector2(787, 113)
  367. shape = SubResource("RectangleShape2D_choun")
  368. [node name="CollisionShape2D4" type="CollisionShape2D" parent="Walls/TopWall"]
  369. position = Vector2(747, 112.75)
  370. shape = SubResource("RectangleShape2D_ya4ey")
  371. [node name="CollisionShape2D5" type="CollisionShape2D" parent="Walls/TopWall"]
  372. position = Vector2(827, 113)
  373. shape = SubResource("RectangleShape2D_ya4ey")
  374. [node name="BottomWall" type="StaticBody2D" parent="Walls"]
  375. [node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/BottomWall"]
  376. position = Vector2(641, 567)
  377. shape = SubResource("RectangleShape2D_eb6dy")
  378. [node name="CollisionShape2D2" type="CollisionShape2D" parent="Walls/BottomWall"]
  379. position = Vector2(26.75, 328)
  380. shape = SubResource("RectangleShape2D_trceg")
  381. [node name="CollisionShape2D3" type="CollisionShape2D" parent="Walls/BottomWall"]
  382. position = Vector2(1260, 332)
  383. shape = SubResource("RectangleShape2D_trceg")
  384. [node name="MiddleWall" type="StaticBody2D" parent="Walls"]
  385. [node name="CollisionShape2D" type="CollisionShape2D" parent="Walls/MiddleWall"]
  386. position = Vector2(428.5, 268.5)
  387. shape = SubResource("RectangleShape2D_a8y0u")
  388. [node name="CollisionShape2D2" type="CollisionShape2D" parent="Walls/MiddleWall"]
  389. position = Vector2(907, 368.5)
  390. shape = SubResource("RectangleShape2D_jkv2x")
  391. [node name="CollisionShape2D3" type="CollisionShape2D" parent="Walls/MiddleWall"]
  392. position = Vector2(1197.5, 369.5)
  393. shape = SubResource("RectangleShape2D_jbj1t")
  394. [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
  395. stream = ExtResource("9_85g3d")
  396. volume_db = -6.679
  397. autoplay = true