blob: 865af3504430f31c6d0e1b8c5c712c76448a5742 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|