Improved weapon switching

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-14 00:05:32 +01:00
parent 895a997604
commit cdd676233f
8 changed files with 61 additions and 54 deletions

View File

@@ -0,0 +1,12 @@
import 'package:wolf_dart/features/weapon/weapon.dart';
class ChainGun extends Weapon {
ChainGun()
: super(
type: WeaponType.chainGun,
idleSprite: 432,
fireFrames: [433, 434],
damage: 40,
msPerFrame: 30,
);
}

View File

@@ -3,7 +3,7 @@ import 'package:wolf_dart/features/weapon/weapon.dart';
class Knife extends Weapon {
Knife()
: super(
name: "Knife",
type: WeaponType.knife,
idleSprite: 416,
fireFrames: [417, 418, 419, 420],
damage: 15,

View File

@@ -3,9 +3,9 @@ import 'package:wolf_dart/features/weapon/weapon.dart';
class MachineGun extends Weapon {
MachineGun()
: super(
name: "Machine Gun",
idleSprite: 413,
fireFrames: [414, 415],
type: WeaponType.machineGun,
idleSprite: 427,
fireFrames: [428, 429, 430],
damage: 20,
msPerFrame: 80,
);

View File

@@ -3,7 +3,7 @@ import 'package:wolf_dart/features/weapon/weapon.dart';
class Pistol extends Weapon {
Pistol()
: super(
name: "Pistol",
type: WeaponType.pistol,
idleSprite: 421,
fireFrames: [422, 423, 424, 425],
damage: 20,