initial commit
This commit is contained in:
commit
e446938ba7
74 changed files with 3212 additions and 0 deletions
18
WorldBorder.gd
Normal file
18
WorldBorder.gd
Normal file
|
@ -0,0 +1,18 @@
|
|||
extends CollisionShape2D
|
||||
|
||||
enum AXIS {X, Y}
|
||||
|
||||
@export var match_axis = AXIS.X
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
var size = get_viewport().size
|
||||
if match_axis == AXIS.X:
|
||||
self.position.x = size.x
|
||||
elif match_axis == AXIS.Y:
|
||||
self.position.y = size.y
|
Loading…
Add table
Add a link
Reference in a new issue