суббота, 6 августа 2016 г.

Strange beamer behaviour.

I copy code from GridTowerAI to TowRowBeamWeaponAI and it should work, but it has not.

So strange, when you have good and working code. Use it and nothing happens.

Maybe some deep internal dependencies not met? But it compiles and run.

When game grows too many classes make head spin: which one I should apply here, where I can borrow some functionality, can it apply to new situation.

Tower AI is pretty simple and straighforward: I search for nearest target (and should move this logic to Strategy pattern), then look at it and attack. Laser tower works perfectly. But two row beamer ignores target completely.

Bug hunting not fun activity at all. Maybe I can find gamification way to make it prettier?