Added WIP bouncy platform
This commit is contained in:
6
platforms/bouncy.gd
Normal file
6
platforms/bouncy.gd
Normal file
@@ -0,0 +1,6 @@
|
||||
extends Area2D
|
||||
|
||||
func _on_body_entered(body) -> void:
|
||||
print("collision")
|
||||
if body is BoxBoy:
|
||||
body.apply_bounce()
|
||||
Reference in New Issue
Block a user