Crank sound
This commit is contained in:
parent
51eb5aa15a
commit
384e8560f6
5 changed files with 53 additions and 19 deletions
|
@ -1,6 +1,7 @@
|
|||
[gd_scene load_steps=17 format=3 uid="uid://dhn7yt46fyac8"]
|
||||
[gd_scene load_steps=18 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"]
|
||||
[ext_resource type="Texture2D" uid="uid://py6qiu3rm7cu" path="res://sprites/brickwall.png" id="2_edqdh"]
|
||||
[ext_resource type="Texture2D" uid="uid://dlbl6d4yghvht" path="res://sprites/mask.png" id="3_8o315"]
|
||||
[ext_resource type="Script" path="res://scripts/Flashlight.cs" id="3_cylxo"]
|
||||
|
@ -19,7 +20,7 @@ light_mode = 2
|
|||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_m680d"]
|
||||
shader = ExtResource("5_64d71")
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_0u602"]
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_nebfb"]
|
||||
viewport_path = NodePath("FlashlightViewport")
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_prnh4"]
|
||||
|
@ -36,10 +37,12 @@ light_mode = 2
|
|||
[node name="Root" type="Node2D"]
|
||||
y_sort_enabled = true
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1_65a7v")]
|
||||
position = Vector2(19, 4)
|
||||
[node name="Sounds" type="Node" parent="."]
|
||||
|
||||
[node name="Controller" type="Node" parent="." node_paths=PackedStringArray("Player", "Camera", "Circle", "PlayerCircle", "Polygon", "CollisionCircle", "CollisionPlayerCircle", "CollisionPolygon", "FlashlightGroup")]
|
||||
[node name="CrankSound" type="AudioStreamPlayer" parent="Sounds"]
|
||||
stream = ExtResource("1_cweq4")
|
||||
|
||||
[node name="FlashlightController" type="Node" parent="." node_paths=PackedStringArray("Player", "Camera", "Circle", "PlayerCircle", "Polygon", "CollisionCircle", "CollisionPlayerCircle", "CollisionPolygon", "FlashlightGroup", "CrankSoundPlayer")]
|
||||
script = ExtResource("3_cylxo")
|
||||
Player = NodePath("../Player")
|
||||
Camera = NodePath("../PlayerCamera")
|
||||
|
@ -51,6 +54,10 @@ CollisionPlayerCircle = NodePath("../PlayerCamera/Area2D/PlayerCircle")
|
|||
CollisionPolygon = NodePath("../PlayerCamera/Area2D/CollisionPolygon2D")
|
||||
FlashlightGroup = NodePath("../FlashlightViewport/CanvasGroup")
|
||||
BrightnessCurve = SubResource("Curve_o5byr")
|
||||
CrankSoundPlayer = NodePath("../Sounds/CrankSound")
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("1_65a7v")]
|
||||
position = Vector2(19, 4)
|
||||
|
||||
[node name="TestWall" type="Sprite2D" parent="."]
|
||||
light_mask = 2
|
||||
|
@ -95,7 +102,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_0u602")
|
||||
texture = SubResource("ViewportTexture_nebfb")
|
||||
script = ExtResource("6_slohe")
|
||||
LightViewport = NodePath("../../FlashlightViewport")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue