diff options
Diffstat (limited to 'scenes/levels/pixel/bullet.gd')
-rw-r--r-- | scenes/levels/pixel/bullet.gd | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scenes/levels/pixel/bullet.gd b/scenes/levels/pixel/bullet.gd new file mode 100644 index 0000000..865af35 --- /dev/null +++ b/scenes/levels/pixel/bullet.gd @@ -0,0 +1,13 @@ +extends Area2D + +class_name Bullet + +enum {ORDER, CHAOS} +var velocity = 10 +var team = ORDER + +func _process(delta): + if team == ORDER: + position.x += velocity + else: + position.x -= velocity |