Added tomahawk ship model
This commit is contained in:
parent
27173f923f
commit
b8cf3a5218
|
@ -21,6 +21,13 @@ After making changes to sources, you need to recompile:
|
||||||
|
|
||||||
npm run build
|
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
|
## Ships
|
||||||
|
|
||||||
### Level and experience
|
### Level and experience
|
||||||
|
|
BIN
graphics/ships/ship03.blend
Normal file
BIN
graphics/ships/ship03.blend
Normal file
Binary file not shown.
BIN
out/assets/images/ship/tomahawk/portrait.png
Normal file
BIN
out/assets/images/ship/tomahawk/portrait.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
BIN
out/assets/images/ship/tomahawk/sprite.png
Normal file
BIN
out/assets/images/ship/tomahawk/sprite.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
|
@ -31,6 +31,9 @@ module TS.SpaceTac {
|
||||||
result.push(new ShipModel("whirlwind", 1, 4, SlotType.Hull, SlotType.Shield, SlotType.Power, SlotType.Engine,
|
result.push(new ShipModel("whirlwind", 1, 4, SlotType.Hull, SlotType.Shield, SlotType.Power, SlotType.Engine,
|
||||||
SlotType.Weapon, SlotType.Weapon));
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -113,6 +113,7 @@ module TS.SpaceTac.UI {
|
||||||
// Load ships
|
// Load ships
|
||||||
this.loadShip("scout");
|
this.loadShip("scout");
|
||||||
this.loadShip("whirlwind");
|
this.loadShip("whirlwind");
|
||||||
|
this.loadShip("tomahawk");
|
||||||
|
|
||||||
// Load sounds
|
// Load sounds
|
||||||
this.loadSound("battle/ship-change.wav");
|
this.loadSound("battle/ship-change.wav");
|
||||||
|
|
|
@ -37,6 +37,7 @@ module TS.SpaceTac.UI {
|
||||||
this.sprite = new Phaser.Button(this.game, 0, 0, "ship-" + ship.model + "-sprite");
|
this.sprite = new Phaser.Button(this.game, 0, 0, "ship-" + ship.model + "-sprite");
|
||||||
this.sprite.rotation = ship.arena_angle;
|
this.sprite.rotation = ship.arena_angle;
|
||||||
this.sprite.anchor.set(0.5, 0.5);
|
this.sprite.anchor.set(0.5, 0.5);
|
||||||
|
this.sprite.scale.set(48 / this.sprite.width);
|
||||||
this.addChild(this.sprite);
|
this.addChild(this.sprite);
|
||||||
|
|
||||||
// Add ship sprite
|
// Add ship sprite
|
||||||
|
|
Loading…
Reference in a new issue