mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-13 22:12:23 +02:00
Fireparticle added
This commit is contained in:
31
src/Effects/Fire/FireEffect.tscn
Normal file
31
src/Effects/Fire/FireEffect.tscn
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
[gd_scene load_steps=5 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://Effects/Fire/fire-particle.png" type="Texture" id=1]
|
||||||
|
|
||||||
|
[sub_resource type="Gradient" id=1]
|
||||||
|
offsets = PoolRealArray( 0.488889, 1 )
|
||||||
|
colors = PoolColorArray( 1, 1, 1, 1, 0, 0, 0, 0 )
|
||||||
|
|
||||||
|
[sub_resource type="GradientTexture" id=2]
|
||||||
|
gradient = SubResource( 1 )
|
||||||
|
|
||||||
|
[sub_resource type="ParticlesMaterial" id=3]
|
||||||
|
lifetime_randomness = 0.12
|
||||||
|
emission_shape = 1
|
||||||
|
emission_sphere_radius = 3.0
|
||||||
|
flag_disable_z = true
|
||||||
|
gravity = Vector3( 0, -20, 0 )
|
||||||
|
orbit_velocity = 0.0
|
||||||
|
orbit_velocity_random = 0.0
|
||||||
|
radial_accel = 9.2
|
||||||
|
scale = 0.25
|
||||||
|
scale_random = 0.15
|
||||||
|
color_ramp = SubResource( 2 )
|
||||||
|
hue_variation = 0.18
|
||||||
|
|
||||||
|
[node name="FireEffect" type="Particles2D"]
|
||||||
|
amount = 10
|
||||||
|
lifetime = 1.2
|
||||||
|
speed_scale = 1.3
|
||||||
|
process_material = SubResource( 3 )
|
||||||
|
texture = ExtResource( 1 )
|
||||||
@@ -1,8 +1,9 @@
|
|||||||
[gd_scene load_steps=5 format=2]
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://Overlap/HurtHit_Box/Hurtbox.tscn" type="PackedScene" id=1]
|
[ext_resource path="res://Overlap/HurtHit_Box/Hurtbox.tscn" type="PackedScene" id=1]
|
||||||
[ext_resource path="res://testSprites/fackel.png" type="Texture" id=2]
|
[ext_resource path="res://testSprites/fackel.png" type="Texture" id=2]
|
||||||
[ext_resource path="res://Objects/Torch/Torch.gd" type="Script" id=3]
|
[ext_resource path="res://Objects/Torch/Torch.gd" type="Script" id=3]
|
||||||
|
[ext_resource path="res://Effects/Fire/FireEffect.tscn" type="PackedScene" id=4]
|
||||||
|
|
||||||
[sub_resource type="CapsuleShape2D" id=1]
|
[sub_resource type="CapsuleShape2D" id=1]
|
||||||
radius = 8.0
|
radius = 8.0
|
||||||
@@ -11,6 +12,9 @@ height = 12.0
|
|||||||
[node name="Torch" type="StaticBody2D"]
|
[node name="Torch" type="StaticBody2D"]
|
||||||
script = ExtResource( 3 )
|
script = ExtResource( 3 )
|
||||||
|
|
||||||
|
[node name="FireEffect" parent="." instance=ExtResource( 4 )]
|
||||||
|
position = Vector2( 1.88936, -12.4698 )
|
||||||
|
|
||||||
[node name="Sprite" type="Sprite" parent="."]
|
[node name="Sprite" type="Sprite" parent="."]
|
||||||
position = Vector2( 0, -8 )
|
position = Vector2( 0, -8 )
|
||||||
texture = ExtResource( 2 )
|
texture = ExtResource( 2 )
|
||||||
|
|||||||
@@ -121,6 +121,7 @@ position = Vector2( -107.855, 73.4821 )
|
|||||||
[node name="Player" parent="YSort" instance=ExtResource( 1 )]
|
[node name="Player" parent="YSort" instance=ExtResource( 1 )]
|
||||||
position = Vector2( 96, -69.5179 )
|
position = Vector2( 96, -69.5179 )
|
||||||
scale = Vector2( 2, 2 )
|
scale = Vector2( 2, 2 )
|
||||||
|
debug = true
|
||||||
FRICTION = 200
|
FRICTION = 200
|
||||||
|
|
||||||
[node name="Bonfire" parent="YSort" instance=ExtResource( 7 )]
|
[node name="Bonfire" parent="YSort" instance=ExtResource( 7 )]
|
||||||
|
|||||||
Reference in New Issue
Block a user