I have a procedurally generated map done with an array, 0=filled tile, 1=empty tile
Now I want to generate enemies (yes again enemies) in the empty tiles, wich are the floor
I tried lots of things but cant figure out how to do it
I know how to spawn enemies in every empty tile, filling the hole map, but I just want to create at random locations and a certain number of them
The non-proffesional way to do it is creating N sprites and re-positioning them until they are not overlaping the tilemap, but i want the first solution
I wonder it's by choosing random cells from the array and creating there the sprites, but dont know how
Thanks again!