Firefighter better animations added
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
#include <string>
|
||||
#include "SDL2/SDL.h"
|
||||
#include "Components.h"
|
||||
#include "ECS.h"
|
||||
#include "../assetmgr/TextureManager.h"
|
||||
#include <iostream>
|
||||
|
||||
@ -72,19 +73,19 @@ public:
|
||||
|
||||
void update() override
|
||||
{
|
||||
// if(tag != "terrain")
|
||||
// {
|
||||
// collider.x = static_cast<int>(transform->position.x)+9;
|
||||
// collider.y = static_cast<int>(transform->position.y)+28;
|
||||
//// collider.w = transform->width * transform->scale;
|
||||
//// collider.h = transform->height * transform->scale;
|
||||
// collider.w = 12 * transform->scale;
|
||||
// collider.h = 12 * transform->scale;
|
||||
if(tag != "terrain")
|
||||
{
|
||||
collider.x = static_cast<int>(transform->position.x);
|
||||
collider.y = static_cast<int>(transform->position.y);
|
||||
collider.w = transform->width * transform->scale;
|
||||
collider.h = transform->height * transform->scale;
|
||||
// collider.w = 12 * transform->scale;
|
||||
// collider.h = 12 * transform->scale;
|
||||
//
|
||||
//// std::cout << "collider.w: " << collider.w << std::endl;
|
||||
//// std::cout << "collider.h: " << collider.h << std::endl;
|
||||
//// std::cout << "tag: " << tag << std::endl;
|
||||
// }
|
||||
// std::cout << "collider.w: " << collider.w << std::endl;
|
||||
// std::cout << "collider.h: " << collider.h << std::endl;
|
||||
// std::cout << "tag: " << tag << std::endl;
|
||||
}
|
||||
destR.x = collider.x - Game::camera.x;
|
||||
destR.y = collider.y - Game::camera.y;
|
||||
// std::cout << "tag: " << tag << std::endl;
|
||||
|
Reference in New Issue
Block a user