Sivut

Tuesday, October 30, 2012

v1.5 update

Finally managed to get myself to port the enhancements done for Tactical Invasion back to Infantry Invasion.

The enhancements include
  • Improved performance.
    While performance was OK in Infantry Invasion for most devices, things really became a crawl in Tactical Invasion. Galaxy Nexus which still represented pretty highend hardware, it barely ran at 15fps. So I really had to do some more optimizations to get it running sensibly. Taking optimization back should make Infantry Invasion running in even pretty low end devices.
  • Improved UI feedback
    I've tried to add a blink to all "clickable" UI components. Also I've tried to make disabled components fade out.
  • Bug in perk Haste
    I had a long running bug in that I was not able to nail down. It happened rarely and manifested so that  grenades and bazookas seemed to "bounce". I.e. instead of exploding at the target, they fired again traveled to a new target. Also it meant that soldiers with Haste did damage only rarely with machine gun.

    Finally with some luck I made the connection that the bug happens through the perk Haste, which causes the time that it takes to reload be reduced. Because this reduction was not considered in the weapon code (just player code) it was possible to fire the weapon again before reload was complete. This caused the final step of dealing damage and resetting the weapon to not happen
     
  • Improved AI
    The AI works OK most of the time, but there are some cases where it does stupid things. For example if the entire unit was wiped out, they kept running back to fight. Also soldiers remembered the previous target even after respawning, which caused them to attack immediatelly without order when getting the enemy in sight. Multiple changes were done to improve the AI.
As usual, Android users get it now and iOS users have to wait for Apple to approve my work

No comments:

Post a Comment