Browse Source

Updated ship sprites and portraits

Michaël Lemaire 2 years ago
parent
commit
adb3656d29
49 changed files with 47 additions and 42 deletions
  1. BIN
      graphics/exported/battle/tooltip/ship-portrait.png
  2. BIN
      graphics/exported/ship/avenger/portrait.png
  3. BIN
      graphics/exported/ship/avenger/sprite.png
  4. BIN
      graphics/exported/ship/breeze/portrait.png
  5. BIN
      graphics/exported/ship/breeze/sprite.png
  6. BIN
      graphics/exported/ship/commodore/portrait.png
  7. BIN
      graphics/exported/ship/commodore/sprite.png
  8. BIN
      graphics/exported/ship/creeper/portrait.png
  9. BIN
      graphics/exported/ship/creeper/sprite.png
  10. BIN
      graphics/exported/ship/falcon/portrait.png
  11. BIN
      graphics/exported/ship/falcon/sprite.png
  12. BIN
      graphics/exported/ship/flea/portrait.png
  13. BIN
      graphics/exported/ship/flea/sprite.png
  14. BIN
      graphics/exported/ship/jumper/portrait.png
  15. BIN
      graphics/exported/ship/jumper/sprite.png
  16. BIN
      graphics/exported/ship/rhino/portrait.png
  17. BIN
      graphics/exported/ship/rhino/sprite.png
  18. BIN
      graphics/exported/ship/scout/portrait.png
  19. BIN
      graphics/exported/ship/scout/sprite.png
  20. BIN
      graphics/exported/ship/tomahawk/portrait.png
  21. BIN
      graphics/exported/ship/tomahawk/sprite.png
  22. BIN
      graphics/exported/ship/trapper/portrait.png
  23. BIN
      graphics/exported/ship/trapper/sprite.png
  24. BIN
      graphics/exported/ship/whirlwind/portrait.png
  25. BIN
      graphics/exported/ship/whirlwind/sprite.png
  26. BIN
      graphics/exported/ship/xander/portrait.png
  27. BIN
      graphics/exported/ship/xander/sprite.png
  28. BIN
      graphics/ships/_base.blend
  29. BIN
      graphics/ships/avenger.blend
  30. BIN
      graphics/ships/breeze.blend
  31. BIN
      graphics/ships/commodore.blend
  32. BIN
      graphics/ships/creeper.blend
  33. BIN
      graphics/ships/falcon.blend
  34. BIN
      graphics/ships/flea.blend
  35. BIN
      graphics/ships/jumper.blend
  36. BIN
      graphics/ships/rhino.blend
  37. BIN
      graphics/ships/scout.blend
  38. BIN
      graphics/ships/textures/portrait_env_map.jpg
  39. BIN
      graphics/ships/textures/whirlwind_reactor.png
  40. BIN
      graphics/ships/tomahawk.blend
  41. BIN
      graphics/ships/trapper.blend
  42. BIN
      graphics/ships/whirlwind.blend
  43. BIN
      graphics/ships/xander.blend
  44. 35 29
      graphics/ui/battle.svg
  45. 0 2
      src/core/ShipModel.ts
  46. 0 1
      src/ui/battle/ArenaShip.ts
  47. 2 2
      src/ui/battle/BattleSplash.ts
  48. 4 2
      src/ui/battle/ShipListItem.ts
  49. 6 6
      src/ui/battle/ShipTooltip.ts

BIN
graphics/exported/battle/tooltip/ship-portrait.png


BIN
graphics/exported/ship/avenger/portrait.png


BIN
graphics/exported/ship/avenger/sprite.png


BIN
graphics/exported/ship/breeze/portrait.png


BIN
graphics/exported/ship/breeze/sprite.png


BIN
graphics/exported/ship/commodore/portrait.png


BIN
graphics/exported/ship/commodore/sprite.png


BIN
graphics/exported/ship/creeper/portrait.png


BIN
graphics/exported/ship/creeper/sprite.png


BIN
graphics/exported/ship/falcon/portrait.png


BIN
graphics/exported/ship/falcon/sprite.png


BIN
graphics/exported/ship/flea/portrait.png


BIN
graphics/exported/ship/flea/sprite.png


BIN
graphics/exported/ship/jumper/portrait.png


BIN
graphics/exported/ship/jumper/sprite.png


BIN
graphics/exported/ship/rhino/portrait.png


BIN
graphics/exported/ship/rhino/sprite.png


BIN
graphics/exported/ship/scout/portrait.png


BIN
graphics/exported/ship/scout/sprite.png


BIN
graphics/exported/ship/tomahawk/portrait.png


BIN
graphics/exported/ship/tomahawk/sprite.png


BIN
graphics/exported/ship/trapper/portrait.png


BIN
graphics/exported/ship/trapper/sprite.png


BIN
graphics/exported/ship/whirlwind/portrait.png


BIN
graphics/exported/ship/whirlwind/sprite.png


BIN
graphics/exported/ship/xander/portrait.png


BIN
graphics/exported/ship/xander/sprite.png


BIN
graphics/ships/_base.blend


BIN
graphics/ships/avenger.blend


BIN
graphics/ships/breeze.blend


BIN
graphics/ships/commodore.blend


BIN
graphics/ships/creeper.blend


BIN
graphics/ships/falcon.blend


BIN
graphics/ships/flea.blend


BIN
graphics/ships/jumper.blend


BIN
graphics/ships/rhino.blend


BIN
graphics/ships/scout.blend


BIN
graphics/ships/textures/portrait_env_map.jpg


BIN
graphics/ships/textures/whirlwind_reactor.png


BIN
graphics/ships/tomahawk.blend


BIN
graphics/ships/trapper.blend


BIN
graphics/ships/whirlwind.blend


BIN
graphics/ships/xander.blend


+ 35 - 29
graphics/ui/battle.svg

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

+ 0 - 2
src/core/ShipModel.ts

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

+ 0 - 1
src/ui/battle/ArenaShip.ts

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

+ 2 - 2
src/ui/battle/BattleSplash.ts

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

+ 4 - 2
src/ui/battle/ShipListItem.ts

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

+ 6 - 6
src/ui/battle/ShipTooltip.ts

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