Add Watcher
This commit is contained in:
parent
6514ce3c54
commit
d1536529e4
9 changed files with 448 additions and 10 deletions
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=18 format=3 uid="uid://dhn7yt46fyac8"]
|
||||
[gd_scene load_steps=19 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"]
|
||||
|
@ -9,6 +9,7 @@
|
|||
[ext_resource type="Shader" path="res://shaders/dithering.gdshader" id="5_64d71"]
|
||||
[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"]
|
||||
|
||||
[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]
|
||||
|
@ -20,7 +21,7 @@ light_mode = 2
|
|||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_m680d"]
|
||||
shader = ExtResource("5_64d71")
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_nebfb"]
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_u0vqj"]
|
||||
viewport_path = NodePath("FlashlightViewport")
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_prnh4"]
|
||||
|
@ -49,9 +50,9 @@ Camera = NodePath("../PlayerCamera")
|
|||
Circle = NodePath("../FlashlightViewport/CanvasGroup/Circle")
|
||||
PlayerCircle = NodePath("../FlashlightViewport/PlayerCircle")
|
||||
Polygon = NodePath("../FlashlightViewport/CanvasGroup/Triangle")
|
||||
CollisionCircle = NodePath("../PlayerCamera/Area2D/Circle")
|
||||
CollisionPlayerCircle = NodePath("../PlayerCamera/Area2D/PlayerCircle")
|
||||
CollisionPolygon = NodePath("../PlayerCamera/Area2D/CollisionPolygon2D")
|
||||
CollisionCircle = NodePath("../PlayerCamera/FlashlightCollision/Circle")
|
||||
CollisionPlayerCircle = NodePath("../PlayerCamera/FlashlightCollision/PlayerCircle")
|
||||
CollisionPolygon = NodePath("../PlayerCamera/FlashlightCollision/CollisionPolygon2D")
|
||||
FlashlightGroup = NodePath("../FlashlightViewport/CanvasGroup")
|
||||
BrightnessCurve = SubResource("Curve_o5byr")
|
||||
CrankSoundPlayer = NodePath("../Sounds/CrankSound")
|
||||
|
@ -73,6 +74,7 @@ position = Vector2(85, 71)
|
|||
texture = ExtResource("2_edqdh")
|
||||
|
||||
[node name="FlashlightViewport" type="SubViewport" parent="."]
|
||||
disable_3d = true
|
||||
transparent_bg = true
|
||||
snap_2d_transforms_to_pixel = true
|
||||
snap_2d_vertices_to_pixel = true
|
||||
|
@ -102,22 +104,23 @@ 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_nebfb")
|
||||
texture = SubResource("ViewportTexture_u0vqj")
|
||||
script = ExtResource("6_slohe")
|
||||
LightViewport = NodePath("../../FlashlightViewport")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="PlayerCamera"]
|
||||
[node name="FlashlightCollision" type="Area2D" parent="PlayerCamera"]
|
||||
position = Vector2(-128, -96)
|
||||
collision_layer = 2
|
||||
collision_mask = 2
|
||||
monitoring = false
|
||||
|
||||
[node name="PlayerCircle" type="CollisionShape2D" parent="PlayerCamera/Area2D"]
|
||||
[node name="PlayerCircle" type="CollisionShape2D" parent="PlayerCamera/FlashlightCollision"]
|
||||
shape = SubResource("CircleShape2D_prnh4")
|
||||
|
||||
[node name="Circle" type="CollisionShape2D" parent="PlayerCamera/Area2D"]
|
||||
[node name="Circle" type="CollisionShape2D" parent="PlayerCamera/FlashlightCollision"]
|
||||
shape = SubResource("CircleShape2D_qcayn")
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="PlayerCamera/Area2D"]
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="PlayerCamera/FlashlightCollision"]
|
||||
polygon = PackedVector2Array(0, 0, 0, 0, 0, 0)
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
@ -146,3 +149,6 @@ y_sort_enabled = true
|
|||
material = SubResource("CanvasItemMaterial_au1d0")
|
||||
position = Vector2(-83, 43)
|
||||
texture = ExtResource("3_8o315")
|
||||
|
||||
[node name="Watcher" parent="." instance=ExtResource("10_fsiss")]
|
||||
position = Vector2(116, -76)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue