mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
Navigation obstacles
This commit is contained in:
parent
f962c21e84
commit
a01ed821b7
24 changed files with 170 additions and 94 deletions
|
|
@ -189,3 +189,6 @@ max_distance = 200.0
|
|||
[node name="DeactivationSound" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("5_spifk")
|
||||
max_distance = 200.0
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
vertices = PackedVector2Array(-16, -18, 16, -18, 16, 16, -16, 16)
|
||||
|
|
|
|||
|
|
@ -210,3 +210,8 @@ max_distance = 200.0
|
|||
[node name="DeactivationSound" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("7_0ahfd")
|
||||
max_distance = 200.0
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
radius = 19.84
|
||||
vertices = PackedVector2Array(-16, -17, 16, -17, 16, 17, -16, 17)
|
||||
affect_navigation_mesh = true
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=32 format=4 uid="uid://bx31ou6tw3kd1"]
|
||||
[gd_scene load_steps=33 format=4 uid="uid://bx31ou6tw3kd1"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://doxmbokehw8ci" path="res://Scripts/GameManager.cs" id="1_6sq7s"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4pr2707hbeph" path="res://Scenes/Actors/fsm_player.tscn" id="2_cicvv"]
|
||||
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="3_8anae"]
|
||||
[ext_resource type="Script" uid="uid://mja0rk7n2kln" path="res://Scripts/Resources/MapStartDataResource.cs" id="4_tgwif"]
|
||||
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_vmlpc"]
|
||||
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_sv42c"]
|
||||
|
|
@ -30,7 +31,7 @@
|
|||
[sub_resource type="Resource" id="Resource_53p3c"]
|
||||
script = ExtResource("4_tgwif")
|
||||
EggIndex = 0
|
||||
StartingEquipment = [null]
|
||||
StartingEquipment = Array[ExtResource("3_8anae")]([null])
|
||||
|
||||
[sub_resource type="Resource" id="Resource_2ugqu"]
|
||||
script = ExtResource("11_esmuk")
|
||||
|
|
|
|||
|
|
@ -46,3 +46,7 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -10, 6, -10, 6, 5, -6, 5)
|
||||
|
|
|
|||
|
|
@ -57,3 +57,8 @@ offset_left = -8.0
|
|||
offset_top = -8.0
|
||||
offset_right = 8.0
|
||||
offset_bottom = 8.0
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -58,4 +58,4 @@ shape = SubResource("RectangleShape2D_ss2y0")
|
|||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -9, 6, -9, 6, 2, -6, 2)
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -50,3 +50,8 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -58,4 +58,4 @@ shape = SubResource("RectangleShape2D_ss2y0")
|
|||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -9, 6, -9, 6, 2, -6, 2)
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -50,3 +50,8 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ gravity_scale = 0.0
|
|||
position = Vector2(0, -3)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
[node name="NavigationObstacle2D2" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -9, 6, -9, 6, 2, -6, 2)
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -50,3 +50,8 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -58,4 +58,4 @@ shape = SubResource("RectangleShape2D_ss2y0")
|
|||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -9, 6, -9, 6, 2, -6, 2)
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -50,3 +50,8 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -56,3 +56,8 @@ gravity_scale = 0.0
|
|||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
position = Vector2(0, 1.5)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -15, 6, -15, 6, 0, -6, 0)
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ animations = [{
|
|||
size = Vector2(14, 28)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
|
||||
size = Vector2(12, 24)
|
||||
size = Vector2(12, 16)
|
||||
|
||||
[node name="Broken Vertical Box" type="Area2D" groups=["Destroyable"]]
|
||||
y_sort_enabled = true
|
||||
|
|
@ -52,5 +52,10 @@ collision_mask = 10
|
|||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
position = Vector2(0, -3)
|
||||
position = Vector2(0, 1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -16, 6, -16, 6, 0, -6, 0)
|
||||
|
|
|
|||
|
|
@ -58,4 +58,4 @@ shape = SubResource("RectangleShape2D_ss2y0")
|
|||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -9, 6, -9, 6, 2, -6, 2)
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -50,3 +50,8 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -58,4 +58,4 @@ shape = SubResource("RectangleShape2D_ss2y0")
|
|||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -9, 6, -9, 6, 2, -6, 2)
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -50,3 +50,8 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -47,3 +47,7 @@ gravity_scale = 0.0
|
|||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=143 format=4 uid="uid://bv451a8wgty4u"]
|
||||
[gd_scene load_steps=142 format=4 uid="uid://bv451a8wgty4u"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://doxmbokehw8ci" path="res://Scripts/GameManager.cs" id="1_8tmoj"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4pr2707hbeph" path="res://Scenes/Actors/fsm_player.tscn" id="2_ksslq"]
|
||||
|
|
@ -104,7 +104,6 @@
|
|||
[ext_resource type="Resource" uid="uid://bj331rcsq65es" path="res://Resources/Bullets/EmitterTestBullet.tres" id="95_f37sa"]
|
||||
[ext_resource type="Resource" uid="uid://dodwpect0ldjf" path="res://Resources/Items/Heart_Pickup.tres" id="95_srv0g"]
|
||||
[ext_resource type="PackedScene" uid="uid://nupd3pg74vua" path="res://Scenes/Activable/ScriptableInvisibleEmitter.tscn" id="96_ygp23"]
|
||||
[ext_resource type="Script" uid="uid://b5s5mjuk1rng5" path="res://Scripts/Resources/TimeModifier.cs" id="97_0bqta"]
|
||||
[ext_resource type="Script" uid="uid://c0ndqalsc4jve" path="res://Scripts/AttackPatterns/SpiralPattern.cs" id="98_gvbi8"]
|
||||
[ext_resource type="Script" uid="uid://bngko08ho85p6" path="res://Scripts/Resources/BulletScript.cs" id="99_j6vrf"]
|
||||
[ext_resource type="PackedScene" uid="uid://1yxieu8ekvkm" path="res://Scenes/Items/Heart_Extend_Pickup.tscn" id="99_xwjvv"]
|
||||
|
|
@ -270,7 +269,7 @@ DamageType = 0
|
|||
OverrideControllable = false
|
||||
Controllable = false
|
||||
OverrideCreationModifier = false
|
||||
TimeModifiers = Array[ExtResource("97_0bqta")]([])
|
||||
TimeModifiers = []
|
||||
WaitForCompletion = true
|
||||
metadata/_custom_type_script = "uid://c0ndqalsc4jve"
|
||||
|
||||
|
|
@ -1081,7 +1080,7 @@ position = Vector2(-2000, -736)
|
|||
[node name="ControlPad8" parent="Parallax2D/Factory Tilemaps/LevelProps" node_paths=PackedStringArray("Targets") instance=ExtResource("12_hfkf1")]
|
||||
position = Vector2(-2027, -735)
|
||||
Targets = [NodePath("../HorizontalForceField")]
|
||||
Requirements = Array[ExtResource("6_8tdlb")]([ExtResource("84_ma1ta")])
|
||||
Requirements = [ExtResource("84_ma1ta")]
|
||||
|
||||
[node name="Ammo6" parent="Parallax2D/Factory Tilemaps/LevelProps" instance=ExtResource("34_17pjh")]
|
||||
position = Vector2(-872, -220)
|
||||
|
|
|
|||
6
Scripts/Misc/NavigationMap.cs
Normal file
6
Scripts/Misc/NavigationMap.cs
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class NavigationMap : NavigationRegion2D
|
||||
{
|
||||
}
|
||||
1
Scripts/Misc/NavigationMap.cs.uid
Normal file
1
Scripts/Misc/NavigationMap.cs.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://dk0572j6bj7p3
|
||||
Loading…
Add table
Add a link
Reference in a new issue