Game crashes at about 50 points #1
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mario/EndlessRunner#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Exception in thread "main" java.lang.IllegalStateException: Array is empty.
at com.badlogic.gdx.utils.Array.peek(Array.java:364)
at xyz.manolol.endlessrunner.screens.GameScreen.render(GameScreen.java:123)
at com.badlogic.gdx.Game.render(Game.java:48)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.update(Lwjgl3Window.java:387)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop(Lwjgl3Application.java:193)
at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.(Lwjgl3Application.java:167)
at xyz.manolol.endlessrunner.DesktopLauncher.main(DesktopLauncher.java:15)
Might be caused by this:
because the array might be empty at that point. Probably need to implement a check before this.