For the texture, I quickly done one up on Photoshop.
Its just rough and temporary. (Hopefully Lynch can improve it a good bit!)
After giving the texture a position and drawing it to the screen, it was just a matter of specifying the spawn rate. I used the 'TimeSpan' keyword and set the spawn rate to two seconds. Then the spawn timer is set to zero initially. By now, I had created a list to hold any enemies that were being created. So every two seconds an enemy is created at the specified spawn point and added to the list.
Thats about all that was needed for the spawning, initially anyway. Further down the line I expect that the spawner will be placed just as the rest of the items on the maps are.
No comments:
Post a Comment