Blame |
Last modification |
View Log
| RSS feed
package com.gebauz.burutaru;
import com.gebauz.bauzoid.game.Game;
import com.gebauz.bauzoid.gamestates.BaseLoadingScreen;
import com.gebauz.bauzoid.math.MathUtil;
import com.gebauz.bauzoid.math.Vector4;
import com.gebauz.burutaru.GameConsts;
public class LoadingScreen
extends BaseLoadingScreen
{
// Constants========================================================================================
// Embedded Types===================================================================================
// Fields===========================================================================================
private Vector4 mColor =
new Vector4
(1,
1,
1,
1);
// Methods==========================================================================================
public LoadingScreen
(Game game
)
{
super(game
);
}
@
Override
public void update
(float deltaTime
)
{
mColor.
w = 0.8f + 0.2f
* MathUtil.
sin(getGame
().
getTime()*360.0f
);
}
@
Override
public void render
()
{
getGraphics
().
clear(0,
0,
0,
0);
getGraphics
().
renderStates.
projection.
setOrtho(
0.0f,
GameConsts.
VIRTUAL_SCREEN_WIDTH-
1,
GameConsts.
VIRTUAL_SCREEN_HEIGHT-
1,
0.0f,
0.0f,
1.0f
);
getFonts
().
getDefaultFont().
drawText("Loading...", GameConsts.
VIRTUAL_SCREEN_WIDTH - 100.0f, GameConsts.
VIRTUAL_SCREEN_HEIGHT - 40.0f, mColor
);
}
// Getters/Setters==================================================================================
}