Rev 269 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
package com.gebauz.pingk;
import java.util.Random;
import com.badlogic.gdx.Gdx;
import com.gebauz.Bauzoid.app.CustomServices;
import com.gebauz.Bauzoid.app.Game;
import com.gebauz.Bauzoid.graphics.Font;
import com.gebauz.Bauzoid.graphics.FontUtil;
/** Provides the global font, etc. */
public class PingkCustomServices
extends CustomServices
{
private Font mFont =
null;
public PingkCustomServices
(Game game
)
{
super(game
);
}
@
Override
public void init
()
{
mFont = FontUtil.
createFontFromFile(getGame
().
getGraphics(), Gdx.
files.
internal("data/fonts/Emulator12.txt"));
}
@
Override
public void exit
()
{
if (mFont
!=
null)
{
mFont.
dispose();
mFont =
null;
}
}
@
Override
public void update
(float deltaTime
)
{
}
@
Override
public void render
()
{
}
public Font getFont
()
{
return mFont
;
}
}