Commits

Anonymous committed ee62812

works on iBook

Comments (0)

Files changed (1)

fungus_hexbattle.py

         self.overlay.append(self.movement_overlay)
 
         self.guide = self.core.load_text("""Kill all enemies. Keep your units together. Don't get surrounded. < enter to hide  >""")
+	self.guide.y = 400
         self.overlay.append(self.guide)
 
 
             self.num_rats -= 1
 
         # and add goblins
-        # add rats
         if self.num_goblins > 0:
             x, y = self.find_free_hex(8, -2)
-            char = Character(self, self.hexmap, image_path = join("graphics", "wesnoth", "impaler.png"), template_data = rat_data, source = "tag:1w6.org,2010:Rat")
+            char = Character(self, self.hexmap, image_path = join("graphics", "wesnoth", "impaler.png"), source = "tag:1w6.org,2010:Rat")#, template_data = rat_data)
             char.move_to_hex(x, y)
             # we are the rats!
             char.team = "goblins"
             char.attack = 9
             self.chars.append(char)
             self.num_goblins -= 1
-
         # sort by initiative
         self.chars_by_initiative = [[c.roll_initiative(), c] for c in self.chars]
         self.chars_by_initiative.sort()
-
         # pass the control to the AI
-        if True or self.num_goblins <= 0 and self.num_rats <= 0: 
+        if self.num_goblins <= 0 and self.num_rats <= 0: 
             self.state["player"] = "CPU"
         
 
             self.setup_step()
         elif self.state["player"] == "CPU":
             self.computer_turn()
-        sleep(0.01)
+        sleep(0.10)
 
     def are_enemies(self, unit, other):
         """Check if the given units are enemies."""