Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 25 Jul 2010
Offline Last Active Jul 03 2016 12:41 PM

Posts I've Made

In Topic: Level coding - voxel based(?)

05 December 2012 - 11:46 AM


What about the array? Is this not a good way to keep track of the grid?

In Topic: Classes calling each other

05 December 2012 - 08:23 AM

Cool Many thanks,

I will admit that A LOT of that collision detection went over my head (as I said I'm learning as I go) . Think I'll do loads more research before I continue design/developing.

Again many thanks!

In Topic: Classes calling each other

05 December 2012 - 07:46 AM

Hang on...

Just remembered that weaponclass actually sets up a linked list of OrdnanceClass objects to handle the individual bullets and the like... However according to my above thoughts they still need to contact the playerclass to check for collisions...

In Topic: Classes calling each other

05 December 2012 - 07:32 AM

Thanks all - forward declarations are obviously whats needed here.

As for WHY weapon needs to contact the player class allow me to explain - I'd be interested in your input on this matter as well.

PlayerClass fires a weapon. Therefore contacts WeaponClass (which handles all bullets, bombs and the like) and create a new bullet to fly across the screen.

Now to check the collision of bullet and player ship I have weaponclass cycle through all the bullets and check their positions against the players ships, hence why weapon class needs to contact playerclass.

But I'm guessing from your above comments that this perhaps might not be the best approach?

@edd, Yes I did include header guards. Will endevour to include more accurate code and error messages next time - thank you for the help :)

In Topic: What's the view of using an engine over writing it all yourself?

17 November 2012 - 04:41 PM

Thank you very much - All of you!

This was exactly what I needed. To be honest I was starting to get a little dissillusioned.

Could I ask though, if you had a hobby team together would you take a n00b on? What would you like to see in someone asking to join your team?