mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-19 19:13:47 +00:00
Forcefield Shader
This commit is contained in:
parent
a13355be42
commit
f23d84071a
9 changed files with 210 additions and 14 deletions
|
|
@ -1,7 +1,12 @@
|
|||
[gd_scene load_steps=21 format=3 uid="uid://b0gpbkxdfbnjh"]
|
||||
[gd_scene load_steps=24 format=3 uid="uid://b0gpbkxdfbnjh"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Door.cs" id="1_uxoep"]
|
||||
[ext_resource type="Script" path="res://Scripts/Activables/ForceField.cs" id="1_yxhr6"]
|
||||
[ext_resource type="Texture2D" uid="uid://gc24sjyj47x6" path="res://Sprites/Actors/ForceFieldHorizontal.png" id="2_12wxm"]
|
||||
[ext_resource type="Shader" path="res://Shaders/Blink.gdshader" id="2_q7pky"]
|
||||
[ext_resource type="Shader" uid="uid://cjdl1m3psohju" path="res://Shaders/scanlines_static.tres" id="2_qbobr"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_tnfy3"]
|
||||
shader = ExtResource("2_qbobr")
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gecst"]
|
||||
atlas = ExtResource("2_12wxm")
|
||||
|
|
@ -140,13 +145,16 @@ size = Vector2(32, 32)
|
|||
[node name="HorizontalForceField" type="Area2D" groups=["Solid"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 154
|
||||
script = ExtResource("1_uxoep")
|
||||
script = ExtResource("1_yxhr6")
|
||||
TurnOffShader = ExtResource("2_q7pky")
|
||||
ActiveShader = ExtResource("2_qbobr")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
modulate = Color(1, 1, 1, 0.784314)
|
||||
material = SubResource("ShaderMaterial_tnfy3")
|
||||
sprite_frames = SubResource("SpriteFrames_h2s1d")
|
||||
animation = &"Open"
|
||||
animation = &"Closed"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue