fissh

termios terminal aquarium. demo at ssh://fish@kloet.net
Download | Log | Files | Refs

ShipAssets.h (835B)


      1 #pragma once
      2 #include "../entities/Entity.h"
      3 #include "../utils/SpriteUtils.h"
      4 #include <vector>
      5 
      6 inline const AssetPair &getShip() {
      7   static const AssetPair ship = {
      8       {
      9         R"(     |    |    |         )",
     10         R"(    )_)  )_)  )_)        )",
     11         R"(   )___))___))___)\      )",
     12         R"(  )____)____)_____)\\    )",
     13         R"(_____|____|____|____\\\__)",
     14         R"(\                   /????)"},
     15       {
     16         R"(     y    y    y         )",
     17         R"()",
     18         R"(                  w      )",
     19         R"(                   ww    )",
     20         R"(yyyyyyyyyyyyyyyyyyyywwwyy)",
     21         R"(y                   y    )"}};
     22   return ship;
     23 }
     24 
     25 inline const std::vector<AssetPair> &getShipAssets() {
     26   static const std::vector<AssetPair> shipAssets =
     27       createBidirectionalAssets({getShip()});
     28   return shipAssets;
     29 }