switch to GLES2 renderer
This commit is contained in:
parent
4da0b33282
commit
26fe0173e4
6 changed files with 90 additions and 149 deletions
|
@ -23,15 +23,6 @@ func _physics_process(delta):
|
|||
if Game.get_sector(global_position + cull_edge) != initial_sector:
|
||||
queue_free()
|
||||
|
||||
func _exit_tree():
|
||||
# make sure particles node sticks around until particles decay
|
||||
var particles = $DustParticles
|
||||
remove_child(particles)
|
||||
particles.global_position = global_position
|
||||
particles.emitting = false
|
||||
get_parent().call_deferred("add_child", particles)
|
||||
get_tree().create_timer(particles.lifetime, false).connect("timeout", particles, "queue_free")
|
||||
|
||||
#Wall Collision
|
||||
func _on_Hitbox_body_entered(body):
|
||||
if body is TileMap or body is StaticBody2D:
|
||||
|
@ -59,6 +50,15 @@ func _on_Hitbox_area_entered(area):
|
|||
_make_sparks()
|
||||
queue_free()
|
||||
|
||||
func _exit_tree():
|
||||
# make sure particles node sticks around until particles decay
|
||||
var particles = $DustParticles
|
||||
remove_child(particles)
|
||||
get_parent().add_child(particles)
|
||||
particles.global_position = global_position
|
||||
particles.emitting = false
|
||||
get_tree().create_timer(particles.lifetime, false).connect("timeout", particles, "queue_free")
|
||||
|
||||
func _make_sparks():
|
||||
var particles = $SparkParticles
|
||||
remove_child(particles)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue