Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (521)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
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: Seperate files and methods on: 2004-08-01 05:18:36
Thanks, I actually wound up stumbling across the answer after I realised I'd used other stuff from that class by just using classname.resource

Btw:  Any question I ask is a last resort, I've read through the java tutorial, googled the error messages and have finally come here.

Roll Eyes
2  Game Development / Newbie & Debugging Questions / Seperate files and methods on: 2004-08-01 00:41:41
'lo All.

Excuse the stupidity (I have a feeling I'll be saying that in this forum a fair bit) but:

If classes foo and bar in files foo.java and bar.java exist, and the main method is in foo.java in the foo.class, how can I call a method in bar?

I can call myBar = new bar from the main method in foo to create a new instance of a class, but for syntax clarity I'd like to move some of the methods from my ever growing program into other files.  I just get cannot resolve symbol.

Regards.

E
3  Game Development / Newbie & Debugging Questions / Re: Urgh.  Why doesn't "=" work. &n on: 2004-07-28 03:48:57
O_O

A straight, intelligible, non-condescending answer in a web forum which answered specifically my question.

Woah.


Thankyou so much, I'm gonna stick around here.
4  Game Development / Newbie & Debugging Questions / Re: Socket and/or Multi-player Card Game Tutorials on: 2004-07-28 02:37:14
The socket tutorial at java.sun.com is the bomb, but try doing a google search on java socket programming or chat server java for more supporting detail.  The sun tutorial goes from the very simple one client one server to getting involved with some knock knock game garbage without paying much attention to what people probably want to know inbetween.

Good luck :-)
5  Game Development / Newbie & Debugging Questions / Urgh.  Why doesn't "=" work.   on: 2004-07-28 02:32:24
Ok, classic n00b question:

The following snippet of code is from a socket based text game (yeah, yeah, ANOTHER mud...) I can't make the server understand the input from the user.  I can replace the entire if statement with out.println(Command) and it will echo whatever you type to it, but if you try to perform an operation on the Command (compare it to say "q", quitting if it matches) it simply ignores the input.  What am I doing wrong?

 while((Command = in.readLine()) != null){
                
          if(Command == "q"){
          do something
          };
       
                
                }
       

Regards,  Huh
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xFryIx (60 views)
2014-11-13 12:34:49

digdugdiggy (39 views)
2014-11-12 21:11:50

digdugdiggy (32 views)
2014-11-12 21:10:15

digdugdiggy (28 views)
2014-11-12 21:09:33

kovacsa (50 views)
2014-11-07 19:57:14

TehJavaDev (54 views)
2014-11-03 22:04:50

BurntPizza (53 views)
2014-11-03 18:54:52

moogie (68 views)
2014-11-03 06:22:04

CopyableCougar4 (67 views)
2014-11-01 23:36:41

DarkCart (153 views)
2014-11-01 14:51:03
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org 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‑gaming.org
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!