code cleaning
This commit is contained in:
parent
e85d786136
commit
14e7b24e58
|
@ -5,7 +5,6 @@ export(PackedScene) var weapons
|
|||
signal restart
|
||||
|
||||
var speed = 200
|
||||
var last_velocity = Vector2.ZERO
|
||||
var cheat = 0
|
||||
var victory = 0
|
||||
|
||||
|
@ -96,7 +95,6 @@ func _process(delta):
|
|||
|
||||
if velocity.length() > 0:
|
||||
velocity = velocity.normalized() * speed * delta
|
||||
last_velocity = velocity
|
||||
move_and_collide(velocity)
|
||||
|
||||
func light_increase():
|
||||
|
|
|
@ -1,12 +1,5 @@
|
|||
extends RigidBody2D
|
||||
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a = 2
|
||||
# var b = "text"
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
$AnimatedSprite.play()
|
||||
|
||||
|
|
Loading…
Reference in New Issue