1 package com.codingame.game;
3 import java.util.Random;
5 import com.codingame.gameengine.module.entities.GraphicEntityModule;
6 import com.codingame.gameengine.module.entities.Sprite;
7 import com.codingame.gameengine.module.entities.Text;
8 import com.google.inject.Inject;
11 @Inject private GraphicEntityModule graphicEntityModule;
13 Random random = new Random();
15 Text trollPositionGauge;
22 private void drawBackground() {
23 graphicEntityModule.createSprite()
24 .setImage("background.png")
28 private void drawTroll() {
29 troll = graphicEntityModule.createSprite()
30 .setImage("troll.png")
36 trollPositionGauge = graphicEntityModule.createText()
42 .setFillColor(0xffffff);