public void NewEnemy(float x, float y) { Sprite3 enemy = new Sprite3(true, texEnemy, x, (float)enemyYY.NextDouble() * y); enemy.setWidth(texEnemy.Width * 0.7f); enemy.setHeight(texEnemy.Height * 0.7f); enemy.setBBToTexture(); enemy.hitPoints = 3; enemy.setDeltaSpeed(new Vector2((float)enemySpeed.NextDouble() * -10, 0)); enemyList.addSpriteReuse(enemy); }