Skip to content

Commit

Permalink
временный фикс взрыва
Browse files Browse the repository at this point in the history
  • Loading branch information
HPW-dev committed Dec 26, 2024
1 parent 31f5f59 commit ac754b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/game/entity/explosion-loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,18 @@ struct Explosion_loader::Impl {
it->status.ignore_self_type = true;
it->status.ignore_master = true;
// разлёт в случайную сторону, но с сохранением начального направления
Vec motion = rand_normalized_stable() * rndr(0, pps(m_particles_range));
#pragma message("TODO fix stattering")
constexpr real range_fixer = 6.5f; // TODO временное решение
Vec motion = rand_normalized_stable() * rndr(0, pps(m_particles_range) * range_fixer);
it->phys.set_vel(it->phys.get_vel() + motion);
init_shared(it->heat_distort, m_heat_distort);
// TODO создание вспышки
} // for m_particle_count

/*
auto it = hpw::entity_mgr->allocate<Particle>();
/* auto it = hpw::entity_mgr->allocate<Particle>();
Entity_loader::prepare(*it, master, pos);
*/
return {}; // TODO от взрыва возвращать хитбокс
} // op ()

// TODO создание вспышки */
return {}; // TODO от взрыва возвращать хитбокс;
}
}; // Impl

Explosion_loader::Explosion_loader(cr<Yaml> config)
Expand Down
2 changes: 2 additions & 0 deletions src/game/scene/scene-difficulty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ void Scene_difficulty::draw(Image& dst) const {
menu->draw(dst);
}

#pragma message("TODO return replays")

void Scene_difficulty::init_menu() {
Menu_items menu_items {
new_shared<Menu_text_item>(get_locale_str("difficulty_select.start"), []{
Expand Down

0 comments on commit ac754b4

Please sign in to comment.