Added main menu
This commit is contained in:
parent
ae936275b7
commit
18b2a3491c
7 changed files with 89 additions and 30 deletions
2
Gun.gd
2
Gun.gd
|
@ -3,7 +3,7 @@ extends Marker2D
|
|||
@export var bullet: PackedScene
|
||||
|
||||
func shoot():
|
||||
print("Shooting")
|
||||
#print("Shooting")
|
||||
var node = bullet.instantiate()
|
||||
node.global_position = global_position
|
||||
node.linear_velocity = Vector2(500, 0).rotated(global_rotation)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue