mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
8 lines
185 B
GDScript3
8 lines
185 B
GDScript3
|
extends Area2D
|
||
|
|
||
|
export var _bounce_direction = 1
|
||
|
|
||
|
func _on_area_entered(area):
|
||
|
if area.name == "Ball":
|
||
|
area.direction = (area.direction + Vector2(0, _bounce_direction)).normalized()
|