Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (739)
Games in Android Showcase (224)
games submitted by our members
Games in WIP (820)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Game Development / Newbie & Debugging Questions / Re: ArrayList , and HashMap on: 2012-04-11 23:16:24
Thanks! Wished I had asked a lot sooner, spent a few hours figuring this out.
2  Game Development / Newbie & Debugging Questions / ArrayList , and HashMap on: 2012-04-11 23:02:17
I am having this problem that has got me stumped. I have a HashMap holding a map of a list, I then copy the list and put it into an ArrayList variable. However whenever I edit the ArrayList variable the map of the list is also being edited in the HashMap. If someone could help explain this, and how to prevent it from occurring, it would be greatly appreciated!

import java.util.*;

public class HashMapTest{

public static void main(String args[]){
HashMap<String, ArrayList<String>> actors = new HashMap<String, ArrayList<String>>();
ArrayList<String> list = new ArrayList<String>();
ArrayList<String> tempList = new ArrayList<String>();


//Key: First, Map: 1
actors.put("First", tempList);

//List = 1
list = actors.get("First");

//List = 1,2

//List = null



3  Game Development / Newbie & Debugging Questions / Re: Object returning it's Class on: 2012-03-11 01:48:38
Thanks guys! Appreciate the quick help!
4  Game Development / Newbie & Debugging Questions / Object returning it's Class on: 2012-03-11 00:17:31
Is it possible to have the Object return it's Class name? I'm trying to use the .Class name as a key for a hash map and have it store every object under that Class.
I tried Casting the object to Class, but unfortunately that returned an error. Any help would be appreciated!
5  Games Center / WIP games, tools & toy projects / Re: Orbs on: 2012-01-22 00:43:36
Ok, I think it might be the website that is causing the freezing and lag. So here is the .jar file:
6  Games Center / WIP games, tools & toy projects / Re: Orbs on: 2012-01-21 16:03:13
You can try to lower the graphics in the setting to try to reduce lag. I am not sure what's causing the lag in lower end computers, but I will try to fix it. You eject orbs so that you can change the colour of them to the same as the enemy units. When you collide with the enemy and the colours are the same, you will not lose any orbs. Anything that has a size of 25 will grow, but it is always yellow.
7  Games Center / WIP games, tools & toy projects / Re: Rocks 'n' Pits! on: 2012-01-21 04:09:18
Its fun! I found level 3 the most challenging, but this is a good game. One suggestion would be just a Reset button, or maybe make it so that you don't return to the menu every time you fall into the pit. Otherwise I would love to see more levels!
8  Games Center / WIP games, tools & toy projects / Orbs on: 2012-01-21 03:57:43
Hello JGO, I am new to the forums and I am also a fairly new java programmer. I learnt it this year actually any how, for my final project at school I made a game with Greenfoot called Orbs. Orbs is a mixture between an arcade game and a strategy game, try to survive as long as you can to gain the highest score. Even though my project is submitted for marking I would like to continue improving it and making it the best it can be. In the future I would like to incorporate a Co-Op mode into this game, but for now it would be greatly appreciated if you took some time to test it out and tell me what you would like to see changed and/or improved! P.S. had some help from my friends with the high score server code, and graphics.



Link to the game via greenfoot website (This might be laggy):

Link to the .jar file of the game:

Pages: [1]
Ecumene (48 views)
2017-09-30 02:57:34

theagentd (72 views)
2017-09-26 18:23:31

cybrmynd (182 views)
2017-08-02 12:28:51

cybrmynd (180 views)
2017-08-02 12:19:43

cybrmynd (187 views)
2017-08-02 12:18:09

Sralse (193 views)
2017-07-25 17:13:48

Archive (744 views)
2017-04-27 17:45:51

buddyBro (876 views)
2017-04-05 03:38:00

CopyableCougar4 (1423 views)
2017-03-24 15:39:42

theagentd (1316 views)
2017-03-24 15:32:08
List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!