diff --git a/com/danitheskunk/skunkworks/BaseGame.java b/com/danitheskunk/skunkworks/BaseGame.java index b2fa2f5..c9555a1 100644 --- a/com/danitheskunk/skunkworks/BaseGame.java +++ b/com/danitheskunk/skunkworks/BaseGame.java @@ -1,14 +1,19 @@ package com.danitheskunk.skunkworks; +import com.danitheskunk.skunkworks.gfx.Color; import com.danitheskunk.skunkworks.gfx.IRenderContext; +import com.danitheskunk.skunkworks.gfx.font.IFont; public abstract class BaseGame { protected Engine engine; protected IWindow window; + protected IFont debugFont; public BaseGame(Vec2i windowSize, String windowTitle) { this.engine = new Engine(); this.window = engine.openWindow(windowSize, windowTitle); + //todo: load from .jar + this.debugFont = window.loadFontTileset("fonts/ega-8x14.png"); init(); } @@ -28,7 +33,7 @@ public abstract class BaseGame { } protected void render(IRenderContext rc) { - //todo: demo text? + rc.drawString(new Vec2i(8, 8), "Welcome to Skunkworks, please overide the render method to get started", debugFont, Color.LIGHT_GRAY); } protected void update(double delta) { diff --git a/EGA8x14.png b/fonts/ega-8x14.png similarity index 100% rename from EGA8x14.png rename to fonts/ega-8x14.png diff --git a/fonts/thin-6x12.png b/fonts/thin-6x12.png index b6cdc4e..6521b92 100644 Binary files a/fonts/thin-6x12.png and b/fonts/thin-6x12.png differ