Ground::Ground() { AddAsset("main", "Assets/Environment/Ground.png"); SetCurrentAsset("main"); SetHitbox(3840, 100); SetSpeed(0); SetPhaseState(false); SetFloatState(true); }
EnemyBulletObject::EnemyBulletObject(sf::Vector2f p_vPos, sf::Vector2f p_vDir, float p_fAcceleration){ setPosition(p_vPos); m_vDir = p_vDir; m_fAcceleration = p_fAcceleration; m_xpSprite = SpriteMngr::GetSprite("EBullet"); SetHitbox(CollisionMngr::NewHitbox(this, getPosition(), 4.f, 0)); AddTag("EBullet"); }
void GameObject::Update(float dt) { SetHitbox(); }