if (previousx != x || previousy != y)
myLight.setLocation(x + StarCleaner.TILESIZE / 2, y
+ StarCleaner.TILESIZE / 2);
// did we collect a star?
Entity star = collide(Star.STAR_TYPE, x, y);
if (star != null)
pickupstarSnd.play();
Entity sunOrMoon = collide(Sun.SUN_AND_MOON, x, y);
// did we collide with a spike or a crow?
if (collide(enemies, x, y) != null) {
hitSnd.play();
Globals.playerDead = true;