1
0
Fork 0

Added tomahawk ship model

This commit is contained in:
Michaël Lemaire 2017-04-15 23:16:55 +02:00
parent 27173f923f
commit b8cf3a5218
7 changed files with 12 additions and 0 deletions

View file

@ -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

BIN
graphics/ships/ship03.blend Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View file

@ -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;
}

View file

@ -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");

View file

@ -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