JLayeredPane to handle layers in a game

222 byte By onlytoine at 2007-9-27 23:02:13
Hello,I'm looking for solution to handle layers in a game. So, is JLayeredPane a good solution to display graphics in different layers in order to render them on screen ?Thanks in advance,Toine

Game Engine

877 byte By pkabus at 2007-9-27 23:02:41
I like old-fashioned 2D games like Super Mario and Zelda and so I am about to do a little bit of game programming myself. The first thing I like to make is a reusable and extendible game engine. I have already programmed a "game loop" which reads keyboard input, blits images to screen, etc. in ...

Better Debugging

662 byte By cbisbee at 2007-9-27 23:06:10
I've been having a problem for a few weeks with my game... I originally posted it at: http://forum.java.sun.com/thread.jsp?forum=406&thread=305086I still can't get it, and I haven't gotten any tips that have been all that useful, so I'm going to change the question I'm asking...I know ...

Image handling

2895 byte By jacksonpauls at 2007-9-27 23:06:43
Greetings,I'm writing a game that uses small images, some being the same as others, but rotated 90 degrees clockwise. I've tried using a rotate function (Method1), but the game is jerky. However just loading a prerotated image (Method2) allows the game to run smoothly. In both cases the ...

my game sounds are played with noticable delay!

553 byte By 242059superJa at 2007-9-27 23:10:19
hi.i'm writing a graphical game by java2D API .i have many threads to run,so when i use an AudioClipobject to play my desirable sounds (.wav files),it would playwith a noticable delay.i decided to use windows APIs through the JNI.but i must first write a c++ code (.h file)then convert it to a ...

Games contest

74 byte By manoj_csa at 2007-9-27 23:13:26
i like to know is there any games contest.. if yest pls let me know

top view racing game

473 byte By zainuluka at 2007-9-27 23:14:44
Hi,I am making a birds view racing game and want to move the car about the screen by using the arrow keysbut I have two problems1. how do I rotate the car...ie along the rear axiswhat set of methods would I use...I don't want to use the AffineTransform object because that it java2d2. how would ...

image position

570 byte By zainuluka at 2007-9-27 23:16:27
hi, I have a small image on an applet screenis there a method like getX() and getY() which will return the coordinates of the image...note that the image can be any where on the screenie.Image pic;.......... pic = getImage(getDocumentBase(),"apic.gif");........int x = pic.getX() //something ...

Java Game, Mobile Phone...Researching Opinions!

869 byte By nellis10a at 2007-9-27 23:23:08
Hi chaps/chapesses,Lowly Master's Degree student seeking expert opinion.Creating a simple game for a mobile phone as my thesis. I've started looking at the whole topic and getting a feel for what is out there etc.I'm not looking to create a game that is going to make me a million, just to ...

Simple Graphics Question

665 byte By duplcata at 2007-9-27 23:26:37
I'm new to Java, but have read many books on it. None of the books explains much about graphics, except for Paint(), Repaint() and Update(). I would like to start with a simple applet (non-swing) game in which created objects have the ability to draw themselves onscreen. Is there a simple way ...

playing sound files by Clip interface !

465 byte By superJa at 2007-9-27 23:27:10
i'm writting a game that consists of some threadsfor handling graphical animations.it causes the sounds of the game played with thenoticable delay.(i use AudioClip mehtods).someone said me use Clip interface that is quiker than AudioClip method beacause of pre-loadingsound data.can u send me a ...

can I rely on this...

586 byte By Abusea at 2007-9-27 23:30:54
this is related to the 4k competition,public void paint(Graphics g){System.out.println(g.getColor());}Is it ok to assume the initial color on a Graphics object is black, as it seems fine on all the Windows machines i've tried.a second thought..... in the specification for the paint method of a ...

Painting on Top of Image

1774 byte By maxhugena at 2007-9-27 23:32:26
I'm trying to design an applet which simulates a radar screen. Although I'm a novice, I have managed to create the radar itself OK.However, I would like the radar screen to "sit" on a "console", and I'm trying to use an image file as this background console. Although the image loads and ...

need transparent PNG images!

117 byte By initial_ya at 2007-9-27 23:37:15
as MIDP1.0 support only PNG format and treat all pixels as opaque, what can I make my images look transparent?

javascript to java communications

1994 byte By geokria at 2007-9-27 23:37:59
I hava an applet that has a timer. I would like to pause the timer when the browser is minimized and restart it when the browser is opened again. To do this I have a javascript that notices when the browser is minimized/opened and then calls minimized()/opened() in my applet. The problem that ...

GridLayout and Thread Problem?

4092 byte By bregotya at 2007-9-27 23:38:12
Question : Hi,I have a doubt in GridLayout and Threads. I齧 doing one small application which is accepting images and Alphabets.Actually, What I齧 doing running images and alphabets(combinedly) in frequent intervals. For this I used GridLayout and Thread concept. But I have a problem in paint ...

Transparent Pixels

462 byte By maxhugena at 2007-9-27 23:40:11
In my "radar screen" project, I have now created a background console image, and radar screen background image, and saved these to one buffered image.However, the radar screen, being round, should have transparent pixels in the area between the circle of the radar screen, and the square ...

Sound recorder/converter for .au format

357 byte By ibosana at 2007-9-27 23:41:42
I am using jdk1.1 and it seems it only likes .au format for sound files. I couldn't use Sound Forge; saving was disabled. And I got some others in shareware.com. But they were hopeless as well. Most just didn't work. Is there any reliable shareware app out there I can use to convert from .wav ...

Distributing JRE with Java Swing Game

172 byte By whyjavajavaa at 2007-9-27 23:42:09
I am developing some game using java swing. With the games Ineed to ship JRE because each user does not have JRE..So is there any other other solution.

Distributing JRE with Java Swing Game

166 byte By whyjavajavaa at 2007-9-27 23:42:10
I am developing some game using java swing. With the games Ineed to ship JRE because each user does not have JRE..So is there any other solution.

Efficient Subimages (Newbie)

894 byte By lordluclessa at 2007-9-27 23:47:26
I've been writing java stuff for a while, but I've only just started looking at gaming.Basically, the game is a tile based map with a little guy that runs around it. The way I draw the map is as follows:1) On start of game, generate image of the whole map.2) When the map needs to scroll, ...

Implementating JPG's to handle a mouse event

4044 byte By Java_chica at 2007-9-27 23:51:19
Hi i made an applet where i have 2 circles drawn in by paint and 1 cirlce runs from top of the applet to the bottom and the other circle runs from the left side to the right side of the applet and when it hears a mouse event the 2 circles go back in the dirction they were going and vice versa. ...

Animation with javax.swing.Timer Problem

1390 byte By jmichael73a at 2007-9-27 23:55:11
Hi,In my program I modify a data structure (a two dimensionaly array) several times based on a single MouseEvent and an "observer" of this array animates the modificantions applied to this array one after the other. So my code looks like:firstModify(); // Modifies the arraynotifyFirstModify(); ...

Problem with HttpConnection on nokia 7650

889 byte By spalmaa at 2007-9-28 0:00:30
i've a problem with httpconnection when i use this on my nokia 7650.my code is this...HttpConnection c = null;InputStream is = null;Codice codice=new Codice();try{c = ...

Buffers Have Not Been Created !!!

278 byte By sgriffin44a at 2007-9-28 0:04:23
I am using a buffer stategy and everything works fine. However once in a while when I run my game I get an error stating "Buffers Have Not Been Created". Is there a way to check the status of the buffer after you create it to see if it's ready before you start using it?

Games site

186 byte By deeps121a at 2007-9-28 0:07:14
Hi,Where can i get information about hosting a site for playing games online. What all features this site can have and what needs to be done to manage the site.Deeps

Fullscreen and Swing

390 byte By javatypoa at 2007-9-28 0:11:09
Okay when someone goes about making a fullscreen game, it usually happens like this: wmake full screen mode, decide the display mode, then make a buffer strategy or something. But if you make the fullscreen mode then decide the display mode but then not add not buffer strategy and start threads ...

Any information for RPG creation appreciated =p

1175 byte By Seekelya at 2007-9-28 0:12:17
If you remember me, I am the programmer that made the attempt (half decent if you ask me) at recreating Scorched Earth. Well, time has passed and my next project lies at hand. This time a team and I are moving into the exciting world of a 2D RPG. I read this forum daily and have learned a lot ...

about java game paranoid

8423 byte By mahbubaka at 2007-9-28 0:16:57
hi,i have made a simple java game name paranoid(/breakout/dxball/blokok)the problem i have faced is that in slower pc it cannot work properly.In slower pc the ball sometimes crosses through the boundary line(probably at that time thread cannot work).But in faster pc it works almost properly.can ...

Java networked card game framework

355 byte By bago75a at 2007-9-28 0:17:43
Hi all,I'm trying to create a card game framework in java. The project started at sourceforge ( http://ataraxia.sourceforge.net) a week ago and we are at a very initial stage.I would like to know if someone would like to join our project or if someone know about similar existing projects.Thank ...

2d shooter applet

643 byte By javatypoa at 2007-9-28 0:32:27
Hi I'm making a 2d shooter that is not really working. What i've got is a ship, which is just three lines assembled in a triangular form. Then I'm trying just to make a single 'laser' shoot from the ship up to the top of the screen. There is no trigger button it just does it automatically. ...

how to test applet test with older JRE?

604 byte By bluedragonza at 2007-9-28 0:36:25
Hi,I just did an applet game but I just found out that it won't work on other computers browser and I think it becaues they use older version of JRE (I have JRE 1.4 installed on mine). I would like to know if there are any way or any programs that I can use to check if it support older version ...

