public ProjectileHitTestResult HitTest(EnemyBomb bomb) { if (bomb == null || bomb.Row != _row) { return(new ProjectileHitTestResult()); } if (bomb.Col >= Col - 1 && bomb.Col <= Col + 1) { return(new ProjectileHitTestResult { PlayerHit = true }); } return(new ProjectileHitTestResult()); }
private void CreateBomb(int index) { var col = _rnd.Next(9, 51); Bombs[index] = new EnemyBomb(_speccy, 10, col); }