mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-08 18:09:45 +01:00
Move preloader update code to new function preloaderlogic()
Otherwise the preloader will go by way too quickly.
This commit is contained in:
parent
97b8e062ff
commit
b5b958561c
3 changed files with 10 additions and 1 deletions
|
@ -400,6 +400,7 @@ int main(int argc, char *argv[])
|
|||
switch(game.gamestate)
|
||||
{
|
||||
case PRELOADER:
|
||||
preloaderlogic();
|
||||
break;
|
||||
#if !defined(NO_CUSTOM_LEVELS)
|
||||
case EDITORMODE:
|
||||
|
|
|
@ -9,7 +9,7 @@ int pre_darkcol=0, pre_lightcol=0, pre_curcol=0, pre_coltimer=0, pre_offset=0;
|
|||
int pre_frontrectx=30, pre_frontrecty=20, pre_frontrectw=260, pre_frontrecth=200;
|
||||
int pre_temprectx=0, pre_temprecty=0, pre_temprectw=320, pre_temprecth=240;
|
||||
|
||||
void preloaderrender()
|
||||
void preloaderlogic()
|
||||
{
|
||||
if (pre_transition < 30) pre_transition--;
|
||||
if(pre_transition>=30){
|
||||
|
@ -25,6 +25,12 @@ void preloaderrender()
|
|||
pre_curcol = (pre_curcol + int(fRandom() * 5.0f)) % 6;
|
||||
pre_coltimer = 8;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void preloaderrender()
|
||||
{
|
||||
if(pre_transition>=30){
|
||||
switch(pre_curcol) {
|
||||
case 0:
|
||||
pre_lightcol = graphics.RGBflip(0xBF,0x59,0x6F);
|
||||
|
|
|
@ -7,4 +7,6 @@
|
|||
|
||||
void preloaderrender();
|
||||
|
||||
void preloaderlogic();
|
||||
|
||||
#endif /* PRELOADER_H */
|
||||
|
|
Loading…
Reference in a new issue