Bonus Tutorial Finished.
This commit is contained in:
10
ActionRPG-HeartBeast/Camera2D.gd
Normal file
10
ActionRPG-HeartBeast/Camera2D.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends Camera2D
|
||||
|
||||
onready var topLeft = $Limits/TopLeft
|
||||
onready var bottomRight = $Limits/BottomRight
|
||||
|
||||
func _ready():
|
||||
limit_top = topLeft.position.y
|
||||
limit_left = topLeft.position.x
|
||||
limit_bottom = bottomRight.position.y
|
||||
limit_right = bottomRight.position.x
|
||||
Reference in New Issue
Block a user