Prep animated tile structures.

pull/28/head
sigonasr2 1 year ago
parent e8f6d972ad
commit 8aba4dfc5b
  1. 1
      Crawler/Crawler.cpp
  2. 1
      Crawler/DEFINES.h
  3. 10
      Crawler/assets/maps/Tilesheet_No_Shadow24x24.tsx

@ -22,6 +22,7 @@ INCLUDE_EMITTER_LIST
//360x240 //360x240
vi2d WINDOW_SIZE={24*15,24*10}; vi2d WINDOW_SIZE={24*15,24*10};
safemap<std::string,Animate2D::FrameSequence>ANIMATION_DATA; safemap<std::string,Animate2D::FrameSequence>ANIMATION_DATA;
std::map<int,std::vector<std::pair<int,float>>>TILE_ANIMATION_DATA;
std::vector<Monster>MONSTER_LIST; std::vector<Monster>MONSTER_LIST;
std::vector<MonsterSpawner>SPAWNER_LIST; std::vector<MonsterSpawner>SPAWNER_LIST;
std::vector<std::shared_ptr<DamageNumber>>DAMAGENUMBER_LIST; std::vector<std::shared_ptr<DamageNumber>>DAMAGENUMBER_LIST;

@ -11,6 +11,7 @@
#define INCLUDE_DATA extern utils::datafile DATA; #define INCLUDE_DATA extern utils::datafile DATA;
#define INCLUDE_STRATEGY_DATA extern safemap<std::string,int>STRATEGY_DATA; #define INCLUDE_STRATEGY_DATA extern safemap<std::string,int>STRATEGY_DATA;
#define INCLUDE_STRATEGY_ID_DATA extern safemap<std::string,int>STRATEGY_ID_DATA; #define INCLUDE_STRATEGY_ID_DATA extern safemap<std::string,int>STRATEGY_ID_DATA;
#define INCLUDE_TILE_ANIMATION_DATA extern std::map<int,std::vector<std::pair<int,float>>>TILE_ANIMATION_DATA;
#define ACCESS_PLAYER Player*p=game->GetPlayer(); #define ACCESS_PLAYER Player*p=game->GetPlayer();

@ -6,6 +6,16 @@
<object id="1" x="0" y="0" width="24" height="24"/> <object id="1" x="0" y="0" width="24" height="24"/>
</objectgroup> </objectgroup>
</tile> </tile>
<tile id="491">
<animation>
<frame tileid="491" duration="200"/>
<frame tileid="492" duration="200"/>
<frame tileid="543" duration="200"/>
<frame tileid="544" duration="200"/>
<frame tileid="595" duration="200"/>
<frame tileid="596" duration="200"/>
</animation>
</tile>
<tile id="781"> <tile id="781">
<objectgroup draworder="index" id="2"> <objectgroup draworder="index" id="2">
<object id="1" x="0" y="0" width="24" height="24"/> <object id="1" x="0" y="0" width="24" height="24"/>

Loading…
Cancel
Save