MusicAdam / TotemDefender

Simple physics based game.
0 stars 1 forks source link

Game crashes after totem placement #54

Open alobaids opened 9 years ago

alobaids commented 9 years ago

The game will crash when player 1 tries to aim the canon. Both going up or down cause the game to crash. This is the exception that fires: Exception in thread "LWJGL Application" java.lang.NullPointerException at com.totemdefender.entities.WeaponEntity.rotateDown(WeaponEntity.java:204) at com.totemdefender.states.BattleState.update(BattleState.java:172) at com.totemdefender.states.StateManager.update(StateManager.java:50) at com.totemdefender.TotemDefender.render(TotemDefender.java:236) at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:208) at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:114)

MusicAdam commented 9 years ago

try pulling again and refreshing

MusicAdam commented 9 years ago

looks like its only happening for the catapult

alobaids commented 9 years ago

no it only happens with the cannon. However, if the cannon overlaps the catapult, which is also a bug, the game works normaly.

alobaids commented 9 years ago

I think I pinpointed specifically what happens. If the cannon is being used, the game will crash once player 1 tries to aim with his or her weapon. If the cannon is overlapping, than the game works.

MusicAdam commented 9 years ago

what do you mean if the cannon is overlapping?