mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Move finalstretch animation code to gamelogic()
Otherwise, the tile animations will go too fast. However, the overall color cycling hasn't been going fast, since it was never in gamerender() in the first place.
This commit is contained in:
@@ -2279,21 +2279,6 @@ void Graphics::drawmap()
|
|||||||
|
|
||||||
void Graphics::drawfinalmap()
|
void Graphics::drawfinalmap()
|
||||||
{
|
{
|
||||||
//Update colour cycling for final level
|
|
||||||
if (map.final_colormode) {
|
|
||||||
map.final_aniframedelay--;
|
|
||||||
if(map.final_aniframedelay==0)
|
|
||||||
{
|
|
||||||
foregrounddrawn=false;
|
|
||||||
}
|
|
||||||
if (map.final_aniframedelay <= 0) {
|
|
||||||
map.final_aniframedelay = 2;
|
|
||||||
map.final_aniframe++;
|
|
||||||
if (map.final_aniframe >= 4)
|
|
||||||
map.final_aniframe = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!foregrounddrawn) {
|
if (!foregrounddrawn) {
|
||||||
FillRect(foregroundBuffer, 0x00000000);
|
FillRect(foregroundBuffer, 0x00000000);
|
||||||
if(map.tileset==0){
|
if(map.tileset==0){
|
||||||
|
|||||||
@@ -1306,6 +1306,23 @@ void gamelogic()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Update colour cycling for final level
|
||||||
|
if (map.finalmode && map.final_colormode)
|
||||||
|
{
|
||||||
|
map.final_aniframedelay--;
|
||||||
|
if(map.final_aniframedelay==0)
|
||||||
|
{
|
||||||
|
graphics.foregrounddrawn=false;
|
||||||
|
}
|
||||||
|
if (map.final_aniframedelay <= 0) {
|
||||||
|
map.final_aniframedelay = 2;
|
||||||
|
map.final_aniframe++;
|
||||||
|
if (map.final_aniframe >= 4)
|
||||||
|
map.final_aniframe = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int j;
|
int j;
|
||||||
if (game.roomchange)
|
if (game.roomchange)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user