From d9f7506b9206aa681393ce31af8856ffa7baea3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erkki=20Sepp=C3=A4l=C3=A4?= Date: Mon, 20 Oct 2014 22:00:06 +0300 Subject: [PATCH] machinegun: Replaced 'force' with 'speed' in the GUNS table; also made bigball more fun --- machinegun.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/machinegun.lua b/machinegun.lua index 7be5bff..05d1a00 100644 --- a/machinegun.lua +++ b/machinegun.lua @@ -8,22 +8,22 @@ require 'entities/bigball' GUNS = { chaingun = { interval = 0.01, - force = 150000, projectile = TinyShot, + speed = 50000, damage = 5 }, bigball = { - interval = 1, - force = 1000000, + interval = 0.2, projectile = BigBall, + speed = 5000, damage = 0 }, vickers77 = { interval = 0.1, - force = 300000, projectile = Vickers77, + speed = 50000, damage = 25 } } @@ -61,7 +61,7 @@ MachineGun = Class{ local angle = self.plane.body:getAngle() shot.body:setAngle(angle) - local speeds = rad_dist_to_xy(angle, 50000) + local speeds = rad_dist_to_xy(angle, self.gun['speed']) shot.body:setLinearVelocity(speeds[1], speeds[2]) end;