Updated ship sprites and portraits

This commit is contained in:
Michaël Lemaire 2018-01-28 21:19:28 +01:00
rodič da5b40f30e
revize adb3656d29
49 změnil soubory, kde provedl 47 přidání a 42 odebrání

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 1.5 KiB

Za

Šířka:  |  Výška:  |  Velikost: 1.8 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 58 KiB

Za

Šířka:  |  Výška:  |  Velikost: 89 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 32 KiB

Za

Šířka:  |  Výška:  |  Velikost: 8.1 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 33 KiB

Za

Šířka:  |  Výška:  |  Velikost: 77 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 19 KiB

Za

Šířka:  |  Výška:  |  Velikost: 5.3 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 48 KiB

Za

Šířka:  |  Výška:  |  Velikost: 78 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 20 KiB

Za

Šířka:  |  Výška:  |  Velikost: 5.3 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 35 KiB

Za

Šířka:  |  Výška:  |  Velikost: 77 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 21 KiB

Za

Šířka:  |  Výška:  |  Velikost: 5.0 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 60 KiB

Za

Šířka:  |  Výška:  |  Velikost: 85 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 29 KiB

Za

Šířka:  |  Výška:  |  Velikost: 6.8 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 48 KiB

Za

Šířka:  |  Výška:  |  Velikost: 78 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 15 KiB

Za

Šířka:  |  Výška:  |  Velikost: 5.1 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 37 KiB

Za

Šířka:  |  Výška:  |  Velikost: 73 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 16 KiB

Za

Šířka:  |  Výška:  |  Velikost: 3.8 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 60 KiB

Za

Šířka:  |  Výška:  |  Velikost: 83 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 28 KiB

Za

Šířka:  |  Výška:  |  Velikost: 8.2 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 14 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 12 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 48 KiB

Za

Šířka:  |  Výška:  |  Velikost: 85 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 24 KiB

Za

Šířka:  |  Výška:  |  Velikost: 6.8 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 48 KiB

Za

Šířka:  |  Výška:  |  Velikost: 82 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 30 KiB

Za

Šířka:  |  Výška:  |  Velikost: 6.9 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 31 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 22 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 41 KiB

Za

Šířka:  |  Výška:  |  Velikost: 80 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 28 KiB

Za

Šířka:  |  Výška:  |  Velikost: 7.0 KiB

binární
graphics/ships/_base.blend Normal file

Binární soubor nebyl zobrazen.

Binární soubor nebyl zobrazen.

Binární soubor nebyl zobrazen.

Binární soubor nebyl zobrazen.

Binární soubor nebyl zobrazen.

Binární soubor nebyl zobrazen.

Binární soubor nebyl zobrazen.

Binární soubor nebyl zobrazen.

Binární soubor nebyl zobrazen.

Binární soubor nebyl zobrazen.

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 36 KiB

Za

Šířka:  |  Výška:  |  Velikost: 987 KiB

Binární soubor nebyl zobrazen.

Před

Šířka:  |  Výška:  |  Velikost: 36 KiB

Binární soubor nebyl zobrazen.

Binární soubor nebyl zobrazen.

Binární soubor nebyl zobrazen.

Binární soubor nebyl zobrazen.

Zobrazit soubor

