Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 24 Jul 2012
Offline Last Active Sep 19 2012 06:55 PM

Topics I've Started

Remove Element From an Array

15 September 2012 - 06:01 PM

I'm trying to figure out how I can remove an element from a normal array (not ArrayList) in Java. I tried by just setting the array at the particular index to null, but that's apparently not what he wanted.

My only other guess is maybe try to create a new array, use arraycopy from starting at 0 until one less than the element being removed, and then then copying the same array from one element after the one being used to the end of the array you just created.

Then reference the old array to the new array and end the method.

Any thoughts?

Abstract Data Type in Java

11 September 2012 - 10:26 PM

I was given a quiz on what an ADT was:

I wrote that it was a group of similar data types in a class together that performed a series of Mutations and accessing methods. it also makes the data processes hidden from a programmer that may just use the accessor and mutator methods to achieve what is needed with the driver.

I was given a D- and told I was way off.

Can someone help me figure out where I went wrong? Everything I look up seems similar to tha and some sites even just claim its a class with private variables.

Any help would be appreciated.

Creating a Character Class in XNA C#

05 September 2012 - 05:39 PM

I'm trying to fix the problem of just having a bunch of spaghetti code in my game class. I'm trying to use OOP design for the first time in XNA.

I'm not sure if I'm supposed to create an entire game loop for the character class, or if I'm only supposed to have that in the Game class.

For example, I was trying to load sprites within the character class itself in it's own LoadContent method. Am I not supposed to do that?

I fully understand OOP, I can implement everything I want in JAVA, but I'm not sure how I'm supposed to do in within the XNA framework with C#.

I tried to just create a "mainLoadContent" method and assign the Texture2D variables to the images with the Content class, and even though it worked in the game class, it wouldn't work in the Character class.

If you could point me to some example source code or provide me with a basic explanation that can help with this issue I would appreciate it.

What to do after 2D XNA?

31 August 2012 - 10:21 AM

I've made pong, and I am currently working on a top down hack and slash in XNA using sprites.

I am a junior/senior studying computer science if that helps gauge a skill level or overall understanding of processes.

From here should I go into Unity, or should I try to do 3D in XNA, or move into C++ and DirectX (that is the final goal)

I'd like any pros and cons of each decision and what you recommend. I still have. Year or so before
I hit an employment market so I can continue to develop my skills an not "skip" any steps.

Updated List of free 3D Models?

27 August 2012 - 01:48 PM

I've checked out a few sites from a google search but most seem to offer a few free models as a means to look at their pay content.

The sticky in this forum seems to include out of date 2D resources.

Could everyone list a few of their favorite sites?

Just as a question, are there fully rigged and animated models available somewhere as well?

I'm trying to worry more about the programming aspect, and less about the art and animation aspect.