Game animation...

436 byte By Boz_Leea at 2007-9-28 0:40:23
I'm kinda new to java, but not new to programming...I want to get a particular character to walk or do anything, meaning i want to use several images for a characters actions, im thinking of gif files, as they are the closest to small image files. And be able to control the flow of ...

John Conway's Game of Life

462 byte By force3ka at 2007-9-28 0:40:50
Hi can someone help me out, i need to create john conways game of life and using JFrame, and i am fairly new at java and was wondering if you guys could help us out. it you don't know what im talking about visit - http://students.seattleu.edu/maidungh/Programming/Java/gameoflife.htmlthat site ...

Scaling .PNG's in MIDP 1.0

1005 byte By ericprata at 2007-9-28 0:50:37
I'm currently developing a game for color-screen mobile phones that requires the use of PNG images for the characters. (It's a game based on characters created by the design department at my company).Now, of course, different phones has different screen sizes. This difference doesn't matter ...

Need for speed

2346 byte By patrikolssona at 2007-9-28 0:52:36
I beleive this program implements the fastest drawing "algorithm" possible in Java. Is it possible to speed it up? Can volatile images be used. Anyone?import java.awt.*;import java.awt.image.*;public class Test3{public static void main(String [] args){try{ Frame frame = new Frame(); ...

Beginner to game programming

479 byte By we_area at 2007-9-28 0:55:41
hello everyoneI am trying to write a he-man fighting game. I have just started and am pretty new to game devlopment, but thanks to java.sun I found the animation to walk. I used that code and edited for jumping and throwing a basic punch. my problem is this. all the images I have are jpgs from ...

javatypo, reply here :)

24 byte By Abusea at 2007-9-28 0:55:52
I have a gift 4 u

How to obtain date of creation if image is obtained using getImage()

166 byte By sharmilaspxa at 2007-9-28 0:56:51
When Image is obtained using getImage() method , how toobtain date of creation or another header value if image isobtained using getImage method.

San Francisco Java MEETUP!

920 byte By latchkeya at 2007-9-28 0:58:54
MEETUP with other local Java developers to network with each other and talk about jobs, code, architecture and innovation in San Francisco on Monday, November 18 @ 7:00PM. This is a FREE event.Up until 3 days before the event, you can still vote on the location in San Francisco that the JAVA ...

What do people use to make game nowadays?

166 byte By NewbieKida at 2007-9-28 0:59:22
Just looking for some info on technologies use for game development...Maya, 3d Studio Max, lightwave, openGL?java, c++?what do people use?

OS game, everyone welcome!

535 byte By jGizmoa at 2007-9-28 0:59:33
Due to little bit boredom, hence I started this line today. Hope next time I check forum again will be more.//Spec===========================================Target: appletSDK: 1.3Limitation: no use of external source such as images and soundGame name: JAVA MONSTERGame type: maybe we can design ...

problem with ImageIcon....

574 byte By ckminga at 2007-9-28 0:59:53
i'm working on a game project where there are character which are controlled(the movement) by player(ourself). The graphic of the character is an animated GIF, and i display the GIF using ImageIcon. until now nothing is going wrong, the image can be display. but when i move the character, the ...

2d character adventure game..

1065 byte By javatypoa at 2007-9-28 1:01:36
Hi, my next project (thanks to noah.w, and several others who have helped me develp my previous games), is going to be a 2d character adventure game. I want to do this to learn how to do tile like map games without all the complicated code. Its going to be like Mario games for the old nintendo, ...

HEy everyone

105 byte By javatypoa at 2007-9-28 1:02:51
At the time of this post, the Game Development forum was forth on the list. That must be record...

Good example games for a very new game programmer

212 byte By drtbker2001a at 2007-9-28 1:03:05
I would very much like it if some people would post some very very (i mean very) simple games with source code. I just started programming games about two days ago. Any post would be helpful.Thanks.

wanted: rogue-like skeleton

81 byte By elvis_untota at 2007-9-28 1:04:27
i am searching for a rl-skeleton for games like nethack, angband, adom,...

Fullscreen mode and JFileChooser

308 byte By JTeena at 2007-9-28 1:11:18
I have an application that uses fullscreen mode and a JFileChooser. The problem is that whenever the JFileChooser closes it leaves an ugly grey rectangle. Is there any way to avoid this? Maybe if I make the JFileChooser render actively it might work, but I don't know how to do this. Anyone ...

Help!!!!!!!!!!!!

77 byte By SunnyNalaa at 2007-9-28 1:18:26
if you have an array of buttons how can you tell which one is clicked.

background scrolling with % problem

2585 byte By markuskidda at 2007-9-28 1:21:40
I'm trying to do some simple background scrolling for several layers of background images, where each layer scrolls more slowly than the one before. I'm working with the modulous operator and the player's location... What I've written seems correct in theory but I'm getting jerks and ...