<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000000"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)">On Mon, 3 Sep 2018 at 18:11, Bert Freudenberg <<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>> wrote:</span><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small;color:#000000"><br></div><div class="gmail_quote"><div style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">We generally try to design around it. For example, in Pac-Man, the obvious approach would be to move the player, check if it collided with a dot, then delete that dot. This doesn't work because it is not easy to check which dot it collided with. Instead, we have all the dots ticking to check if they collided with the player, and if so delete themselves and increase the global score.</div></div></div></blockquote><div><br></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">Here is one idea:</span><br></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><div><img src="cid:ii_jln2t0790" alt="image.jpg" width="562" height="295"><br></div><div><br></div></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">- Bert -</div></div></div>