Beispiel #1
0
 // 創造NPC物件
 public void makeNpcSprite() {
   for (int i = 0; i < mapImfor.getNpcAmount(this.evenPoint); i++) {
     npcSprite[i].setFrame(mapImfor.getNpcKind(this.evenPoint, i));
     npcSprite[i].setPosition(
         mapImfor.getNpcX(this.evenPoint, i), mapImfor.getNpcY(this.evenPoint, i));
     makeWord.insert(npcSprite[i], 1);
   }
 }
Beispiel #2
0
 // 設定寶箱物件的座標以及插入物件至LayerManager
 public void makeGemSprite() {
   gemSprite[0].setPosition(
       mapImfor.getGemX(this.evenPoint, 0), mapImfor.getGemY(this.evenPoint, 0));
   makeWord.insert(gemSprite[0], 1);
 }