Newer
Older
DungeonShooting / DungeonShooting_Godot / scene / Room.tscn
@小李xl 小李xl on 21 Nov 2022 2 KB 敌人跟随玩家样例
[gd_scene load_steps=6 format=2]

[ext_resource path="res://resource/map/dungeon_test.tmx" type="PackedScene" id=2]
[ext_resource path="res://src/game/room/RoomManager.cs" type="Script" id=3]
[ext_resource path="res://src/game/camera/GameCamera.cs" type="Script" id=5]

[sub_resource type="NavigationPolygon" id=2]
vertices = PoolVector2Array( 387, 266, 587, 263, 586, 345, 531, 345, 531, 412, 588, 411, 587, 588, 342, 588, 525, 412, 343, 520, 344, 508, 283, 508, 284, 520, 284, 588, 53, 589, 53, 411, 108, 412, 115, 413, 55, 71, 283, 69, 282, 201, 244, 202, 236, 202, 381, 203, 342, 203, 341, 67, 588, 68, 587, 201, 387, 203, 380, 266, 524, 345, 114, 348, 244, 266, 109, 348, 53, 347, 53, 267, 236, 266, 56, 202, 345, 412, 280, 412 )
polygons = [ PoolIntArray( 0, 1, 2, 3 ), PoolIntArray( 4, 5, 6, 7 ), PoolIntArray( 8, 4, 7, 9, 10 ), PoolIntArray( 11, 12, 13, 14, 15, 16, 17 ), PoolIntArray( 18, 19, 20, 21, 22 ), PoolIntArray( 23, 24, 25, 26, 27 ), PoolIntArray( 23, 27, 28 ), PoolIntArray( 23, 28, 0, 29 ), PoolIntArray( 3, 4, 8, 30 ), PoolIntArray( 0, 3, 30 ), PoolIntArray( 0, 30, 31, 29 ), PoolIntArray( 32, 29, 31 ), PoolIntArray( 31, 33, 34, 35, 36, 32 ), PoolIntArray( 22, 37, 18 ), PoolIntArray( 22, 21, 32, 36 ), PoolIntArray( 10, 38, 8 ), PoolIntArray( 11, 10, 9, 12 ), PoolIntArray( 33, 31, 17, 16 ), PoolIntArray( 11, 17, 39 ) ]
outlines = [ PoolVector2Array( 55, 71, 56, 202, 236, 202, 236, 266, 53, 267, 53, 347, 109, 348, 108, 412, 53, 411, 53, 589, 284, 588, 284, 520, 343, 520, 342, 588, 587, 588, 588, 411, 531, 412, 531, 345, 586, 345, 587, 263, 387, 266, 387, 203, 587, 201, 588, 68, 341, 67, 342, 203, 381, 203, 380, 266, 244, 266, 244, 202, 282, 201, 283, 69 ), PoolVector2Array( 114, 348, 115, 413, 280, 412, 283, 508, 344, 508, 345, 412, 525, 412, 524, 345 ) ]

[sub_resource type="Environment" id=1]
background_mode = 4
glow_enabled = true

[node name="Room" type="Navigation2D"]
script = ExtResource( 3 )

[node name="NavigationPolygonInstance" type="NavigationPolygonInstance" parent="."]
navpoly = SubResource( 2 )

[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 1 )

[node name="MapRoot" type="Node2D" parent="."]
z_index = -10

[node name="dungeon_test" parent="MapRoot" instance=ExtResource( 2 )]

[node name="Camera2D" type="Camera2D" parent="."]
position = Vector2( 253, 219 )
current = true
limit_smoothed = true
editor_draw_drag_margin = true
script = ExtResource( 5 )

[node name="ObjectRoot" type="Node2D" parent="."]

[node name="SortRoot" type="YSort" parent="."]