|
@@ -1,45 +1,15 @@
|
|
|
-[gd_scene load_steps=6 format=2]
|
|
|
+[gd_scene load_steps=3 format=2]
|
|
|
|
|
|
-[ext_resource path="res://icon.png" type="Texture" id=1]
|
|
|
-
|
|
|
-[sub_resource type="Shader" id=4]
|
|
|
-code = "// NOTE: Shader automatically converted from Godot Engine 3.4.4.stable's CanvasItemMaterial.
|
|
|
-
|
|
|
-shader_type canvas_item;
|
|
|
-render_mode blend_mix;
|
|
|
-
|
|
|
-uniform float pixmod = 1.0;
|
|
|
-
|
|
|
-float circle(vec2 position, float radius, float feather)
|
|
|
-{
|
|
|
- return smoothstep(radius, radius + feather, length(position - vec2(0.5)));
|
|
|
-}
|
|
|
-
|
|
|
-void fragment(){
|
|
|
- float pixelsize = SCREEN_PIXEL_SIZE.x * pixmod;
|
|
|
- vec4 COLbuff = COLOR;
|
|
|
- COLOR = ( ( 1.0-vec4( circle(UV, 0.2, pixelsize) ) ) - ( 1.0-vec4( circle(UV, 0.2-pixelsize, pixelsize) ) ) ) * COLbuff;
|
|
|
-}"
|
|
|
-
|
|
|
-[sub_resource type="ShaderMaterial" id=5]
|
|
|
-shader = SubResource( 4 )
|
|
|
-shader_param/pixmod = 8.0
|
|
|
-
|
|
|
-[sub_resource type="Curve" id=6]
|
|
|
-_data = [ Vector2( 0, 1 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
|
|
|
+[ext_resource path="res://sprite/footsteps.png" type="Texture" id=1]
|
|
|
|
|
|
[sub_resource type="Gradient" id=7]
|
|
|
-offsets = PoolRealArray( 0.0730769, 0.457692, 0.980769 )
|
|
|
-colors = PoolColorArray( 0.897509, 1, 0.841463, 0.158537, 0.386719, 1, 0.396301, 1, 1, 1, 1, 0 )
|
|
|
+offsets = PoolRealArray( 0, 0.980769 )
|
|
|
+colors = PoolColorArray( 0.183526, 0.128054, 0.23584, 0.596078, 0.191886, 0.121403, 0.231934, 0 )
|
|
|
|
|
|
[node name="particles" type="CPUParticles2D"]
|
|
|
-material = SubResource( 5 )
|
|
|
z_index = -3
|
|
|
-amount = 16
|
|
|
-lifetime = 1.5
|
|
|
+lifetime = 2.0
|
|
|
local_coords = false
|
|
|
texture = ExtResource( 1 )
|
|
|
gravity = Vector2( 0, 0 )
|
|
|
-scale_amount = 2.0
|
|
|
-scale_amount_curve = SubResource( 6 )
|
|
|
color_ramp = SubResource( 7 )
|