Recent update: 2008-5-9
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 ...
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?
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 ...
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 ...
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 ...
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 .
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 ...
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
Is there a way to make a 800x600 window with 640x480 resolution?Not full screen.
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 ...
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 ...
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.
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 ...
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 ...
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 ...
Any ideas on this ?try{timer.schedule(new RemindTask(), 1000,2000000000 );}catch(IllegalStateException e){timer.cancel();JOptionPane.showMessageDialog(this,"You lost. It ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
-- 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 ...
Can swing components be correctly serialized/deserialized does anybody know?Thanks
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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?
Hi,Reading some answers of the forum I faced with the term "active rendereing". What it means? Some examples?Thanks,
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 ...
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
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 ...
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 ...
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
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 ...
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 ...
Can anyone help on how to make some basic java games for my website if you could that would be helpfulthanks,Louie
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, ...
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 ...
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, ...
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 ...
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 ...
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
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
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.
http://www.scottshaver2000.com/ImageFunctions.javathis class has some usefull methods, particularlly related to handling pixel perfect collision detection. Enjoy.