@ -16,7 +16,7 @@
viewBox="0 0 1920 1080"
id="svg2"
version="1.1"
inkscape:version="0.92.1 r15371"
inkscape:version="0.92.2 (unknown)"
sodipodi:docname="battle.svg"
inkscape:export-filename="/home/michael/workspace/perso/spacetac/graphics/exported/battle/actionbar/power-generated.png"
inkscape:export-xdpi="96"
@ -2840,15 +2840,6 @@
stdDeviation="7.1538857"
id="feGaussianBlur11151" />
</filter>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient8959"
id="linearGradient13215"
gradientUnits="userSpaceOnUse"
x1="36.955868"
y1="123.97214"
x2="111.73327"
y2="123.97214" />
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath9909-36">
@ -3200,6 +3191,15 @@
x2="1006.6031"
y2="471.59311"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient8959"
id="linearGradient5638"
gradientUnits="userSpaceOnUse"
x1="36.955868"
y1="123.97214"
x2="111.73327"
y2="123.97214" />
</defs>
<sodipodi:namedview
id="base"
@ -3208,11 +3208,11 @@
borderopacity="1"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="11.313709"
inkscape:cx="988.11576"
inkscape:cy="682.52933"
inkscape:zoom="1.4142136"
inkscape:cx="1317.1113"
inkscape:cy="451.49885"
inkscape:document-units="px"
inkscape:current-layer="layer38"
inkscape:current-layer="g7473"
showgrid="false"
units="px"
showguides="true"
@ -3234,7 +3234,12 @@
inkscape:snap-bbox-edge-midpoints="true"
inkscape:measure-start="1539.72,611.294"
inkscape:measure-end="1539.72,559.321"
inkscape:snap-page="true" />
inkscape:snap-page="true"
inkscape:window-width="1920"
inkscape:window-height="1037"
inkscape:window-x="0"
inkscape:window-y="20"
inkscape:window-maximized="0" />
<metadata
id="metadata7">
<rdf:RDF>
@ -7113,13 +7118,13 @@
<rect
y="475.17401"
x="444.81439"
height="373.82666"
width="464.99561"
height="412.01041"
width="529.34235"
id="rect5853"
style="display:inline;opacity:0.90100002;fill:#202225;fill-opacity:1;fill-rule:evenodd;stroke:#404450;stroke-width:1.27644944px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;enable-background:new" />
<g
id="g5609"
transform="translate(0,18)">
transform="translate(0,60)">
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:25.00000191px;line-height:23.4375px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;display:inline;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.9375px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;enable-background:new"
@ -7167,7 +7172,7 @@
</g>
<g
id="g5617"
transform="translate(0,18)">
transform="translate(0,50)">
<text
id="text5913"
y="769.30066"
@ -7204,7 +7209,7 @@
</g>
<g
id="g5644"
transform="translate(18)">
transform="translate(82)">
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:25.00000191px;line-height:23.4375px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;display:inline;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.9375px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;enable-background:new"
@ -7228,7 +7233,8 @@
id="tspan6136"
sodipodi:role="line">Plays in 2 turns</tspan></text>
<g
id="g13275">
id="g13275"
transform="translate(0,22)">
<path
sodipodi:nodetypes="ssszsss"
inkscape:connector-curvature="0"
@ -7307,7 +7313,7 @@
transform="matrix(0.98383539,0,0,2.7772838,1.1926759,-220.33366)"
style="filter:url(#filter8947)">
<path
style="fill:url(#linearGradient13215);fill-opacity:1;fill-rule:evenodd;stroke:#433927;stroke-width:2.27530265;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
style="fill:url(#linearGradient5638);fill-opacity:1;fill-rule:evenodd;stroke:#433927;stroke-width:2.27530265;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 108.84322,123.97214 c -23.583215,10.09935 -47.166431,20.1987 -70.749646,30.29805 0,-20.1987 0,-40.3974 0,-60.5961 23.583215,10.09935 47.166431,20.1987 70.749646,30.29805 z"
id="path8668"
inkscape:connector-curvature="0" />
@ -7337,7 +7343,7 @@
</g>
<g
id="g13299"
transform="translate(3.125)">
transform="translate(3.125,22)">
<use
transform="translate(56.354733)"
height="100%"
@ -7494,7 +7500,7 @@
</g>
<g
id="g13367"
transform="translate(9.375)">
transform="translate(9.375,22)">
<use
transform="translate(169.06408)"
height="100%"
@ -7615,7 +7621,7 @@
</g>
<g
id="g13385"
transform="translate(12.499999)">
transform="translate(12.499999,22)">
<use
transform="translate(225.41881)"
height="100%"
@ -7737,7 +7743,7 @@
</g>
<g
id="g13350"
transform="translate(6.25)">
transform="translate(6.25,22)">
<use
transform="translate(112.70934)"
height="100%"
@ -7787,11 +7793,11 @@
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
inkscape:export-filename="/home/michael/workspace/perso/spacetac/graphics/exported/battle/tooltip/ship-portrait.png"
inkscape:export-filename="/home/michael/workspace/spacetac/graphics/exported/battle/tooltip/ship-portrait.png"
y="492.55179"
x="460.07184"
height="133.44534"
width="133.44542"
height="193.97655"
width="193.97672"
id="rect4260-1"
style="display:inline;opacity:1;fill:#43535c;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:3.5999999;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;filter:url(#filter6021-5);enable-background:new" />
</g>

Před

Šířka:  |  Výška:  |  Velikost: 372 KiB

Za

Šířka:  |  Výška:  |  Velikost: 372 KiB

Zobrazit soubor

