Graphics display Test
All checks were successful
Emscripten Build / Build_and_Deploy_Web_Build (push) Successful in 21s
All checks were successful
Emscripten Build / Build_and_Deploy_Web_Build (push) Successful in 21s
This commit is contained in:
parent
7525482a6f
commit
032515a088
@ -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;
|
||||
}
|
||||
};
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user