v0.8.0: cleaned up some redundant code in WndStartGame
This commit is contained in:
parent
69fff304aa
commit
ce5ff1a7d5
|
@ -166,16 +166,7 @@ public class WndStartGame extends Window {
|
||||||
|
|
||||||
this.cl = cl;
|
this.cl = cl;
|
||||||
|
|
||||||
if (cl == HeroClass.WARRIOR){
|
add(hero = new Image(cl.spritesheet(), 0, 90, 12, 15));
|
||||||
hero = new Image(Assets.WARRIOR, 0, 90, 12, 15);
|
|
||||||
} else if (cl == HeroClass.MAGE){
|
|
||||||
hero = new Image(Assets.MAGE, 0, 90, 12, 15);
|
|
||||||
} else if (cl == HeroClass.ROGUE){
|
|
||||||
hero = new Image(Assets.ROGUE, 0, 90, 12, 15);
|
|
||||||
} else if (cl == HeroClass.HUNTRESS){
|
|
||||||
hero = new Image(Assets.HUNTRESS, 0, 90, 12, 15);
|
|
||||||
}
|
|
||||||
add(hero);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user