Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

The game continues to be formed pt3

Sign in to follow this  


OK, so I'm dumb.

Not in a 'duh.. wha?' kinda way but in a 'oh right, I forgot I had that working..' kinda way [grin]

In the entry written not 2h before now I bemoaned the lack of speed from the project and wondered why I could only draw ~20 sprites before things went all slow.

Turns out I'd kinda forgotten I had the enemy spawning system working [grin] This spawns a new ememy ship ever 1.5seconds, however you can fire ever 1.0 seconds.

Sooooooo ~20 seconds in you have;
- 1 player ship
- 20 bullets
- ~14 enemy ships

or 35 sprites being rendered.
Sure, we still arent talking 400fps speed here, but that's a bit better than I was doing.

I figure restrict the enemy ships to ~10 or so (alive and dying), restrict the bullets to 15 player and 5 enemy and it should all work out fine.



Anyways, I've hacked in a little AnimatedActor class which allows the drawing of sprites from a sprite sheet to do things such as explosions etc, gotta see if that works now [grin]
Sign in to follow this  


Recommended Comments

There are no comments to display.

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!