From 9f8767f2b888660c2bf8faa182af8b330c7f86c3 Mon Sep 17 00:00:00 2001 From: Minjae Song Date: Fri, 17 Feb 2017 14:32:55 +0900 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e0202fb..c09de34 100644 --- a/README.md +++ b/README.md @@ -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(...); }