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
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 ...
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 ...
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 ...
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 ...
i like to know is there any games contest.. if yest pls let me know
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
as MIDP1.0 support only PNG format and treat all pixels as opaque, what can I make my images look transparent?
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 ...
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 ...
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 ...
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 ...
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.
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.
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, ...
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. ...
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(); ...
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 = ...
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?
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
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 ...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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(); ...
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 ...
24 byte By
Abusea at 2007-9-28 0:55:52
I have a gift 4 u
When Image is obtained using getImage() method , how toobtain date of creation or another header value if image isobtained using getImage method.
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 ...
Just looking for some info on technologies use for game development...Maya, 3d Studio Max, lightwave, openGL?java, c++?what do people use?
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 ...
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 ...
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, ...
At the time of this post, the Game Development forum was forth on the list. That must be record...
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.
i am searching for a rl-skeleton for games like nethack, angband, adom,...
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 ...
if you have an array of buttons how can you tell which one is clicked.
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 ...