snag in my first game.

4798 byte By outawatera at 2007-9-28 1:29:48
hello. i'm programming my first game. i'm stiil working on the skeleton, a friend of mine hopefully is drawing the gif images i will use.it's pretty simple. little gnomes run around on the screen. you click on them to send them to jail. if a loose man hits the jail, everyone is let out.all ...

Having problems with this code.

4105 byte By drtbker2001a at 2007-9-28 1:31:02
Hi. I just started programming games a while ago and I'm having problems with this code. What I'm trying to do is move a ball across the screen. I got it so it does that. But, I wanted the ball to reset itself when it reaches the edge of the applet. The main problem is that when the ball ...

SOS to a simple game....

346 byte By djapsa at 2007-9-28 1:32:53
Help! I have just started using Java, and already I need to create a simple game, but I am having problems already. The game is designed for 2 player with the one human player and the computer. Players alternatively take sticks from a pile, the player taking the last stick loses. Any Ideas? ...

Will someone check a game ?

343 byte By Storgaarda at 2007-9-28 1:34:07
It seems to work fine on win2000 in IE6, Mozilla and Opera, but I've got some perfomance-problems in the keyboard-handling on a 300Mhz win98-machine.It's the game "Tetris" under "Mulitplayer". It needs Java ...

Will my game be quicker pre-compiled than running from an external file?

1193 byte By DrQuincya at 2007-9-28 1:35:02
Hi all,I'm fairly new to Java so I don't know if this is a stupid question or not...I have written a 3d virtual environment creator where you can design a world, place objects and characters, set the textures and alter loads and loads of parameters (ranging from gravity, terminal velocity, ...

Packaging and Distrubuting a Java App

836 byte By jmichael73a at 2007-9-28 1:36:08
Hi,I developed a java app, which I want to distrubute. The app contains:1)*.class files2) a /sound directory with sounds files3) a /images directory with images.The things I am interested in are:1) If I use jar to package everything, should I modify my code, so that it will correctly locate the ...

Pong contest (7 dukes)

235 byte By kc0ncoa at 2007-9-28 1:46:17
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.

Distorting Graphics....

418 byte By Avalanche-Xa at 2007-9-28 1:46:20
I don't know really were to ask this, but I will do it here. Is there a certain algorithm or something to where I can distort graphics in a way that looks like a water ripple affect? I am trying to implement this so that I will have a background on a touch screen computer. And when I touch the ...

Free terrain Tile images

188 byte By harleyranaa at 2007-9-28 1:46:55
Hi i just wanted to see if anyone knew where to find some good terrain tiles.Its the usual stuff, dirt, grass, rocks,etc.I'll do any thing to avoid art myself!Thanks.

Graphics clipping behavior?

668 byte By tmeyersa at 2007-9-28 1:48:41
I'm writting a game that pans and zooms in/out. Anyway, when I call fillOval and send it pixel values that are mostly outside the clipping region, sometimes nothing is drawn when it seems like something should.Example:public void drawCircle( Graphics g ) {g.fillOval( 0, 300, 900, 900 );// ...

Make an image into a shape

89 byte By kodeza at 2007-9-28 1:48:43
Can anyone tell me how to make an Image show on any of the shapes in java.awt.geom

Best way to do a tile-based map

1160 byte By kevinp34a at 2007-9-28 1:49:01
Hello everybody-This should be a simple thing but I just can't get it to work. I'm making a tile-based top-down online rpg (application, not applet), and I pretty much have most of it done except I can't get the map to display and scroll right. i will admit that java graphics isn't really ...

Help: I cant get the controls right

3826 byte By pars40a at 2007-9-28 1:51:36
I am writing pacman in Java,but the controls don't work. I have added all the keyListeners (I think), and the program compiles without problem, but the controls don't respond at all. Could you please let me know what Im doing wrong.THANXHere is the codeimport javax.swing.*;import ...

another stumbling block.

926 byte By outawatera at 2007-9-28 1:53:25
my game is coming along fine. only prob is, it freezes sometimes between levels. i'm not sure why. i'm don't really know how to handle levels anyway. what i've done is, when a certain condition is met, i call a method reset() which tweaks some values, making tha game harder and then calls ...

J2ME Countdown Timer

2609 byte By ericprata at 2007-9-28 1:53:52
I'm working on a J2ME game that requires the use of a countdown timer. I've put in a Timer.scheduleAtFixedRate call inside my run() method, but apparently it's taking up a lot of resources and it's proceeding too fast (a 3-minute countdown will finish in about 30 seconds or less).I have a ...

any code to made an application fullscreen?

97 byte By ckminga at 2007-9-28 1:54:11
What is the code to made our application(windows) to be in full screen mode? Thanks

Help, How do i get objects to move with the click of a mouse button?

286 byte By jamesloughneya at 2007-9-28 1:56:10
I am developing a game where by an object can move around the screen by either using the keyboard or the mouse. I have figured out how to control the object using the keyboard. But the mouse control is proving difficult. Can anyone give me some suggestions on how to tackle this?

