diff --git a/README.md b/README.md index 5787c54..8f5de6b 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,13 @@ After making changes to sources, you need to recompile: npm run build +## Credits + +* **[Lemaire Michael](https://thunderk.net/)** - Code and graphics +* **Forgo Nicolas** - Ship models +* **[Phaser](http://phaser.io)** - Game engine +* **[Kevin MacLeod](http://www.incompetech.com/)** - Musics + ## Ships ### Level and experience diff --git a/graphics/ships/ship03.blend b/graphics/ships/ship03.blend new file mode 100644 index 0000000..37797bc Binary files /dev/null and b/graphics/ships/ship03.blend differ diff --git a/out/assets/images/ship/tomahawk/portrait.png b/out/assets/images/ship/tomahawk/portrait.png new file mode 100644 index 0000000..4a4ccfb Binary files /dev/null and b/out/assets/images/ship/tomahawk/portrait.png differ diff --git a/out/assets/images/ship/tomahawk/sprite.png b/out/assets/images/ship/tomahawk/sprite.png new file mode 100644 index 0000000..f7c0760 Binary files /dev/null and b/out/assets/images/ship/tomahawk/sprite.png differ diff --git a/src/core/ShipModel.ts b/src/core/ShipModel.ts index 8355076..bf7b190 100644 --- a/src/core/ShipModel.ts +++ b/src/core/ShipModel.ts @@ -31,6 +31,9 @@ module TS.SpaceTac { result.push(new ShipModel("whirlwind", 1, 4, SlotType.Hull, SlotType.Shield, SlotType.Power, SlotType.Engine, SlotType.Weapon, SlotType.Weapon)); + result.push(new ShipModel("tomahawk", 1, 6, SlotType.Hull, SlotType.Shield, SlotType.Power, SlotType.Engine, SlotType.Engine, + SlotType.Weapon)); + return result; } diff --git a/src/ui/Preload.ts b/src/ui/Preload.ts index 5f66dba..0497841 100644 --- a/src/ui/Preload.ts +++ b/src/ui/Preload.ts @@ -113,6 +113,7 @@ module TS.SpaceTac.UI { // Load ships this.loadShip("scout"); this.loadShip("whirlwind"); + this.loadShip("tomahawk"); // Load sounds this.loadSound("battle/ship-change.wav"); diff --git a/src/ui/battle/ArenaShip.ts b/src/ui/battle/ArenaShip.ts index 4ab4253..207b3e0 100644 --- a/src/ui/battle/ArenaShip.ts +++ b/src/ui/battle/ArenaShip.ts @@ -37,6 +37,7 @@ module TS.SpaceTac.UI { this.sprite = new Phaser.Button(this.game, 0, 0, "ship-" + ship.model + "-sprite"); this.sprite.rotation = ship.arena_angle; this.sprite.anchor.set(0.5, 0.5); + this.sprite.scale.set(48 / this.sprite.width); this.addChild(this.sprite); // Add ship sprite