void SpriteCardItem::Draw(const FPoint &shift) { if(part.texture->IsLoaded()) { part.texture->Draw(part.screenRect.MovedBy(shift.Rounded()), part.textureUV); } }
void LevelEndBonusController::Update(float dt) { local_time += dt; if( local_time >= 0.0f ) { Game::FieldAddress address(_center); FPoint pos = GameSettings::gamefield[address]->GetCellPos() + GameSettings::CELL_HALF; ParticleEffectPtr eff = Game::AddEffect(gameField->_effTopCont, "LineBonusChip_0"); eff->SetPos(pos); eff->Reset(); gameField->addWave(pos.Rounded(), 0.02f, 1000.0f, 125.0f); } }