Реализация живого доспеха
This commit is contained in:
parent
64e6187aab
commit
aca884b891
5 changed files with 354 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=19 format=3 uid="uid://dhn7yt46fyac8"]
|
||||
[gd_scene load_steps=20 format=3 uid="uid://dhn7yt46fyac8"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bhulqhxesd5gc" path="res://prefabs/player.tscn" id="1_65a7v"]
|
||||
[ext_resource type="AudioStream" uid="uid://bsy2d0bl3lgg0" path="res://sounds/crank.ogg" id="1_cweq4"]
|
||||
|
@ -10,6 +10,7 @@
|
|||
[ext_resource type="Script" path="res://scripts/GameCamera.cs" id="6_quua3"]
|
||||
[ext_resource type="Script" path="res://scripts/PointLight2DWorkaround.cs" id="6_slohe"]
|
||||
[ext_resource type="PackedScene" uid="uid://ccg3n7sobsvdw" path="res://prefabs/enemies/watcher.tscn" id="10_fsiss"]
|
||||
[ext_resource type="PackedScene" uid="uid://bpusphyhhg074" path="res://prefabs/enemies/living_armor.tscn" id="11_x3ep3"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_o5byr"]
|
||||
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.0824742, 0.273684), -10.2105, 0.0, 0, 0, Vector2(0.242268, 0.494737), -5.10526, 0.0, 0, 0, Vector2(0.396907, 0.736842), -7.6579, 0.0, 0, 0, Vector2(0.737113, 1), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
||||
|
@ -21,7 +22,7 @@ light_mode = 2
|
|||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_m680d"]
|
||||
shader = ExtResource("5_64d71")
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_u0vqj"]
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_0ld5q"]
|
||||
viewport_path = NodePath("FlashlightViewport")
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_prnh4"]
|
||||
|
@ -104,7 +105,7 @@ CameraBounds = Vector2(30, 20)
|
|||
[node name="PointLight2D" type="PointLight2D" parent="PlayerCamera" node_paths=PackedStringArray("LightViewport")]
|
||||
blend_mode = 2
|
||||
range_item_cull_mask = 2
|
||||
texture = SubResource("ViewportTexture_u0vqj")
|
||||
texture = SubResource("ViewportTexture_0ld5q")
|
||||
script = ExtResource("6_slohe")
|
||||
LightViewport = NodePath("../../FlashlightViewport")
|
||||
|
||||
|
@ -152,3 +153,18 @@ texture = ExtResource("3_8o315")
|
|||
|
||||
[node name="Watcher" parent="." instance=ExtResource("10_fsiss")]
|
||||
position = Vector2(116, -76)
|
||||
|
||||
[node name="LivingArmor" parent="." instance=ExtResource("11_x3ep3")]
|
||||
position = Vector2(-70, -67)
|
||||
|
||||
[node name="LivingArmor2" parent="." instance=ExtResource("11_x3ep3")]
|
||||
position = Vector2(-86, -51)
|
||||
Facing = 2
|
||||
|
||||
[node name="LivingArmor3" parent="." instance=ExtResource("11_x3ep3")]
|
||||
position = Vector2(-54, -50)
|
||||
Facing = 0
|
||||
|
||||
[node name="LivingArmor4" parent="." instance=ExtResource("11_x3ep3")]
|
||||
position = Vector2(-70, -36)
|
||||
Facing = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue