GrumbelsTrashbin / pingus.old-auto-export

Automatically exported from code.google.com/p/pingus
GNU General Public License v3.0
0 stars 0 forks source link

Pingus tunneling through blockers #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm playing svn revision 3985 of pingus.
Find attached a demo of
pingus/data/levels/playable/if_only_i_can_fly_-_wayne_shelley.pingus
where the pingus are sort of tunneling through a row of blockers.

Video of the issue at:

http://www.youtube.com/watch?v=-kptSz68LMM

Originally reported by Blink Blinken <blinkblinken@googlemail.com>

Original issue reported on code.google.com by grum...@gmail.com on 6 Sep 2011 at 10:29

Attachments:

GoogleCodeExporter commented 9 years ago
The problem is caused by blockers having overlapping capture ranges, thus two 
blockers with a walker in the center will result in the blocker on the left 
overwriting the command from the blocker on the right.

A potential solution would be to calculate the real direction of a pingu (i.e. 
pos - last_pos) and using that for decision making instead of the direction 
variable, which is changed by the blockers. Saving the last direction and using 
that might work too.

Original comment by grum...@gmail.com on 6 Sep 2011 at 12:06