Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

LordRhys

Member Since 19 Oct 2005
Offline Last Active May 17 2013 01:20 PM
-----

Posts I've Made

In Topic: Microsoft burned down my home, where now?

01 May 2013 - 05:21 AM

There are rumors already that MS has a new version of a managed Direct X language that will coincide with the release of the new XBOX version

In Topic: C++ - freeing dynamic memory

26 April 2013 - 09:10 AM

Another example:
int* ptr1=NULL, ptr2=NULL, ptr3=NULL, ptr4=NULL;
ptr1=new int;
ptr2=ptr1;
ptr3=ptr2;
ptr4=ptr3;
delete ptr4;


Am I freeing ptr1-3, when freeing ptr4?



From what I read in C++ Primer Plus this wouldn't work since ptr2,ptr3, and ptr4 are not considered pointers but ordinary int variables, the statement would have to be:
int* ptr1 = NULL, *ptr2 = NULL, *ptr3 = Null, etc...

In Topic: xna random number in 2d

26 April 2013 - 08:37 AM

why are you trying to create a bounding box within the method that your creating a new random object? Your object class should already be able to create a bounding box for itself using the vector location that you provide for it. If you use the code code above provided by Andy474 and pass that into your call for a 'New Object' it should have it's bounding box otherwise the question your asking is not what your looking for.

In Topic: Calculating RPG Loot Drop Chance?

15 April 2013 - 07:07 AM

Check out this article, I think it will provide exactly what your looking for, it basically describes how most commercial MMO's implement random loot tables. http://www.codeproject.com/Articles/420046/Loot-Tables-Random-Maps-and-Monsters-Part-I

In Topic: Have an idea for board game but don't know to implement it. Need help!

15 April 2013 - 06:55 AM

If your dead set on the c family, you may want to look at Monogame, it's based in C# and you can port that to iOS or Android with their development kits. Although, I would really look into HTML5 and Javascript as thats the upcoming mobile platforms.

PARTNERS