You figure out obvious things everyday, both in programming and game design and today I've figured out that the way I spawn enemies in room isn't the best. You'll tell me that it's only a line of code, but applied about a thousand times, it adds up!
Here's how I used to spawn single enemy types:
invokeSpawn (new string[]{"kilobyte"},new int[]{2});
I did it that way because sometimes, there are more than one enemy type per room. That being said, what's to prevent me from using:
invokeSpawn ("kilobyte",2);
And overload the invokeSpawn function so I can either give it an array or a single string? It's a small improvement, but learning and working on personal projects is all about small improvements!
Time spent on the project so far: 553 hours
Currently working on: Continuing the story