Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (552)
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 / Problem reading chars 128-159 on: 2007-04-11 01:56:58
Hoping this is will be a simple problem  Wink

Using BufferedReader.read() to read a file char by char, I came across a problem when reading the characters 128-159

Here's an image of what I mean:
http://i14.photobucket.com/albums/a326/kidluff/Clipboard02.png

I found out that 128-159 have something to do with the Win32-system-thing, is there a way to fix this?
2  Game Development / Newbie & Debugging Questions / Re: Problem with arrays.. o.O on: 2006-06-02 19:41:11
Oops, I meant to put:
1  
int i[]={1,2,3};

1  
2  
int i[];
i={1,2,3};


but yeah you answered my question, thanks  Grin
3  Game Development / Newbie & Debugging Questions / Problem with arrays.. o.O on: 2006-06-02 07:25:39
How come this will work:
1  
int i={1,2,3};


..but this will not  Huh:
1  
2  
int i;
i={1,2,3};


How can I make the second one work O_o?
4  Game Development / Newbie & Debugging Questions / Re: JAR file image reading problem on: 2006-05-19 06:46:21
Thats awesome  Grin

Thanks bunches.
5  Game Development / Newbie & Debugging Questions / JAR file image reading problem on: 2006-05-19 04:50:28
I have all my classes and images packed into a .jar file. But when I run the program, the images won't show...  Huh

How can I solve this  Sad

Thanks
6  Game Development / Newbie & Debugging Questions / Re: Getting IP Address on: 2006-04-14 02:15:25
How come InetAdress.getHostAdress() is giving me "0.0.0.0"  Cry?

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
Serversocket listener;

public void open(int port){
    try {
        listener = new ServerSocket(port);
        System.out.println(listener.getInetAddress().getHostAddress());
    }
    catch (IOException e){
    }
}
7  Game Development / Newbie & Debugging Questions / Getting IP Address on: 2006-04-13 03:31:41
Is there a function that returns the IP Adress?
8  Game Development / Newbie & Debugging Questions / Re: Robot mouseMove helppp (IllegalThreadStateException) on: 2006-01-20 18:15:39
Then how can I queue the next action following Robot.mouseMove()? Like after the mouseMove thread is finished?
9  Game Development / Newbie & Debugging Questions / Re: Robot mouseMove helppp (IllegalThreadStateException) on: 2006-01-20 14:50:51
You can't wait for idle from the EDT. Because it waits for the EDT to idle.

I dont get it  Cry
10  Game Development / Newbie & Debugging Questions / Vector math question on: 2006-01-20 11:08:57
Since its hard to describe, so I drew it out:



Can someone help me code this pleease?
11  Game Development / Newbie & Debugging Questions / Robot mouseMove helppp (IllegalThreadStateException) on: 2006-01-20 10:35:38
When I set my Robot to "setAutoWaitForIdle(true)" (so it cues the next event after the Robot stops), I get an "IllegalThreadStateException"..

What's wrong  Huh


   Robot mouseBot;
   boolean RobotMove=true;
   
   public void startMouseRobot(){
      try{mouseBot=new Robot();}
      catch(Exception e){}
      mouseBot.setAutoWaitForIdle(true);
      }

   public void robotResetMouse(){
      //set RobotMove to true
      //move cursor
      //set RobotMove to false
      RobotMove=true;
      mouseBot.mouseMove(screenSize.width/2, screenSize.height/2);
      RobotMove=false;
      }


(Im using the boolean RobotMove to determine the difference between a user mouse move and a robot mouse move. Is there another way to do this?)
12  Game Development / Newbie & Debugging Questions / Steps to texture map? on: 2006-01-17 15:09:44
Ive read alot of stuff all decribing texture map in different ways..

Can someone outline the steps for texture mapping in simpler means?
13  Game Development / Newbie & Debugging Questions / Re: Finding all the pixels enclosed by a polygon? on: 2006-01-13 15:24:40
I was doing a bit of texture map but I needed to know which pixels in the polygon I was working with.

I think I should try the scan converting like Bruno mentioned.
14  Game Development / Newbie & Debugging Questions / Re: Finding all the pixels enclosed by a polygon? on: 2006-01-13 09:49:41
Hmm.. I need the exact co-ordinates so counting wouldnt work.

The Polygon.contains(x,y) method seems reliable but I would still need to know the pixel cordinates that bound the polygon (the edges).

I was looking up scan-converting... can someone help me out with that? Huh
15  Game Development / Newbie & Debugging Questions / Finding all the pixels enclosed by a polygon? on: 2006-01-13 09:17:19
How can I find all the pixels enclosed by a 2D polygon (when given the points of the polygon)?
16  Game Development / Newbie & Debugging Questions / Re: Image to Array of colors on: 2006-01-13 09:08:24
Wow thank you so much you guys are the greatest  Grin
17  Game Development / Newbie & Debugging Questions / Re: Image to Array of colors on: 2006-01-12 11:49:20
1  
2  
3  
// although ImageIO.read pretends to returns an Image, in practice this is always a BufferedImage, so you can
// cast it to BufferedImage if you like...
Image image = ImageIO.read(new File("myFile.tga"));

Check the javadocs Smiley

ImageIO returns a BufferedImage, not an Image. It's not even pretending Smiley

BufferedImage image = ImageIO.read(new File("pic.jpg"));
That works, but it only takes JPG and GIF files... is there something else to load TGA/BMP files?

Annd how do you convert RGB vaules back into the single RGB int (so the reverse)?
18  Game Development / Newbie & Debugging Questions / Re: Image to Array of colors on: 2006-01-12 10:14:59
Cool thanks =P
19  Game Development / Newbie & Debugging Questions / Re: Image to Array of colors on: 2006-01-12 08:20:22
Oh how do I load an image from disk (such as TGA) onto a BufferedImage?

And how do I convert the int given by BufferedImage.getRGB(x,y,) to the RGB values?
20  Game Development / Newbie & Debugging Questions / Image to Array of colors on: 2006-01-11 17:51:17
How can I convert an image to an array of Colors (by pixels)?
21  Game Development / Newbie & Debugging Questions / Re: Reset cursor position on: 2006-01-10 16:46:47
Haha perfect thanks  Wink
22  Game Development / Newbie & Debugging Questions / Reset cursor position on: 2006-01-09 17:37:43
How can I set the position of the cursor?
23  Game Development / Newbie & Debugging Questions / How do you hide move cursor in Frame? on: 2005-10-15 05:48:53
Is there a way to hide the mouse cursor when it enters the frame?
24  Game Development / Newbie & Debugging Questions / Re: Recalling a class with paint method error on: 2005-10-15 04:45:19
Heres my program:
http://www.freewebs.com/kidluff/Hangman.zip

Run the batch file,
Click on START (Leads you to input screen),
But when you click on "Back to Menu", It gives the error.
25  Game Development / Newbie & Debugging Questions / Recalling a class with paint method error on: 2005-10-14 18:55:03
Rawr~ Im new at this, but Ill get straight to the point,

I started with a main class, it contained a paint method,
then I called upon another class, which didnt have a paint method,
but then when I use this class to recall my main class, it crashes.

A flow of errors like these apear in the command prompt:
"sun.java2d.pipe.DrawImage.copyImage<Unkown Source>"

Arr... I would upload it if someone can find me a free web hoster <,<
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.

CopyableCougar4 (23 views)
2014-08-22 19:31:30

atombrot (34 views)
2014-08-19 09:29:53

Tekkerue (30 views)
2014-08-16 06:45:27

Tekkerue (28 views)
2014-08-16 06:22:17

Tekkerue (18 views)
2014-08-16 06:20:21

Tekkerue (27 views)
2014-08-16 06:12:11

Rayexar (65 views)
2014-08-11 02:49:23

BurntPizza (41 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (41 views)
2014-08-06 19:49:38
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!