step 6: credits_scene substituix doCredits() (scroll vertical + parallax condicional)
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "game/modulesequence.hpp"
|
||||
#include "game/options.hpp"
|
||||
#include "scenes/banner_scene.hpp"
|
||||
#include "scenes/credits_scene.hpp"
|
||||
#include "scenes/intro_new_logo_scene.hpp"
|
||||
#include "scenes/menu_scene.hpp"
|
||||
#include "scenes/mort_scene.hpp"
|
||||
@@ -43,7 +44,7 @@ void gameFiberEntry() {
|
||||
info::ctx.num_habitacio = Options::game.habitacio_inicial;
|
||||
info::ctx.num_piramide = Options::game.piramide_inicial;
|
||||
info::ctx.diners = 0;
|
||||
info::ctx.diamants = 0;
|
||||
info::ctx.diamants = Options::game.diamants_inicial;
|
||||
info::ctx.vida = Options::game.vides;
|
||||
info::ctx.momies = 0;
|
||||
info::ctx.nou_personatge = false;
|
||||
@@ -129,6 +130,7 @@ void Director::init() {
|
||||
// l'usuari no té prou diners per a la Secreta)
|
||||
registry.registerScene(1, [] { return std::make_unique<scenes::SlidesScene>(); });
|
||||
registry.registerScene(7, [] { return std::make_unique<scenes::SlidesScene>(); });
|
||||
registry.registerScene(8, [] { return std::make_unique<scenes::CreditsScene>(); });
|
||||
// IntroNewLogoScene només es registra quan `use_new_logo` està actiu;
|
||||
// si no, la factory retorna nullptr i el gameFiberEntry cau al vell
|
||||
// ModuleSequence::doIntro() legacy que no ha sigut migrat encara.
|
||||
|
||||
Reference in New Issue
Block a user