Skinning; Best Practices & Tools? (Newbie)

595 byte By davekmva at 2007-9-28 1:58:28
I'm something less than a newbie so I may not be asking this correctly... I am NOT a Java programmer.This may be slightly off-topic for this forum, but I think this is the best group for this question.I am looking for best practices and tools recommendations for skinning a Java app or game. I ...

J2me Game for Mobile phone

427 byte By edchinga at 2007-9-28 2:01:41
i'm having a problem here. I am using the nokia's api for additional features. For those who'd use nokia's series 60's emulator, u should know there's additional arrow keys constant to the FullCanvas class. The problem is everytime i press on a arrow key(not the numkey), it calss the ...

gisbya's Warp class

16172 byte By markuskidda at 2007-9-28 2:11:27
here's the (formatted) code:import java.awt.*;import java.awt.Component.*;import java.awt.image.*;import java.util.Random;import java.awt.geom.AffineTransform;/**** @author gisbya* @version */public class Warp extends java.awt.Component {/** PROPERTIES ETC*/private BufferedImage logical; // ...

how to create panel/dialog with a list of questions

234 byte By Trinaja at 2007-9-28 2:18:52
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

/me crosses fingers hoping....

310 byte By Abusea at 2007-9-28 2:19:45
...the changes I just made to my code dont make full screen exclusive mode lockup windows :P (otherwise, i'll have to reconnect to the net >:( )I thought Java was sposed to stop you from being able to crash the host pc :P(I was 'System.exit'*** without gd.setFullScreenWindow(null) ...

high resolution timer

1298 byte By Abusea at 2007-9-28 2:20:14
As every1 knows, under Windows, Java uses getTickCount for retrieving the system time. Every1 also knows that under win9x the resolution of this timer is 50[ish]ms, and under WinNT its around 10ms.For most simple Java games, 10ms would be fine, however, after W2K died on me last week, im back ...

I found a Java game SDK on sourceforge.net

44 byte By fredlima at 2007-9-28 2:20:25
http://java3dgamesdk.sourceforge.net/

I need your help

389 byte By ignatius_anga at 2007-9-28 2:31:23
Hi guys, I exploring on double buffering and sprites... anyone have any idea of any cool website that can help to enlighten me on.. what is sprite? why we use sprites? and double buffering?I'm looking into creating some kind of animation together with Swing Buttons to create an applet.. need ...

how to sample a pixel value in an Image?

238 byte By asjfa at 2007-9-28 2:34:45
hi, I need to check whether a pixel at a particular point is black or not, on an Image. I can't find any methods for doing this in Image, Graphics or Graphics2D.. is there any way to do this?thanks,asjf

30 seconds till MELTDOWN!

439 byte By Plowa at 2007-9-28 2:42:43
Hi everyone, Im new to JAVA and seek some help. Here is what I am trying to do:display a timer starting at :30 (seconds) and show the timer counting down to 0. Once the timer hits 0 the applet moves to the next question. Right now I am trying to display this in a JTextArea but having no luck ...

Key Capturing

2222 byte By synluba at 2007-9-28 2:43:49
Hello,I wrote below code to catch key event. Does anyone can write / suggest better code ? I am desperate on Capturing key event : ((import java.awt.*;import java.awt.event.*;import javax.swing.*;public class Anim extends JPanel implements Runnable, KeyListener { private int ...

Keys down at any given moment

292 byte By TimRyanNZa at 2007-9-28 2:44:33
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

problem in keyboard reading....

263 byte By ckminga at 2007-9-28 2:44:55
i was creating a program which using the keyboard to control the movement of a character,(picture). but when i run the program in jvm 1.4.1 , the program doesn't read anything from the keyboard. previously i was running it in jvm 1.3.1 ..... any solution?

problem in network , (sending game data)

498 byte By ckminga at 2007-9-28 2:45:00
i was developing a network game which allowed multiple player. so... at first in my testing stage, i test the program in one computer( 2 program connect in 1 computer) and it doesn't have any problems. when i test the program in network enviroment, the movement of the character are not same in ...

BufferStrategy - Draw and show in same thread?

530 byte By Elfirea at 2007-9-28 2:49:31
I've been playing around a bit with Full Screen Exclusive Mode and BufferStrategy. Right now I am a png image with transparency and moving it across the screen. The image is drawn on the back buffer and then the backbuffer is shown. Thread.Sleep(15) is called and then the repeat. The issue is ...

my work (not a videogame but...)

256 byte By cirota at 2007-9-28 2:52:41
hi, my work is this: www.synchropolis.com. This is not a videogame but some Java graphics that you can use (for example) in a videogame.I am not sure if my work is good, I'm sure I spent a lot of time to build it. What do you think about it?

sounds

123 byte By mslva at 2007-9-28 3:00:28
How do I play sounds on my soundboard?How can I access it?Is there a function "play"?Thank you.

question about graphics

349 byte By prologcodera at 2007-9-28 3:11:13
Hi forum,I've had a number of game ideas kicking around my head for years. I'm looking at doing a bit of a prototype of one idea over the next month or so. I've been using Java on and off for years, but I've never really gotten into the graphics side of things. Does anyone know of some good ...

Open Source Java 3D Game SDK

355 byte By Noppera at 2007-9-28 3:17:17
On http://sourceforge.net/projects/java3dgamesdk/ you can findan Open Source Java 3D Game SDk. It usese no native classes.Features:- Starting in full/window screen- Invisible Mouse Cursor- Game Mouse (Cursor stays centered on the screen) and Keys- Loading of 3D Milkshape3D Models- Animating of ...

Please help with KeyListeners!!!!!

821 byte By srj6a at 2007-9-28 3:19:52
Hi...I am trying to make the Snake game. I am working with keyListeners...I have never worked with keylisteners. So this is what I have to activate my left arrow key....public void keyPressed(KeyEvent e) {int key = e.getKeyCode();snakeLeft = ...

MediaTracker does not wait... why?

2214 byte By Cradle22a at 2007-9-28 3:29:59
Hi!I've been fiddling around with this for quite some time now, and I can't get it to work correctly...I have to load 36 images for my applet (the actual number doesn't matter, it won't work with a single one, either). I do this in the init method of my applet.After the load command I add ...

OlliPekka

86 byte By javatypoa at 2007-9-28 3:30:56
I found this topic whle searching the forums.Can you send me that class?

Problems with keyListener in game

4216 byte By aslanEa at 2007-9-28 3:38:58
Am creating a very simpel raptor game and having problems with my keylisteners. The problem is that when am moving the spaceship to the right, with the right key button and push the space button(shoot button) in the same time, the spaceship stops. How can I solve this problem? I want the ...

Testing a 2D array for four elements at once- Game (Connect Four)

10848 byte By u_topiana at 2007-9-28 3:39:56
Hey,This is my first forum at this specific location, so if my jargon or anything else is screwed, just ignore it....Ok i've coded this game "Connect Four" where you drop a chip into a column until you/opponent wins. you can win by connecting 4 chips diagonally, horz, vert. etc...Do you get ...

its a car game

684 byte By zainuluka at 2007-9-28 3:40:07
Hi, I am building a car game and need some help. first for the code.[code]//CarControlclass CarControl{protected final double TWO_PI = 2*Math.PI;double ux, uy, time_scale, angle, velocity, turn_rate;boolean on=false, left=false, right=false;public CarControl(){}public void leftTurn(boolean ...

Collision detection

239 byte By thecodewarriora at 2007-9-28 3:40:24
Im writing a game and I need to know how detect a collision between a moving sphere and a cylinder. If any of you could direct me to an efficient algorithm to solve for the point of intersection I would really appreciate it. Thanks.

Need help immediately on WindowEvent!!!

224 byte By srj6a at 2007-9-28 3:43:37
Does anybody know how would I add windowListener to a JSwing object..The compiler will not let me do this:contentPane.addWindowListener(new SnakeUI.CloseWindow());because contentPane is a JPanel..

Game is getting slower and slower?

5282 byte By aslanEa at 2007-9-28 3:44:28
Am creating a spaceship game, but my problem is that the movement of the spaceship is getting slower and slower. I the end it completly stops moving! What am I doing wrong?import java.awt.*;import java.awt.event.*;import javax.swing.*; class Raptor extends JFrame implements ...

Java Applet Grey Box

600 byte By ptom98a at 2007-9-28 3:46:38
Hi,ive been doing some java game applets, and posting them up on my web site ( http://www.ptom.co.uk) but one thing ive noticed on some sites (ie. http://www.popcap.com) is that they dont display the nasty grey box that always appears when your classes are beeing loaded, how do they do ...

Car game views points

870 byte By zainuluka at 2007-9-28 3:54:35
(1)Hi, in my car game(top view racing). It drives about on the screen but when you ask for its current position, it gives the current position with respect to the viewport rather than the actual position it is on the map(note that the map is bigger than the view point and so scrolling of the ...

Disposing a Fullscreen Frame with BackBuffers throws Exception

2022 byte By MGodehardta at 2007-9-28 3:55:31
I am using the new JDK1.4.1_01, when i create a Frame and switch the Frame to Fullscreen and call this function to destroy the frame a Exception is thrownjava.lang.NullPointerException: component argument pDataat sun.awt.windows.Win32BackBufferSurfaceData.initSurface(Native Method)at ...

Java 3d multiplayer space game Elite/Privateer/Jumpgate style.

1299 byte By trihaa at 2007-9-28 3:56:40
Hi guys.I dont know if what Im thinking is possible in Java today but let me elaborate on what Im thinking and what I see is needed as of skills.Anyone that has played Elite, Privateer or Jumpgate knows what Im thinking. A 3d space sim game with a very good flight physics model, a very good ...

Drag and Drop !!! Help

730 byte By silla_34a at 2007-9-28 3:56:50
Hi I have the drag and drop working within my programme successfully. Thank god !! I am able to drag buttons and labels from a source to a target. But what i am looking to do now is to take an action event on these button and labels when i drop them in the target area. Can this be done ? So ...