tube transport! also 3-block jump marginally easier
This commit is contained in:
parent
4d13d2932c
commit
8c60bbf293
6 changed files with 101 additions and 123 deletions
10
objects/environment/tube/tube_entrance.gd
Normal file
10
objects/environment/tube/tube_entrance.gd
Normal file
|
@ -0,0 +1,10 @@
|
|||
extends Area2D
|
||||
|
||||
export var speed = 120.0
|
||||
export var direction = Vector2.RIGHT
|
||||
|
||||
func _on_TubeEntrance_area_entered(area):
|
||||
if area.is_in_group("player"):
|
||||
var player = area.get_parent()
|
||||
player.global_position = global_position + Vector2(4.0, 4.0)
|
||||
player.enter_transport(speed, direction)
|
Loading…
Add table
Add a link
Reference in a new issue