Graphics display Test
All checks were successful
Emscripten Build / Build_and_Deploy_Web_Build (push) Successful in 21s

This commit is contained in:
sigonasr2 2025-05-06 10:37:29 -04:00
parent 7525482a6f
commit 032515a088
2 changed files with 9 additions and 3 deletions

View File

@ -631,8 +631,7 @@ public:
rom->AdvanceLayers(tick,alpha1,alpha2);
}
bool OnUserUpdate(float fElapsedTime) override
{
void runBattleBackgrounds(){
if(GetKey(RIGHT).bPressed){
selectedLayer1=std::clamp(selectedLayer1+1,0,int(rom->backgrounds.size()));
rom->SetLayer1(selectedLayer1);
@ -650,7 +649,7 @@ public:
rom->SetLayer2(selectedLayer2);
}
accumulatedTime+=fElapsedTime;
accumulatedTime+=GetElapsedTime();
if(accumulatedTime>=1/60.f){
runTick();
accumulatedTime=std::min(1/60.f,accumulatedTime-1/60.f);
@ -658,6 +657,13 @@ public:
}
DrawStringDecal({},std::format("Layer 1: {} Layer 2: {}",selectedLayer1,selectedLayer2));
}
bool OnUserUpdate(float fElapsedTime) override
{
//PaletteDisplayTest();
GraphicsDisplayTest();
//runBattleBackgrounds();
return true;
}
};