Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidK0 committed Feb 11, 2019
2 parents 81f4371 + 5e3daa1 commit 8792969
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,9 @@ function shootPlayer(self)
spreadMin = -.5 / BULLET_SPREAD * 15
spreadMax = .5 / BULLET_SPREAD * 15
pVel = 200
self.psystem:setLinearAcceleration(math.cos(self.dir + spreadMin) * pVel, math.sin(self.dir + spreadMin) * pVel, math.cos(self.dir + spreadMax) * pVel, math.sin(self.dir + spreadMax) * pVel)
windSpeedEffect = 400
self.psystem:setLinearAcceleration(math.cos(self.dir + spreadMin) * pVel + PigeonLauncher.windVelocity.x*windSpeedEffect, math.sin(self.dir + spreadMin) * pVel + PigeonLauncher.windVelocity.y*windSpeedEffect, math.cos(self.dir + spreadMax) * pVel + PigeonLauncher.windVelocity.x*windSpeedEffect, math.sin(self.dir + spreadMax) * pVel + PigeonLauncher.windVelocity.y*windSpeedEffect)
self.psystem:setDirection(0)
self.psystem:emit(10)
love.audio.newSource(shotgunSound, "static"):play()
end
Expand Down

0 comments on commit 8792969

Please sign in to comment.