Esempio n. 1
0
 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);
 }