42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://umv7m1lf4x6b"]
|
|
|
|
[ext_resource type="Script" uid="uid://b3jims0gq4tg5" path="res://CardInjects/Mine/mine.gd" id="1_mj2xh"]
|
|
[ext_resource type="Texture2D" uid="uid://dmq8shsoq55dx" path="res://assets/icons/Mine_symbol.png" id="2_80s1i"]
|
|
|
|
[sub_resource type="Shader" id="Shader_80s1i"]
|
|
code = "shader_type canvas_item;
|
|
|
|
void vertex() {
|
|
// Called for every vertex the material is visible on.
|
|
}
|
|
|
|
void fragment() {
|
|
COLOR.y = 1.0;
|
|
}
|
|
|
|
//void light() {
|
|
// // Called for every pixel for every light affecting the CanvasItem.
|
|
// // Uncomment to replace the default light processing function with this one.
|
|
//}
|
|
"
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_56tnn"]
|
|
shader = SubResource("Shader_80s1i")
|
|
|
|
[node name="Mine" type="Node2D"]
|
|
script = ExtResource("1_mj2xh")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
material = SubResource("ShaderMaterial_56tnn")
|
|
texture = ExtResource("2_80s1i")
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
one_shot = true
|
|
autostart = true
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|