Update README.md

This commit is contained in:
Minjae Song
2017-02-17 14:32:55 +09:00
committed by GitHub
parent 3fbc36a3e4
commit 9f8767f2b8

View File

@@ -22,11 +22,11 @@ Font images are stored in ```assets/graphics/fonts``` directory. Image format mu
On your code (Kotlin):
class YourGame {
class YourGame : BasicGame("YourGameName") {
lateinit var fontGame: Font
override fun initStatesList(gc: GameContainer) {
override fun init(gc: GameContainer) {
fontGame = GameFontImpl()
...
}
@@ -39,16 +39,16 @@ On your code (Kotlin):
On your code (Java):
class YourGame {
class YourGame extends BasicGame {
Font fontGame;
void initStatesList(GameContainer gc) {
@Override void init(GameContainer gc) {
fontGame = new GameFontImpl();
...
}
void render(GameContainer gc, Graphics g) {
@Override void render(GameContainer gc, Graphics g) {
g.setFont(fontGame);
g.drawString(...);
}