Recent update: 2008-5-9

How do I import a .gif?

963 byte By threebrain at 2008-1-7
Hi! :-)I'm just learning :-OI figure I'm going to learn java better by making a fun game! So, i'm going to do it all in baby steps.My first question, is how do I import a .gif file and give it a variable or class value? Like with a JOPtionpane, whatever comes in from the users input gets a ...

can a serious 3d game be made entirely in Java?

189 byte By DaShiznit at 2008-1-6
if so, what would be the minimum specs of the development computer and would i use an applet? if i was designing the game with a console in mind, what would be the best route?

Odd Draw Behavior - Slow Ellipse2D Draw

1031 byte By botissuesa at 2007-11-15
Summary:A game I have written uses bitmaps and lots of Ellipse2Ds. The Ellipses are in the background and occasionally need to all be redrawn (there could be many - let's say 100 at a time). This works fine on a Windows box, and Macs from G3 - current Intels. When I attempt to run the ...

Java Game Development - Java ME - RPG Game Stages

493 byte By Jasonca at 2007-11-14
I have a simple RPG games where player attack enemies and collect points. I need to design a few stages for this game (basically, my concept of different stages is just changing the maps of the game.) but i have no idea how the games stages works? Do I ned to create new classes to represent ...

java script memory game

11105 byte By 05023246a at 2007-9-25
hey, im new at this java script lark and am trying to add a timer to a memory game in order to present a list of high scores complete with their time. Below is my code, any help would be appreciated. Thanks x<html><BODY bgcolor="#FFFFFF"></BODY><TITLE>Might Boosh Card ...

drawing image on frame..

273 byte By abhaykumara at 2007-9-25
hi frens..Is there way of drawing an image on Frame without erasing previous image. Each time the repaint() is called for drawing new image on frame using Graphics object, repaint() just clears the previous images , but i want previous image to be sustained .

Poker Game

317 byte By ox_ten_wingsa at 2007-9-24
This is the rule of the game :The player is dealt two cards, the 'hole'. Five 'community' cards are then dealt. The player hand is then the best possible five card hand that can be made with the two hole cards and the five community cards. Is anyone here have the scripts ?please help ...

USB for java?

166 byte By fet_loaa at 2007-9-24
Hi!I would like to use an USB handcontroll in a game i plan on making. Is that possible in standard Java? If not, how do i do it?regards, fet_loa

Window with high resolution

94 byte By Corvinexa at 2007-9-24
Is there a way to make a 800x600 window with 640x480 resolution?Not full screen.

Animation smoothness question

462 byte By Thargana at 2007-9-24
I have a blue square, I want to move it right by increasing its X-coardinate by a value Speed pixels.like this:X = X+SpeedThe problem is if I want to have a high speed like 10 pixels the square appears to jump to the right. It doesn't move smoothly.if I use a low speed like 1 pixel the square ...

"Block Dude" Game

365 byte By mikekomoa at 2007-9-24
Hey everyone. A few months ago I finished my first really big java game project, titled Block Dude after the calculator game. Here's the jar, any critiques/comments are more than welcome. Sorry for the shortness of any kind of level or user-friendly menu or scoring system, I haven't coded any ...

direct access to display

275 byte By vixua at 2007-9-23
Hi all.I have a question.Is there a way to have a direct access to pixels on the computer display without the tremendouse lag of Graphics, observers and other lame complexities of Java. To have a memory mapped display access, perhaps.Thanx.

the best way to do 2D animation in game

655 byte By adeanoma at 2007-9-23
i just want to know what is the best and usually taken method to draw an animation in a game.right now, i'm using a stripes of images with a transparent background to do an animation. i wonder, can we just using animated gif in java?and, usually on the game made with C++ i found that the ...

Game Loop - FPS Low

5681 byte By DeltaCodera at 2007-9-23
I am averaging only 12 FPS. There is no state update or rendering. What is wrong, what can be improved? (Using J2SE 1.3.1)import java.awt.*;import java.awt.event.*;import java.awt.image.*;import java.lang.*;import javax.swing.*;import javax.swing.event.*;public class MyGameFrame extends JFrame ...

method calls or direct access to variables

1239 byte By Amarinoa at 2007-9-23
Hi all,how much of an overhead in terms of speed and effciency (in terms of cpu time) is it to call a method from the same class to do something as opposed to defining what you have to do again in your other method...basically which is better and/or faster out of the following two ...

IllegalStateException being thrown every time by timer.schedule.

538 byte By shadow_phoenix_Ga at 2007-9-23
Any ideas on this ?try{timer.schedule(new RemindTask(), 1000,2000000000 );}catch(IllegalStateException e){timer.cancel();JOptionPane.showMessageDialog(this,"You lost. It ...

Java 5.0 Major Sounds Problems

1214 byte By ansassa at 2007-9-23
Hi,I'm making a game and I had 30 or so small sounds that would play. I was using AudioClips and everything worked fine. Then I upgraded to java 5.0 because I wanted to use the System.nanoTime() function. Anyways everything else works fine but now I am having major problems with sounds. I have ...

Anti-Aliasing error?

1813 byte By Sentient-Absencea at 2007-9-23
Just to see what it would look like, I put a few, quick, simple anti-aliasing lines of code to my game...//Class for screen management...public final static RenderingHints antiAliasing = new RenderingHints(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);[...]//Class that ...

Which is the best .3ds model loader in java

112 byte By mgbawa at 2007-9-22
Dear All,could any one give me is the best .3ds model loader in java and the links to download it.

framerate oddities

1157 byte By hdctambien at 2007-9-22
My game uses a JFrame with a JPanel in it.In my game loop I pretty much do three things: I update the game state, I get input from the user (non-blocking), and I draw the game state to the Graphics object of the JPanel (using double buffering buffer strategy)Everything works fine. On my AMD ...

multiplay online-game problem?

464 byte By perfectlifepan at 2007-9-22
I have developed a simple multiplay online system with urlConnection,but when more than 3 ppl send message to servlet,some messages cant be boardcasted.Actually,I want to develop a multiplay system which can cope with over 100 ppl(like yahoo multiplay system).Well,I want to know how to develop ...

I'm a Newby

432 byte By davieb333 at 2007-9-22
Hi, i am brand new to computer programming, i know a little bit of html and i am into 3d graphic design. But i have been trying to make a game and i am really dedicated to making it work. But i have NO experience at all with java or java programming. I have a great idea of how i want it.Can ...

Getting area from Image

472 byte By namnet at 2007-9-22
In my game I use png's to represent my objects. Now I want to get the area of the opaque part of the image.I don't want to use the whole image as a bounding box since it contains lots of transparent pixels in it.public Area getOpaqueArea(Image src) {// Insert your code here please :)} Thanks ...

GAME Help

4657 byte By Master_Kwesi at 2007-9-22
-- YO peeps, i'm really Stuck and i'm a just started with this. my program.. i cant seem to get it working they way i want but i'll give you the over all idea. feel free to make any changes its a game. there should be a keypad numerbs 0 - 9, if there user cilcks a number e.g 4 . then the ...

Swing components

103 byte By deanKiely at 2007-9-22
Can swing components be correctly serialized/deserialized does anybody know?Thanks

Just another Tetris Implementation

573 byte By Mganza at 2007-9-21
Again.... a tetris clone http://dagaenzele.tripod.com/files/tetris.zipDownload the zip-file, extract it and start the jar-file with "java -jar tetris.jar"I only tested it on win2k and winxp. There might be a problem locating the images since i haven't fully implemented my "ressource-locator ...

New game, need feedback

667 byte By Malohkana at 2007-9-21
www.GameLizard.comclick Games and find "RPG". This is the first working stage I have of the game. So far all that can be done is the buying of stuff in the shops, workings at the hotel, and fighting in the arena. Now I need help weeding out bugs that can already be found and advice for future ...

Using Threads

332 byte By avalanche333a at 2007-9-21
I'm working on an astoids/space invadors type game, I have a class for the astroids, bullets, and ship, and the main game class witch incorporates everything. I know how to get eveything working now, but I don't really get the whole idea of using threads. Where would I put Threads to make ...

Why is full screen mode so slow?

465 byte By KarateMarca at 2007-9-21
I just tested a very early fighting game I was mucking about with a few months ago in windowed mode for the first time, flat out (without a thread sleep in the gameloop) I was getting around 500fps, whereas when I run the same game in full screen mode I'm getting about 120fps?So why is there ...

Running a smoot and constant frame rate?

384 byte By digiwired1a at 2007-9-21
Hi,Can someone please show me a way in which I can maintain a constant fram rate, cause the only use of:try { Thread.sleep(snooze);}catch (InterruptedException ex) { // do nothing}is a bit bumpy, i.e. the frame rate increases and decreases as it wishesIs there a better way, perhaps using a ...

Bit-Shifting vs. Math Ops

1665 byte By Dr-Matrixa at 2007-9-21
I have always been under the impression that doing a bit shift is faster than I have always been under the impression that doing a bit shift is faster than performing the equivalent math operation when the math involves multiplying or dividing by a positive power of two. For instance, ...

Coding in 1.3

220 byte By Vojnik_Srecea at 2007-9-21
ok, 1 question:is it better if i code some new games that im about to make in version 1.3 so that "normal" people on the net dont have to download java jre?i *think* that microsofts vm runs java 1.3?

What is active rendering? Any examples

137 byte By luisofta at 2007-9-21
Hi,Reading some answers of the forum I faced with the term "active rendereing". What it means? Some examples?Thanks,

Converting Isometric Coords to 2D (and vice versa)

357 byte By Stevo_16385a at 2007-9-21
I've got a client/server game, and the server uses 2D co-ords, but I want the client to show the graphics in isometric form. This involves converting to isometric (for when displaying graphics) and from isometric (for when interpreting where the user has clicked. I'm sure its pretty easy, but ...

how to write subclass of game.layer in MIDP2.0

171 byte By Jcyouia at 2007-9-21
i found it's too difficult , someone help me?i wrote code and implemeted a paint() method ,but some problem occured on constructor Layer().thx

"paintImmediately null graphics" error

504 byte By josh_harveya at 2007-9-21
We are removing a panel that has an image and adding a new panel that has an image, and usually everything works fine. In fact, always everything works fine. Occasionally, however, we get an error message (even though we get the desired effect): "paintImmediately null graphics". This makes us ...

A J2ME and MIDP 2 question

508 byte By andy0482a at 2007-9-20
2 Questions1. If I have a sprite on a layer but the layer manager is only showing a part of the layer and the sprite is not on that part of the screen are any resources being taken up by the sprite? If so what would be a good way to manage sprites (in this case enemies) that have a ...

Canvas vs JPanel. What齭 better ?

255 byte By ticdda at 2007-9-20
Hi people!I齧 new in java programing and game development. I always use canvas for drawing but all example codes I saw use the JPanel. What齭 better , why ?Thanks in advance.Tiago de Souzaticddticdd@yahoo.com

Help Plz:(

1266 byte By shah_saeena at 2007-9-20
hi thrim doing my final year project and im making a game for it..its a swing based game, i have used labels as the pieces and to change thr position im using setLocation() mthod. All this is working fine. I have to provide its implementation on LAN. A few problems im facing are:1. When the ...

How to draw a figure with rectangles

419 byte By fs88a at 2007-9-20
Hi folks, I've got a serious(for me) problem. I have to create figures like tetris figures with rectangles. From another class I get relative coordinates like int[] i= {{0,0}{1,0}{2,0}} etc. At each of these coordinates should an instance from my class rectangle show up so I got a figure.My ...

Making some basic Java games

135 byte By Louiegpka at 2007-9-20
Can anyone help on how to make some basic java games for my website if you could that would be helpfulthanks,Louie

suggestions for a tile based game

683 byte By Jen_Ya at 2007-9-20
I'm making a Battle City - like game and I've already finished the map for the game. I'd like to ask for suggestions regarding how I could easily determine whether my tank is going to hit a brick or not.I have an array of integers corresponding to the blocks (0 for spaces, 1 for bricks, ...

Problems with crashing...

696 byte By Ganona at 2007-9-20
I've been writing several simple games and towards the end of development when the games get very close to the finishing point, they crash on me.When I say crash, it spits out a full blue screen full of text for half a second and then spontaneously restarts the computer. I never get a chance ...

2 person online tank game - how do i deal with lag?

1101 byte By outawatera at 2007-9-20
i'm working on a game called dodgebotz with little tanks throwing bouncing balls at each other in a four walled arena. the server is very simple and only relays a SpriteData object between the two clients.the clients receive and transmit SpriteData objects which contains velocity, position, ...

Problem Creating CoolStars(mooving stars)?

2378 byte By gomes_deba at 2007-9-20
Hi,i want to create a class whichwill have the effect of moving stars,similer to that of the Windows ScreenSaver(Moving Stars) but i am having a NullpointerException. The codes is as follows.import java.awt.*;import java.applet.*;import java.awt.Graphics;public class CoolStars extends Component ...

animation tiles

1207 byte By zainuluka at 2007-9-20
Hi, i want to make a character move with animation and aim doing it by have a large sheet of framed animation characters. This Image is then broken up into the individual images and later used for animation.can anyone help me with it.the code below was created by me to do this however I have a ...

Keys down at any given moment

292 byte By TimRyanNZa at 2007-9-20
Hi there,I've written a game that currently uses KeyEvent to pick up keys being pressed and released, but what I'd much prefer to do is test at any given movement whether any given key is down. Is there a way to do this independently of event handling?Thanks,Tim

how to create panel/dialog with a list of questions

234 byte By Trinaja at 2007-9-20
Hi,I am a new java programmer and I need some help on how to create a list of questions with answers so that users can choose the correct answer.the question could be display in a dialog box or panel.thanks

Pong contest (7 dukes)

235 byte By kc0ncoa at 2007-9-20
Easy as 1, 2, 3.1-Write and compile a pong game (Multiplayer Pong, Pong3D, etc.)2-Post your game (either source code or a link to your game)3-I will reward 7 Duke Dollars to the author of the best Pong game.

I feel like giving to the group today.

176 byte By zparticle at 2007-9-19
http://www.scottshaver2000.com/ImageFunctions.javathis class has some usefull methods, particularlly related to handling pixel perfect collision detection. Enjoy.