exercise 86
This commit is contained in:
parent
abb33b4cbe
commit
77c9bf03f5
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ function Player:shoot()
|
||||||
local d = 1.2*self.w
|
local d = 1.2*self.w
|
||||||
local offset_x, offset_y = self.x + d*math.cos(self.r), self.y + d*math.sin(self.r)
|
local offset_x, offset_y = self.x + d*math.cos(self.r), self.y + d*math.sin(self.r)
|
||||||
self.area:addGameObject('ShootEffect', offset_x, offset_y, {player = self, d = d})
|
self.area:addGameObject('ShootEffect', offset_x, offset_y, {player = self, d = d})
|
||||||
self.area:addGameObject('Projectile', offset_x, offset_y, {r = self.r})
|
self.area:addGameObject('Projectile', offset_x, offset_y, {s = 5, v = 150, r = self.r})
|
||||||
end
|
end
|
||||||
|
|
||||||
return Player
|
return Player
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue