mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-19 08: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
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ autoplay = "default"
|
|||
frame_progress = 0.193815
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
shape = SubResource("RectangleShape2D_0nhpj")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
|
|
@ -56,5 +57,6 @@ collision_mask = 10
|
|||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
visible = false
|
||||
position = Vector2(0.5, -3)
|
||||
shape = SubResource("RectangleShape2D_vguns")
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ sprite_frames = SubResource("SpriteFrames_8ejte")
|
|||
autoplay = "default"
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
shape = SubResource("RectangleShape2D_0nhpj")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
|
|
@ -55,5 +56,6 @@ collision_mask = 10
|
|||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
visible = false
|
||||
position = Vector2(0, -3)
|
||||
shape = SubResource("RectangleShape2D_vguns")
|
||||
|
|
|
|||
|
|
@ -32,5 +32,6 @@ collision_mask = 10
|
|||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
visible = false
|
||||
position = Vector2(1, -4)
|
||||
shape = SubResource("RectangleShape2D_vguns")
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue