forked from team-sg/hero-mark-2
BUG WORLD :D
This commit is contained in:
parent
9ff570e869
commit
b0795001c0
11 changed files with 347 additions and 0 deletions
15
menus/sockbug.gd
Normal file
15
menus/sockbug.gd
Normal file
|
@ -0,0 +1,15 @@
|
|||
extends AnimatedSprite
|
||||
|
||||
export var speed = Vector2(100,0)
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _physics_process(delta):
|
||||
position += speed * delta
|
||||
if position.x > 300:
|
||||
position.x = 0
|
||||
if position.x < 0:
|
||||
position.x = 300
|
||||
if position.y > 252:
|
||||
position.y = 0
|
||||
if position.y < 0:
|
||||
position.y = 252
|
Loading…
Add table
Add a link
Reference in a new issue