Have a basic understanding of what to do for the boss fight arena, but now want to start over fresh.
This commit is contained in:
parent
e523aa8b02
commit
07e281d987
14 changed files with 76 additions and 217 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include "systems.hpp"
|
||||
#include "components.hpp"
|
||||
#include "rituals.hpp"
|
||||
#include "textures.hpp"
|
||||
|
||||
using lighting::LightRender;
|
||||
using std::shared_ptr, std::make_shared;
|
||||
|
|
@ -47,7 +48,6 @@ namespace GameDB {
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
size_t new_level(std::shared_ptr<DinkyECS::World> prev_world) {
|
||||
dbc::check(initialized, "Forgot to call GameDB::init()");
|
||||
auto world = clone_load_world(prev_world);
|
||||
|
|
@ -88,7 +88,7 @@ namespace GameDB {
|
|||
return current_level().world;
|
||||
}
|
||||
|
||||
shared_ptr<gui::BossFightUI> create_bossfight() {
|
||||
shared_ptr<boss::UI> create_bossfight() {
|
||||
dbc::check(initialized, "Forgot to call GameDB::init()");
|
||||
auto prev_world = current_world();
|
||||
dbc::check(prev_world != nullptr, "Starter world for boss fights can't be null.");
|
||||
|
|
@ -103,10 +103,9 @@ namespace GameDB {
|
|||
auto boss_id = world->entity();
|
||||
components::configure_entity(*world, boss_id, boss_data["components"]);
|
||||
|
||||
return make_shared<gui::BossFightUI>(world, boss_id);
|
||||
return make_shared<boss::UI>(world, boss_id);
|
||||
}
|
||||
|
||||
|
||||
Level& create_level() {
|
||||
dbc::check(initialized, "Forgot to call GameDB::init()");
|
||||
dbc::check(LDB->current_level < LDB->levels.size(), "attempt to get next level when at end");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue