Skip to content

Instantly share code, notes, and snippets.

@gre
Last active August 29, 2015 14:00
Show Gist options
  • Save gre/43ff54c9eb39dc4815d8 to your computer and use it in GitHub Desktop.
Save gre/43ff54c9eb39dc4815d8 to your computer and use it in GitHub Desktop.
Anthill bugfixes and micro enhancements
Bugs:
- Fix the path finding bug: the game lag crazily/freeze and gets unplayable after a long play and especially with a lot of spaces (bad perf of the path solver)
- Fix UI buttons which gets unclickable when over the ground
- Fix the queen die sprite (AFAIR the queen seems to not die visually)
- Fix the "tab away" bug (all ants die if tab leaved for a few seconds): elapsedTime cannot be trusted if > THRESHOLD because it basically means the game is not focused and have very small FPS < 1 ( <-- can the game be paused? )
Enhancement:
- Support Fullscreen API
- Make a ant forget his task when assigned to a new job
- Add keyboard shortcut for keyboard-only play
- Try to make the game working on mobile/tablet for touch-only play (how to move?)
Parameter adjustment:
- The queen seems to die too soon which is pretty unfair.
- The game seems unbalanced and too easy (to be confirmed).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment