Fix spawn heights and debug menu enemy spawning
This commit is contained in:
@@ -61,7 +61,7 @@ public partial class PauseDebugMenu : Control, IDebugMenu
|
||||
_enemyFilePath + "/09. Agni/AgniDemon.tscn",
|
||||
_enemyFilePath + "/9b. Aqueos Demon/AqueosDemon.tscn",
|
||||
_enemyFilePath + "/11. Palan/Palan.tscn",
|
||||
_enemyFilePath + "/12. Shield of Heaven/ShieldModelView.tscn",
|
||||
_enemyFilePath + "/12. Shield of Heaven/ShieldOfHeaven.tscn",
|
||||
_enemyFilePath + "/13. gold sproingy/GoldSproingy.tscn"
|
||||
];
|
||||
|
||||
@@ -105,7 +105,7 @@ public partial class PauseDebugMenu : Control, IDebugMenu
|
||||
var enemyToSpawn = _spawnableEnemies.ElementAt((int)index);
|
||||
var loadedEnemy = GD.Load<PackedScene>(enemyToSpawn).Instantiate<Enemy>();
|
||||
_game.AddChild(loadedEnemy);
|
||||
loadedEnemy.GlobalPosition = new Vector3(_player.GlobalPosition.X, _player.GlobalPosition.Y + 1, _player.GlobalPosition.Z) + (-_player.GlobalBasis.Z * 2);
|
||||
loadedEnemy.GlobalPosition = new Vector3(_player.GlobalPosition.X, 0, _player.GlobalPosition.Z) + (-_player.GlobalBasis.Z * 2);
|
||||
}
|
||||
|
||||
private void SpawnItemDropDown_ItemSelected(long index)
|
||||
|
||||
Reference in New Issue
Block a user