Menu

#1 Bug @ PseudoGame - Array Index

open-fixed
Matheus
PseudoGame (1)
5
2010-07-12
2010-07-10
Sora
No

@ PseudoGame - Current Revision: 173

Error happens whenever the F key is pressed close to the right border of the screen.

This is probably due to a position checking that the Towers do, but the Foes do not, as pressing the T key in that area does nothing.

Exception in thread "Thread-407" java.lang.ArrayIndexOutOfBoundsException: 9
at sourceforge.shinigami.pseudogame.TowerMap.moveFoe(TowerMap.java:30)
at sourceforge.shinigami.pseudogame.TowerMap.update(TowerMap.java:162)
at sourceforge.shinigami.pseudogame.PseudoGame.update(PseudoGame.java:86)
at sourceforge.shinigami.gui.GameScreen$GameFrame.sys_update(GameScreen.java:606)
at sourceforge.shinigami.gui.GameScreen$GameFrame.access$2(GameScreen.java:605)
at sourceforge.shinigami.gui.GameScreen$GameFrame$UpdateControlThread$UpdateThread.run(GameScreen.java:659)

Discussion

  • Sora

    Sora - 2010-07-10
    • labels: --> PseudoGame
     
  • Matheus

    Matheus - 2010-07-12

    Fixed. Also, the foes can be placed one tile further from the towers's limit tile.
    This happens because the only problem of placing a foe too much to the right is that he tries to attack the tower to his left.
    I'm thinking about changing this and just making a protection so he wouldn't try to attack towers out of the boundaries, but for now, this is OK.

     
  • Matheus

    Matheus - 2010-07-12
    • status: open --> open-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB