Delete old assets, remove anim update in renderer

Begin to add notion of a hitbox entity size and the rendering size.
Dynamic entities such as players will have animations that should exceed
the size of the actual player, we should be able to render it at the
desired size even if larger than the actual size.

Collision still occurs on the entity size (i.e. hitbox). Remove the notion
of updating animation in the renderer, we update in WorldTraveller,
removing any concept of passing a "deltatime" to the renderer. The
renderer's purpose is to draw not parse animation logic.
This commit is contained in:
2016-07-17 19:24:19 +10:00
parent 62c5fe0629
commit 88108bce19
5 changed files with 109 additions and 58 deletions
+12 -8
View File
@@ -25,15 +25,19 @@ enum TerrainCoords
terraincoords_count,
};
enum HeroCoords
enum HeroRects
{
herocoords_idle,
herocoords_walkA,
herocoords_walkB,
herocoords_head,
herocoords_waveA,
herocoords_waveB,
herocoords_count,
herorects_idle,
herorects_walkA,
herorects_walkB,
herorects_head,
herorects_waveA,
herorects_waveB,
herorects_battlePose,
herorects_castA,
herorects_castB,
herorects_castC,
herorects_count,
};
typedef struct TexAtlas
+3
View File
@@ -30,7 +30,10 @@ enum EntityAnimId
entityanimid_idle,
entityanimid_walk,
entityanimid_wave,
entityanimid_battlePose,
entityanimid_tackle,
entityanimid_count,
entityanimid_invalid,
};
typedef struct EntityAnim
+1 -1
View File
@@ -51,6 +51,6 @@ inline void renderer_staticString(Renderer *const renderer, Font *const font,
}
void renderer_entity(Renderer *renderer, v4 cameraBounds, Entity *entity,
f32 dt, f32 rotate, v4 color);
v2 entityRenderSize, f32 rotate, v4 color);
#endif