mirror of https://github.com/profan/ld-39-jam.git
add particles to smallship engine
This commit is contained in:
parent
c78b49fef6
commit
53432b8552
|
@ -2,7 +2,7 @@ extends KinematicBody2D
|
||||||
|
|
||||||
const km = preload("Kinematic.gd")
|
const km = preload("Kinematic.gd")
|
||||||
|
|
||||||
var grunt_max_speed = 128 # pixels per second
|
var grunt_max_speed = 256 # pixels per second
|
||||||
var grunt_arrive_radius = 64
|
var grunt_arrive_radius = 64
|
||||||
var grunt_arrive_speed = 1
|
var grunt_arrive_speed = 1
|
||||||
var grunt_rot_speed = deg2rad(22.5) # degrees per second
|
var grunt_rot_speed = deg2rad(22.5) # degrees per second
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
[gd_scene load_steps=3 format=1]
|
[gd_scene load_steps=4 format=1]
|
||||||
|
|
||||||
[ext_resource path="res://EnemyGrunt.gd" type="Script" id=1]
|
[ext_resource path="res://EnemyGrunt.gd" type="Script" id=1]
|
||||||
[ext_resource path="res://raw/enemy_grunt.png" type="Texture" id=2]
|
[ext_resource path="res://raw/enemy_grunt.png" type="Texture" id=2]
|
||||||
|
[ext_resource path="res://raw/exhaust.png" type="Texture" id=3]
|
||||||
|
|
||||||
[node name="EnemyGrunt" type="KinematicBody2D"]
|
[node name="EnemyGrunt" type="KinematicBody2D"]
|
||||||
|
|
||||||
|
@ -16,4 +17,30 @@ script/script = ExtResource( 1 )
|
||||||
|
|
||||||
texture = ExtResource( 2 )
|
texture = ExtResource( 2 )
|
||||||
|
|
||||||
|
[node name="Particles2D" type="Particles2D" parent="Sprite"]
|
||||||
|
|
||||||
|
transform/pos = Vector2( 0, -5.43192 )
|
||||||
|
transform/rot = 180.0
|
||||||
|
config/amount = 32
|
||||||
|
config/lifetime = 1.0
|
||||||
|
config/process_mode = 1
|
||||||
|
config/local_space = false
|
||||||
|
config/texture = ExtResource( 3 )
|
||||||
|
params/direction = 0.0
|
||||||
|
params/spread = 50.0
|
||||||
|
params/linear_velocity = 32.0
|
||||||
|
params/spin_velocity = 0.0
|
||||||
|
params/orbit_velocity = 0.0
|
||||||
|
params/gravity_direction = 0.0
|
||||||
|
params/gravity_strength = 9.8
|
||||||
|
params/radial_accel = 0.0
|
||||||
|
params/tangential_accel = 0.0
|
||||||
|
params/damping = 0.0
|
||||||
|
params/initial_angle = 0.0
|
||||||
|
params/initial_size = 1.5
|
||||||
|
params/final_size = 0.0
|
||||||
|
params/hue_variation = 0.0
|
||||||
|
params/anim_speed_scale = 1.0
|
||||||
|
params/anim_initial_pos = 0.0
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -33,12 +33,12 @@ script/script = ExtResource( 3 )
|
||||||
|
|
||||||
transform/pos = Vector2( 0, 13.1031 )
|
transform/pos = Vector2( 0, 13.1031 )
|
||||||
config/amount = 256
|
config/amount = 256
|
||||||
config/lifetime = 2.0
|
config/lifetime = 1.0
|
||||||
config/process_mode = 1
|
config/process_mode = 1
|
||||||
config/local_space = false
|
config/local_space = false
|
||||||
config/texture = ExtResource( 4 )
|
config/texture = ExtResource( 4 )
|
||||||
params/direction = 0.0
|
params/direction = 0.0
|
||||||
params/spread = 24.0
|
params/spread = 80.0
|
||||||
params/linear_velocity = 32.0
|
params/linear_velocity = 32.0
|
||||||
params/spin_velocity = 0.0
|
params/spin_velocity = 0.0
|
||||||
params/orbit_velocity = 0.0
|
params/orbit_velocity = 0.0
|
||||||
|
@ -49,7 +49,7 @@ params/tangential_accel = 0.0
|
||||||
params/damping = 0.0
|
params/damping = 0.0
|
||||||
params/initial_angle = 0.0
|
params/initial_angle = 0.0
|
||||||
params/initial_size = 2.0
|
params/initial_size = 2.0
|
||||||
params/final_size = 1.0
|
params/final_size = 0.0
|
||||||
params/hue_variation = 0.0
|
params/hue_variation = 0.0
|
||||||
params/anim_speed_scale = 1.0
|
params/anim_speed_scale = 1.0
|
||||||
params/anim_initial_pos = 0.0
|
params/anim_initial_pos = 0.0
|
||||||
|
|
Loading…
Reference in New Issue