1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-21 03:58:29 +02:00

Move preloader update code to new function preloaderlogic()

Otherwise the preloader will go by way too quickly.
This commit is contained in:
Misa 2020-05-04 10:06:07 -07:00 committed by Ethan Lee
parent 97b8e062ff
commit b5b958561c
3 changed files with 10 additions and 1 deletions

View File

@ -400,6 +400,7 @@ int main(int argc, char *argv[])
switch(game.gamestate)
{
case PRELOADER:
preloaderlogic();
break;
#if !defined(NO_CUSTOM_LEVELS)
case EDITORMODE:

View File

@ -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);

View File

@ -7,4 +7,6 @@
void preloaderrender();
void preloaderlogic();
#endif /* PRELOADER_H */