mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
added springs
This commit is contained in:
parent
62762082f7
commit
e08c2c3ef2
19 changed files with 201 additions and 16 deletions
|
|
@ -1,11 +1,39 @@
|
|||
[gd_scene load_steps=6 format=2]
|
||||
[gd_scene load_steps=8 format=2]
|
||||
|
||||
[ext_resource path="res://Pegs/HitParticles.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Effects/greenParticle.png" type="Texture" id=2]
|
||||
[ext_resource path="res://SFX/greenExplodes.wav" type="AudioStream" id=3]
|
||||
[ext_resource path="res://Pegs/Green/HitSFX.gd" type="Script" id=4]
|
||||
|
||||
[sub_resource type="ParticlesMaterial" id=1]
|
||||
[sub_resource type="VisualShader" id=1]
|
||||
code = "shader_type spatial;
|
||||
render_mode blend_add, specular_schlick_ggx, unshaded;
|
||||
|
||||
|
||||
|
||||
|
||||
void vertex() {
|
||||
// Output:0
|
||||
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
// Output:0
|
||||
|
||||
}
|
||||
|
||||
void light() {
|
||||
// Output:0
|
||||
|
||||
}
|
||||
"
|
||||
modes/blend = 1
|
||||
flags/unshaded = true
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=2]
|
||||
shader = SubResource( 1 )
|
||||
|
||||
[sub_resource type="ParticlesMaterial" id=3]
|
||||
emission_shape = 1
|
||||
emission_sphere_radius = 2.0
|
||||
flag_disable_z = true
|
||||
|
|
@ -21,6 +49,7 @@ damping = 50.0
|
|||
damping_random = 0.5
|
||||
|
||||
[node name="HitParticles" type="Particles2D"]
|
||||
material = SubResource( 2 )
|
||||
scale = Vector2( 1.6, 1.6 )
|
||||
z_index = -10
|
||||
emitting = false
|
||||
|
|
@ -29,7 +58,7 @@ lifetime = 5.0
|
|||
one_shot = true
|
||||
explosiveness = 0.95
|
||||
local_coords = false
|
||||
process_material = SubResource( 1 )
|
||||
process_material = SubResource( 3 )
|
||||
texture = ExtResource( 2 )
|
||||
script = ExtResource( 1 )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue