diff --git a/entity/playerbullet.lua b/entity/playerbullet.lua index 1b73715..cd36c14 100755 --- a/entity/playerbullet.lua +++ b/entity/playerbullet.lua @@ -7,6 +7,7 @@ require 'drawable.drawable' PlayerBullet = class('entity.PlayerBullet', Bullet) PlayerBullet.static.sprite = newSprite("assets/blue-bullet.png") +PlayerBullet.static.speed = Bullet.static.speed * 3 function PlayerBullet:initialize(id, x, y, collider, dir) Bullet.initialize(self, id, x, y, self.class.sprite, collider, dir) diff --git a/manager/game.lua b/manager/game.lua index 184e257..24eee6e 100755 --- a/manager/game.lua +++ b/manager/game.lua @@ -226,7 +226,7 @@ function Game:keypressed(key, unicode) self.movingRight = true elseif constants.controls.shoot[key] and self.fireCooldown <= 0 then self.eventLog:insert(PlayerBulletEvent:new(self.playerId, self.state[self.playerId].orientation), self.time) - self.fireCooldown = 5 / constants.speed + self.fireCooldown = 2 / constants.speed -- 2 is the magic number, trust in the 2 end end end