Jump to content

  • Log In with Google      Sign In   
  • Create Account

Nils 762

Member Since 09 Sep 2013
Offline Last Active Nov 28 2013 12:27 AM

Topics I've Started

2D Java game-deleting NPC's from an array

27 November 2013 - 11:56 AM

I'm currently working on a 2D java game. I'm saving each active NPC(each NPC has a class file, extedning an abstract NPC class) from the game in a list(array) and itterating it to display the NPC using one of it's methods. The problem that I've run into is that I can't find a way to delete the NPC from the list when it's HP level is <= 0. I'm sure there is probably a really simple way to do this that someone more experienced would be aware of.  


PS. This is my first 2D game XD

Java2DGame rendering NPC's

24 November 2013 - 07:04 PM

Hey everyone, I'm working on a 2D java game at the moment and have a graphics object created in my start class. I want to be able to draw my NPC's from their own threads(seperate class) but can't load the g.drawImage class from a different class. Any suggestions on how I can transfer the graphics object to the NPC threads? Thanks in advance!

Running text-based java game on other computers?

07 October 2013 - 06:02 PM

I've spent the last few months developing a Text-Based Java game and recently completed it. I've compiled all the .java files into .class files and have been able to run it using command prompt. The problem is that other people on their computers cannot run it on their command prompt. I think because they don't have java JDK. So my question is how would I go about compiling my game so that other people can play it easily? Prefferably through a desktop Icon?

Best method to learn Java?

09 September 2013 - 10:50 PM

Hey guys,


I'm new to GameDev, and programming, and have decided to make the first language I learn Java.

So far I've been watching TheNewBoston's tutorials. I've managed to learn a bit about variables, classes, methods, switches, etc. but for some reason am now having trouble understanding new material. :/ What do you think is the absolute best method for learning Java? Especially for designing games(3D).