Jump to content
  • Advertisement

Dev Blog - Space Defender HD: Enemy Spawning

HunterGaming

628 views

Another milestone is complete. Basic enemy spawning is finished. When the game loads the player will have unlimited time to set up turrets (still a little work to do here) and can then hit the play button to start the game. After that the player can pause and resume or restart the game. This functionality is done and so far I have the game choosing between 2 enemy ships randomly to spawn them. The basic run down of how the game will work is enemy ships can come from anywhere along the edge of the screen. Which screens will depend on the level but will always come from at least 2 edges. The enemies will move towards the players base and once close enough will shoot at the players base damaging it. I have both the movement and firing at the players base completed. Most of the work is done in a base class so its easy to add a new enemy. This is a screenshot of actual game play. I am getting closer to having a playable demo ready.

Game.thumb.png.d052d1e47b3188bc043424166e14097d.png

Below is the main part of the spawn controller I created to manage all the aspects of spawning. It allows me to easily start, pause, resume, and restart spawning capabilities when the game starts or when the player pauses and resumes or restarts the game. At the bottom left is Choose Random Available Enemy which will allow me to choose enemies that have been unlocked.

SpawnController.thumb.png.9f2b760a39ed4f9c584df38e8c9ea085.png

Now that I have this complete my next step is to get the turrets working. The player can already drag and drop them into the level so I just need to implement their functionality. Once this is done I should be able to have a playable demo ready. I'm sure there will be a few bugs that will need to be flushed out as I go but things are going good.

http://www.hunter-gaming.com/
https://www.facebook.com/indiehuntergaming/
https://twitter.com/HunterGamingInd


3 Comments


Recommended Comments

Thanks. I was able to find some good HD assets to use. I've spent more on the UI for this game than my first 2 combined. I can't wait to have a playable demo for people to try it out.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!