// Utility Methods public void configureThings() { this.things.add( GameObjectFactory.getInstance().createBlock("/block_grass_1.png", 1, 1, 40, 40)); this.things.add(GameObjectFactory.getInstance().createBlock("/block_mud_1.png", 1, 1, 40, 40)); this.things.add( GameObjectFactory.getInstance().createBlock("/block_qmark_1.png", 1, 1, 40, 40)); }
public void configureEntities() { Entity entity; this.entities.add( GameObjectFactory.getInstance().createPlayer("/spritesheet_1_player.png", 1, 1, 40, 40)); entity = GameObjectFactory.getInstance().createEnemy("/spritesheet_1_enemy.png", 1, 1, 40, 40); entity.setSpeed(2f); this.entities.add(entity); }