damage calculation (wip)
This commit is contained in:
parent
02ab2a38e9
commit
dc061b2dea
9 changed files with 122 additions and 34 deletions
|
@ -11,9 +11,13 @@ var vangle = 2
|
|||
var weakness = 1
|
||||
var movex = 0
|
||||
var movey = 0
|
||||
var attack = 59
|
||||
var crit = 5
|
||||
|
||||
|
||||
func _ready():
|
||||
if Global.isboss:
|
||||
Global.cboss = ["Kimberly Arch",0,0]
|
||||
var stimer = $Speed
|
||||
stimer.start(0.05)
|
||||
|
||||
|
@ -86,6 +90,8 @@ func shoot(angle):
|
|||
new_bullet.position = Vector2(position.x, position.y)
|
||||
new_bullet.direction = get_vector(angle)
|
||||
new_bullet.btype = "boss"
|
||||
new_bullet.attack = attack
|
||||
new_bullet.crit = crit
|
||||
get_parent().call_deferred("add_child",new_bullet)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue