[engine] update collision detect
This commit is contained in:
@@ -131,7 +131,7 @@ class Render extends SpriteView implements EngineListener {
|
||||
if (items.exists(bullet.key)) {
|
||||
entryLayer.removeChild(items.get(bullet.key).view);
|
||||
items.remove(bullet.key);
|
||||
playBulletBoom(bullet.rect.center);
|
||||
playBulletBoom(bullet.rect.center.add(new Point(bullet.rect.width * bullet.rect.direction.x, bullet.rect.height * bullet.rect.direction.y)));
|
||||
}
|
||||
case EntityType.EAGLE(eagle):
|
||||
if (items.exists(eagle.key)) {
|
||||
|
||||
Reference in New Issue
Block a user