• Register
Post news Report RSS Debugging asynchronous code

​Working on asynchronous movement is tougher than I think about.

Posted by on

The smart grid which stores position and type of module in the cell helps a lot but cannot handle all moment of movement.
Modules store their position in the grid after stopping movement.

But this behavior made some bugs - when two modules near each other moves fast and grid do not distinguish them by position or unable to check them in the frame - they move and stack in one cell.

I think about semaphores in each cell in the column as in OpenTTD - yellow warning - in next cell module moves, red - in next cell module stops, green - no module in next cell.

Wonder how it implemented in treasures of Montezuma

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

News
Browse
News
New
Post news
Report
Report
Views
4 (1 today)
Share
Related Games
BoomTrix
BoomTrix Tower Defense
Related Engines
Unity
Unity Commercial
Related Groups
AVS Games
AVS Games Developer