mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 09:55:35 +00:00
Mapping and turret
This commit is contained in:
parent
69dc1e1ddd
commit
f751135597
6 changed files with 68 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Godot.NET.Sdk/4.4.1">
|
||||
<Project Sdk="Godot.NET.Sdk/4.4.0">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<EnableDynamicLoading>true</EnableDynamicLoading>
|
||||
|
|
|
|||
32
Resources/Enemies/Wall_Turret.tres
Normal file
32
Resources/Enemies/Wall_Turret.tres
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
[gd_resource type="Resource" script_class="EnemyResource" load_steps=6 format=3 uid="uid://ddx2b6ymqu3eo"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b58oxkofm64o7" path="res://ExternalMaterial/WallTurret/WallTurret_Small.png" id="1_1l6xq"]
|
||||
[ext_resource type="Script" uid="uid://cq65aed620ijo" path="res://Scripts/Resources/Loot/LootDrop.cs" id="2_mc6lv"]
|
||||
[ext_resource type="Resource" uid="uid://cdfmedtgp2rcn" path="res://Resources/Weapons/EnemyWeapon.tres" id="8_ylifv"]
|
||||
[ext_resource type="Script" uid="uid://cd5o0ceb50jki" path="res://Scripts/Resources/EnemyResource.cs" id="9_awem6"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mc6lv"]
|
||||
atlas = ExtResource("1_1l6xq")
|
||||
region = Rect2(48, 0, 16, 16)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("9_awem6")
|
||||
EnemyName = &"Wall Turret"
|
||||
EnemyKey = &"WALL_TURRET"
|
||||
PrefabPath = &"uid://8ab7omgqeodu"
|
||||
MaxHealth = 4.0
|
||||
MovementSpeed = 0.0
|
||||
Weapon = ExtResource("8_ylifv")
|
||||
LootDrops = Array[ExtResource("2_mc6lv")]([])
|
||||
MotivationReward = 4.0
|
||||
PredictPlayer = false
|
||||
PlayerDetectionRange = 90.0
|
||||
ViewRange = 120.0
|
||||
AlarmReactRange = 150.0
|
||||
PlayerDisengageRange = 200.0
|
||||
StrafeSpeed = 0.0
|
||||
MaxStrafeDistance = 0.0
|
||||
MinStrafeDistance = 0.0
|
||||
ResponseTime = 0.5
|
||||
IconSprite = SubResource("AtlasTexture_mc6lv")
|
||||
metadata/_custom_type_script = "uid://cd5o0ceb50jki"
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=44 format=3 uid="uid://8ab7omgqeodu"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bi2edpdosngll" path="res://Scripts/Components/FSM/Enemy/EnemyFSMProxy.cs" id="1_q7y0e"]
|
||||
[ext_resource type="Resource" uid="uid://cocl3qontm3be" path="res://Resources/Enemies/Base_Fairy.tres" id="2_eymbs"]
|
||||
[ext_resource type="Resource" uid="uid://ddx2b6ymqu3eo" path="res://Resources/Enemies/Wall_Turret.tres" id="2_q7y0e"]
|
||||
[ext_resource type="Script" uid="uid://dn6dbog1s2818" path="res://Scripts/Components/FSM/Enemy/EnemyStateMachine.cs" id="3_x4aey"]
|
||||
[ext_resource type="Script" uid="uid://rrelumir3g6n" path="res://Scripts/Components/FSM/Enemy/Init.cs" id="4_kkydi"]
|
||||
[ext_resource type="Script" uid="uid://bjrh5q24nuoec" path="res://Scripts/Components/FSM/Enemy/Idle.cs" id="5_mjnu8"]
|
||||
|
|
@ -137,7 +137,7 @@ collision_layer = 16
|
|||
collision_mask = 33
|
||||
script = ExtResource("1_q7y0e")
|
||||
EnemyFSM = NodePath("StateMachine")
|
||||
EnemyResource = ExtResource("2_eymbs")
|
||||
EnemyResource = ExtResource("2_q7y0e")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_pnkma")
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ process_mode = 1
|
|||
y_sort_enabled = true
|
||||
script = ExtResource("4_jtlua")
|
||||
MapThemes = Array[Object]([ExtResource("25_7gtqx")])
|
||||
ManualSeed = "3284405524142660119"
|
||||
|
||||
[node name="CameraController" parent="." instance=ExtResource("6_gwtv6")]
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue