Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
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: Game programming direction on: 2005-10-31 14:05:03
Yes, start with Java2D first. Eventhough you will get sick of it eventually, it'll be a great help to learning game programming with a graphical representation of whats going on.
2  Game Development / Newbie & Debugging Questions / Re: How to display a sprite in a Java application? on: 2005-10-31 14:01:07
Whats the difference between using imageicons and bufferedimages?
3  Java Game APIs & Engines / Java 3D / Re: noob question PLZ HELP! on: 2005-10-27 03:11:47
And this is DEFINITELY in the wrong place.

JOGL or LWJGL topics (depending on which binding yo uare using) woudl have been closer.

Newless CLubies would probably have been dead on.

How is it in the wrong place? I've only seen stuff like 1.0f in 3D code, which is what this board is for, right?
4  Java Game APIs & Engines / Java 3D / noob question PLZ HELP! on: 2005-10-25 17:51:56
I have no experience with 3D code, so I've been looking at some basic tutorials, and have found something that noone seems to explain...

GL11.glRotatef(angle, 0, 0, [size=12pt]1.0f[/size]);

what does the "f" mean?
5  Java Game APIs & Engines / Java 2D / Re: Serialized BufferedImage on: 2005-05-25 03:43:32
Well, the reason I wanted it serialized was to avoid having to use imageio everytime I load stuff. eg. for tiles I want to store the image in the tile object along with all it's properties....
6  Java Game APIs & Engines / Java 2D / Serialized BufferedImage on: 2005-05-25 00:22:39
Is it possible to create a serialized BufferedImage? If so, how?

The application for this is to store an image using ObjectOutputStream.

Shocked Shocked Shocked
7  Java Game APIs & Engines / Java 2D / Re: Opening an image with JFileChooser on: 2005-05-24 01:45:45
works. thx m8
8  Java Game APIs & Engines / Java 2D / Opening an image with JFileChooser on: 2005-05-23 07:02:00
Ok, I'll be honest here. I have NO IDEA what the deal is with urls and image input and why they never seem to work me. And when it does, it never lasts long.

Anyway, I need help in getting bufferedimage to load properly by selecting an image file with JFileChooser.

I have no working code. I have no code that even resembles working code. Please help a dying programmer ;_;
9  Java Game APIs & Engines / Java 2D / Re: Image Resizing on: 2005-04-30 06:02:50
It works! Thanks a zillion ^_______^
10  Java Game APIs & Engines / Java 2D / Re: Image Resizing on: 2005-04-30 04:42:09
public BufferedImage resizeImage(BufferedImage bi, int width, int height)
        JFrame f = new JFrame();
        Image bi_i = bi.getScaledInstance(width, height, bi.SCALE_SMOOTH);
        BufferedImage bi2 = (BufferedImage)f.createImage(bi_i.getWidth(f),bi_i.getHeight(f));
        Graphics2D g = bi2.createGraphics();
        g.drawImage(bi_i, 0, 0, null);
        return bi2;
11  Java Game APIs & Engines / Java 2D / Re: Image Resizing on: 2005-04-30 01:50:41
I get a NullPointerException in:

Graphics2D g = bi2.createGraphics();

12  Java Game APIs & Engines / Java 2D / Image Resizing on: 2005-04-29 22:49:36
Is there an easy way to resize a BufferedImage, and have it stay a BufferedImage in the end? getScaledInstance() gets me a casting exception. Please help!
13  Game Development / Newbie & Debugging Questions / Re: prime number decomposition (math) on: 2005-04-11 14:16:43


That's the one exception T_T
14  Game Development / Newbie & Debugging Questions / Re: prime number decomposition (math) on: 2005-04-08 18:32:16
couple of things you should know...

- all primes end with either 1,3,7 or 9
- the last digit is evenly distibuted. I tried it with 100000 primes, and all last digits occured 25000 +- 5 times.
15  Game Development / Newbie & Debugging Questions / Re: prime number decomposition (math) on: 2005-04-06 13:05:22
To find out if a number is a prime number you devide it by every integer starting from 2 up to the square root of the nuber you're analyzing. Of course, the program will run a little faster is you skip as many integers as possible (like storing previously found primes in an arraylist and only deviding by those instead of every integer).

in it's simplest form:

if (number % dividebythisnumber == 0)
    // number is a prime.
16  Game Development / Newbie & Debugging Questions / Re: Am I VERY new to the world of Java, so plz hel on: 2005-04-05 15:30:26
imo, you should get to the point where you know the following before making games:

- arrays and loops
- timers
- keylisteners or mouselisteners (depends what you wanna do)

and most importantly:

- how paintComponent() and repaint() are used
- random numbers!

If you know all that you're ready.
After that (some of this stuff I haven't even touched yet):

- midi playback
- polymorphism
- directx/opengl
- fullscreen mode
- more complicated stuff...

Biggest thing to watch out for is to not use magic numbers Cheesy
17  Game Development / Newbie & Debugging Questions / Isometric Games? on: 2005-03-31 18:04:19
Pardon the noobish nature of this thread, but...

Where can I find information on isometric game development? I don't even know where to get started on it!

That said, I've never made a true scrolling game before (one I'm working on right now just uses objects moving downward to create a sense of motion). Should I try a "normal" tile based game first? Help!
18  Game Development / Newbie & Debugging Questions / Re: HELP, how to start do a JAVA GAME on: 2005-01-14 23:27:06
The easiest game to do is "Guess the number", and call it a text based adventure. Wink
19  Game Development / Newbie & Debugging Questions / Yet another image loading problem thread on: 2005-01-14 17:47:13
Please help me Grin

Here's the code in question:
public BufferedImage loadImage(String name)  
        URL url = getClass().getClassLoader().getResource(name);      
        catch (Exception e)
              System.out.println("Cannot load image " + name +" from "+url);
              System.out.println("The error was : "+e.getClass().getName()+" "+e.getMessage());
              return null;
public void draw(Graphics2D g)
        BufferedImage bi = loadImage("hero.bmp");

When I run it... the getClass().getClassLoader().getResource(name); method returns null, eventhogh hero.bmp is in the same folder. How do I fix that?

EDIT: Nevermind, I fixed it by changing



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.

pw (37 views)
2014-07-24 01:59:36

Riven (38 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (50 views)
2014-07-17 23:47:54

danieldean (42 views)
2014-07-17 23:41:23

MustardPeter (44 views)
2014-07-16 23:30:00

Cero (60 views)
2014-07-16 00:42:17

Riven (57 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22 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!