@ -31,10 +31,8 @@ module TK.SpaceTac {
// TODO Store in cache
var result: ShipModel[] = [];
result.push(new ShipModel("scout", "Scout"));
result.push(new ShipModel("breeze", "Breeze"));
result.push(new ShipModel("creeper", "Creeper"));
result.push(new ShipModel("whirlwind", "Whirlwind"));
result.push(new ShipModel("tomahawk", "Tomahawk"));
result.push(new ShipModel("avenger", "Avenger"));
result.push(new ShipModel("commodore", "Commodore"));

Zobrazit soubor

@ -62,7 +62,6 @@ module TK.SpaceTac.UI {
this.sprite = this.battleview.newImage(`ship-${ship.model.code}-sprite`);
this.sprite.rotation = ship.arena_angle;
this.sprite.anchor.set(0.5, 0.5);
this.sprite.scale.set(0.4);
this.add(this.sprite);
// Add stasis effect

Zobrazit soubor

@ -28,7 +28,7 @@ module TK.SpaceTac.UI {
fleet1.ships.forEach((ship, index) => {
let ship_card = view.game.add.image(-100 + index * 96, -26, "battle-splash-shipcard", 0);
ship_card.anchor.set(0.5);
let ship_portrait = view.newImage(`ship-${ship.model.code}-portrait`);
let ship_portrait = view.newImage(`ship-${ship.model.code}-portrait`, -2, 2);
ship_portrait.scale.set(0.3);
ship_portrait.anchor.set(0.5);
ship_card.addChild(ship_portrait);
@ -49,7 +49,7 @@ module TK.SpaceTac.UI {
fleet2.ships.forEach((ship, index) => {
let ship_card = view.game.add.image(-104 + index * 96, -32, "battle-splash-shipcard", 1);
ship_card.anchor.set(0.5);
let ship_portrait = view.newImage(`ship-${ship.model.code}-portrait`);
let ship_portrait = view.newImage(`ship-${ship.model.code}-portrait`, -2, -12);
ship_portrait.scale.set(0.3);
ship_portrait.anchor.set(0.5);
ship_card.angle = 180;

Zobrazit soubor

@ -34,8 +34,10 @@ module TK.SpaceTac.UI {
this.player_indicator.angle = 90;
this.addChild(this.player_indicator);
this.portrait = this.view.newImage(`ship-${ship.model.code}-portrait`, 18, 9);
this.portrait.scale.set(0.332, 0.332);
this.portrait = this.view.newImage(`ship-${ship.model.code}-sprite`, 62, 52);
this.portrait.anchor.set(0.5, 0.5);
this.portrait.scale.set(0.8, 0.8);
this.portrait.angle = 180;
this.addChild(this.portrait);
this.damage_indicator = new Phaser.Image(this.game, 18, 9, "battle-shiplist-damage", 0);

Zobrazit soubor

@ -23,19 +23,19 @@ module TK.SpaceTac.UI {
builder.configure(10, 6, this.battleview.arena.getBoundaries());
let portrait_bg = builder.image("battle-tooltip-ship-portrait");
let portrait_bg = builder.image("battle-tooltip-ship-portrait", -18, -18);
builder.in(portrait_bg, builder => {
let portrait = builder.image(`ship-${ship.model.code}-portrait`, portrait_bg.width / 2, portrait_bg.height / 2);
portrait.anchor.set(0.5);
portrait.scale.set(0.5);
portrait.scale.set(0.75);
});
let enemy = !this.battleview.player.is(ship.fleet.player);
builder.text(ship.getName(), 168, 0, { color: enemy ? "#cc0d00" : "#ffffff", size: 22, bold: true });
builder.text(ship.getName(), 230, 0, { color: enemy ? "#cc0d00" : "#ffffff", size: 22, bold: true });
if (ship.alive) {
let turns = this.battleview.battle.getPlayOrder(ship);
builder.text((turns == 0) ? "Playing" : ((turns == 1) ? "Plays next" : `Plays in ${turns} turns`), 168, 36, { color: "#cccccc", size: 18 });
builder.text((turns == 0) ? "Playing" : ((turns == 1) ? "Plays next" : `Plays in ${turns} turns`), 230, 36, { color: "#cccccc", size: 18 });
ShipTooltip.addValue(builder, 0, "#aa6f33", "character-attribute-precision", ship.getAttribute("precision"));
ShipTooltip.addValue(builder, 1, "#c1f06b", "character-attribute-maneuvrability", ship.getAttribute("maneuvrability"));
@ -43,7 +43,7 @@ module TK.SpaceTac.UI {
ShipTooltip.addValue(builder, 3, "#eb4e4a", "character-value-hull", ship.getValue("hull"), ship.getAttribute("hull_capacity"));
ShipTooltip.addValue(builder, 4, "#2ad8dc", "character-value-shield", ship.getValue("shield"), ship.getAttribute("shield_capacity"));
let iy = 170;
let iy = 210;
let effects = ship.active_effects.list();
if (effects.length > 0) {
builder.text("Active effects", 0, iy, { color: "#ffffff", size: 18, bold: true });
@ -76,7 +76,7 @@ module TK.SpaceTac.UI {
}
private static addValue(builder: UIBuilder, idx: number, color: string, icon: string, val: number, max?: number) {
let bg = builder.image("battle-tooltip-ship-value", 190 + idx * 72, 110, true);
let bg = builder.image("battle-tooltip-ship-value", 252 + idx * 68, 116, true);
builder.in(bg).styled({ color: color, size: 18, center: true, vcenter: true, bold: true }, builder => {
builder.image(icon, 0, -14, true);