forked from moyin/whale-town-front
feat: 增加碰撞和空气墙
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=7 format=4 uid="uid://npn1yjrhdwwx"]
|
||||
[gd_scene load_steps=10 format=4 uid="uid://npn1yjrhdwwx"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bjcij2ncikeyw" path="res://assets/sprites/environment/room_512_384.png" id="1_gnxaf"]
|
||||
[ext_resource type="PackedScene" uid="uid://b2f8e24plwqgj" path="res://scenes/characters/player.tscn" id="2_shs2d"]
|
||||
@@ -671,6 +671,15 @@ sources/0 = SubResource("TileSetAtlasSource_shs2d")
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pywo5"]
|
||||
size = Vector2(68, 36)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_y0jqb"]
|
||||
size = Vector2(15, 307)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2vx7m"]
|
||||
size = Vector2(500.5, 121)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_x8d2w"]
|
||||
size = Vector2(215, 12.5)
|
||||
|
||||
[node name="Room" type="Node2D"]
|
||||
|
||||
[node name="ground" type="TileMapLayer" parent="."]
|
||||
@@ -678,13 +687,37 @@ tile_map_data = PackedByteArray("AADw//L/AAAAAAEAAADw//P/AAAAAAIAAADw//T/AAAAAAM
|
||||
tile_set = SubResource("TileSet_y0jqb")
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("2_shs2d")]
|
||||
position = Vector2(-1, 89)
|
||||
position = Vector2(-2, 95)
|
||||
|
||||
[node name="DoorArea" type="Area2D" parent="."]
|
||||
[node name="RoomDoorArea" type="Area2D" parent="."]
|
||||
script = ExtResource("3_y0jqb")
|
||||
target_scene_name = "square"
|
||||
target_position = Vector2(647, 32)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="DoorArea"]
|
||||
[node name="RoomDoorAreaCollisionShape2D" type="CollisionShape2D" parent="RoomDoorArea"]
|
||||
position = Vector2(2, 127)
|
||||
shape = SubResource("RectangleShape2D_pywo5")
|
||||
|
||||
[node name="RoomBoundaries" type="Node2D" parent="."]
|
||||
|
||||
[node name="RoomWall" type="StaticBody2D" parent="RoomBoundaries"]
|
||||
|
||||
[node name="RoomLeftWall" type="CollisionShape2D" parent="RoomBoundaries/RoomWall"]
|
||||
position = Vector2(-252.5, -68.5)
|
||||
shape = SubResource("RectangleShape2D_y0jqb")
|
||||
|
||||
[node name="RoomRightWall" type="CollisionShape2D" parent="RoomBoundaries/RoomWall"]
|
||||
position = Vector2(251, -68)
|
||||
shape = SubResource("RectangleShape2D_y0jqb")
|
||||
|
||||
[node name="RoomTopWall" type="CollisionShape2D" parent="RoomBoundaries/RoomWall"]
|
||||
position = Vector2(0.75, -160.5)
|
||||
shape = SubResource("RectangleShape2D_2vx7m")
|
||||
|
||||
[node name="RoomDownLeftWall" type="CollisionShape2D" parent="RoomBoundaries/RoomWall"]
|
||||
position = Vector2(-142.5, 91.5)
|
||||
shape = SubResource("RectangleShape2D_x8d2w")
|
||||
|
||||
[node name="RoomDownRightWall" type="CollisionShape2D" parent="RoomBoundaries/RoomWall"]
|
||||
position = Vector2(140, 91.25)
|
||||
shape = SubResource("RectangleShape2D_x8d2w")
|
||||
|
||||
Reference in New Issue
Block a user