How do I edit .class files?

239 byte By forumsa at 2007-10-1 6:32:31
OK Im re-editing some java files, Except they where compiled to .Class files, Does anyone here know how to edit them?Or A program that that would compile .java files to .class files? Any feedback would be great!Thanks.

Switching fullscreen and normal modes

4043 byte By rmark0918a at 2007-10-1 6:47:15
I am trying to figure out how to switch from Full Display mode, back to normal mode, with out exiting my application. It appeares as if the dispose of the FullScreen window hangs, as I am left with a blank black screen, but I still get a null pointer exception from ...

Scrolling engine

167 byte By yahooa at 2007-10-1 6:50:24
I'm going to write a game which needs a scrolling engine. Any recomendadions? Maybe you can show me any engines/libraries for arcade games like mario or pacman

A Card Game drawing problem

20011 byte By Ocelota at 2007-10-1 6:59:38
Hi,I am making a cardgame and i want to be able to drag cards around the screen. I have a small problem in my implementation of it. When i try to drag the card around the screen it shows up in 2 places at once. Could anyone tell me why this is happening? Also the response of the card actually ...

Design of a Java Roguelike

875 byte By MBrenamana at 2007-10-1 7:04:53
Hey everyone, I was wondering if this design for my roguelike is bad Java.Basically I want to know if seperating the classes into the packages as I will explain is not a good idea."myroguelike" package contains the app and the package "game"Inside "game" package is the GameManager (basically ...

hangman

555 byte By poiuytrewqa at 2007-10-1 7:05:24
in my java program, the .setBackground() isnt working for a jlabel in an array. any suggestions?for(int a=0;a<puzzle.length();a++){answr[a]= new JLabel();let = ...

Dice game - Help needed

24798 byte By david1985a at 2007-10-1 7:10:04
I'm making a dice game in Java. Here is a screenshot: http://img.villagephotos.com/p/2005-1/941114/dice2.JPGBasicly what you have to do it line up as much as the same amount of dice in the same row. To give you the highest total. The buttons at the bottom work and when you start the program it ...

Art for your games

139 byte By yahooa at 2007-10-1 7:13:03
Hey!I'd like to know how do you do art for your games. I mean sketch it on paper and scan or draw it in PC or any other way?

Checkers & Chess

357 byte By ildave1a at 2007-10-1 7:13:35
I'm interested into coding a checkers game in java, just for some practice.Would anybody know of any tutorials or source of a simple java application(no applet) checkers game? I found an applet checkers game, but I wonder how much of a difference there is between an applet and an ...

New game programmer

326 byte By Miraclesa at 2007-10-1 7:27:13
I want to write a game with my friends but I don't know what environment or package should I use. Java Application cannot input or draw graphics. Java Applet cannot read from a file (I want my game to be savable). JFrame cannot not import audio, etc... Can any body tell me what package should ...

ERROR:The applet Tennisball does not have a public constructor Tennisball()

7367 byte By LawrenpoHa at 2007-10-1 7:30:11
hi all...sorry...i encountered this java error msg with the following code.....n the error msg tat was generated is that i do not have a public constructor which i already have...can some1 please enlighten me..?import java.applet.*;import java.awt.*;public class Tennisball{double x, y, oldx, ...

Bomberman arcade style game

731 byte By RisseNa at 2007-10-1 7:46:07
Hi everyone,Sorry to have to use the forum for this kind of a post but im really stuck. Im making a bomberman arcade style game and I cant find any suitable sprites anywhere. Ideally I would like to get proper bomberman images but if thats not possible, even similar images would suffice. All ...

Record and Replay a Lap in a 2D Driving Game

660 byte By ODOG81a at 2007-10-1 7:46:36
Hi All,I have created a birds eye view 2D driving game and would now like to add the feature of being able to race againts one of your previous laps. I have seen this in many games refered to as 'shadow racing'.My question is how do I record all the actions of the car and then replay them to ...

enemy movement in side-scrolling space shooter (e.g RType)

583 byte By nikolas_pontikosa at 2007-10-1 7:50:14
Hi,I would be very interested in code or just mathematical algorithms for enemy movement in a 2D side-scroller. I can post some code if need be but here's some movement patterns I got for the moment:1) random: a) sine or cos movement i.e moves like a waveb) bounces around the screen2) ...

Java RPG basic help needed

1144 byte By Astrofa at 2007-10-1 8:11:59
hello, i am making a java RPG, and well, since this is my first year at java, i sort of, what is a nice word, i......SUCK AT JAVA. can someone help me? well, here is a nice introduction, but now i will state my problem (yes, i know i am anoying)i need to make an RPG, where to make it easier for ...

3D Web Engine d閙o at http://dzzd.net

963 byte By DzzDa at 2007-10-1 8:15:12
Hi,I'have put some screenshots and two online demos of my 3d engine.controle: mouse and keyboard: up/down/left/right/+/-I will release an API when i will finish a stable version.In the near future it will be optionnaly switchable to opengl, that mean it will run in 1.1 and/or opengl without ...

Jittery Animation Troubles

10379 byte By deraguna at 2007-10-1 8:17:19
I need some help with getting my animation to work correctly. I have tried every animation method I can find online and none of them seems to work fully. My 'game' so far is just the framework to get a ball to bounce on the screen. I have a problem that the ball is very jittery (not flicker). ...

Java newb have a few questions...

426 byte By Cirdan_Celebrindala at 2007-10-1 8:19:26
Hola! I have programed befor(c++) bt I've decided to dive into java, becuase its easier ot amke cross paltform apps. Anyway, I want to make a game, in an applet, were you controle this guy on the screen. I was wondering how to set-up KeyListener, and maby even MouseListener on a applet? Also, ...

New to Java, how powerful is it?

492 byte By evilpaula at 2007-10-1 8:26:22
Hi, I am going to school for Game Design and I chose to do a reserch project for one my my classes on java. I know C++ very well, along with DirectX, openGL, and renderware. I have to do a small demo of what I have learned about java. I am just not sure how much I am able to do with java. I was ...

Help on MIDP

343 byte By temaa at 2007-10-1 8:29:40
Hi all,could anyone help me on how to move a box in my MIDP program.I have created a program in whihc I have drawn a box, I can move the box when the left or right key is pressed. I want to make this automatic, that is move it left or right after a certain time interval.your help is much ...

A random pixel transparency effect. How?

2656 byte By StevenRoya at 2007-10-1 8:39:25
I'm trying to port an unfinished game of mine to Java. Most of the graphics in that game revolved around a function (done mostly in ASM) that would draw a sprite at a certain location, rotating it a certain amount, and stretching it to a certain width and height. I was rather delighted to ...

Collision detection - 2d platform game

1366 byte By RisseNa at 2007-10-1 8:42:01
Hi all,Im busy making a bomberman clone at the moment which is going very well. Im trying to figure out a way to optimise certain parts of my collision detection. Collision detection with background elements (bricks, walls etc) is taken care of and works very quickly. I haven't started with ...

Problem accessing BufferedImage innards.

1459 byte By Morgan_Aa at 2007-10-1 8:44:12
I'm using the following method to load and draw an image, then take the raw pixel data in ABGR format. Unfortunately, what I get out at the end, when I print the array in full, is nothing but zeroes. I think this was the method recommended in one of the Java game developer FAQs I read, so the ...

addKeyListener cannot work

1926 byte By AngelFILAa at 2007-10-1 8:44:30
import java.awt.event.*;public class playerControl extends KeyAdapter{private player player1;public playerControl(player p){player1=p;}public void keyPressed(KeyEvent e){switch (e.getKeyCode()){case KeyEvent.VK_UP:player1.sety(player1.gety()-5);break;case ...

Fog function

732 byte By HiperSofta at 2007-10-1 8:48:42
Hi,I'm developing a ray tracing program and I need a pixel fog function. I've tried some approaches but all failed miserably.Does anyone know a fast function for this task?/** * Colors are 24 bits RGB. * @param fadeColor background color * @param pixel the original color * @param visibility ...

Help in images

452 byte By jpn1iea at 2007-10-1 8:50:22
Hi every one,I'm tring to make a small game.the problem is that the images doesn't appear like i want ,for example if you draw a star and filled it with yellow color then when you move it on the game it moves the whole image with a white background for the non-yellow areas of the image how ...

look & Feel

314 byte By iskantropiaa at 2007-10-1 8:52:29
I am dev one swing application . In which i am using JButtons/JToggle Buttons in JToolbar. Its look & Feel is not good mean some square button I got(not AQUA L&F). when I use the same button in Jpopup Menu Its gets the pure AQUA Look & Feel. So how can i avoid this situation.? ...

Testing of a snake clone

2622 byte By klana001a at 2007-10-1 9:07:23
The game i have been working on for about a month is now getting to a stage where it is "play-able" and i would like to know if it works on the majority (all?) systems. The basic game game is about 1 Meg and only contains low quality graphics for the background. An optional high-quality ...

Path finding algorithm for bomberman

925 byte By RisseNa at 2007-10-1 9:10:00
Hi everyone,I have another question regarding the bomberman game im making. Everything is just about done except for adding some decent sound and making my monsters a little bit more intelligent in the way they find me. Im using a 2d array as the map so ive just done some basic logic (ie: if im ...

Tile Based RPG layering problems

444 byte By Bluelikeua at 2007-10-1 9:11:50
Hello,I'm having trouble making certain parts of an image go behind other images. There is an overlay image that is positioned on a tile and it covers about half of the tile above it. When i move my character to the tile above the overlay, the character is above the overlay image and not ...

Mobile Java Game

243 byte By Stephensawa at 2007-10-1 9:12:32
I want to learn on java mobile game, I heard people said that use the NetBean software to convert our java game to the mobile game, is it right? And what kind of java code should I write? The applet for web page one, or application one?

popup advice

397 byte By buddyholly83a at 2007-10-1 9:15:24
I am not very experienced and i am making a game applet that at various points alerts the player if they cant make a move or the computer cant make a move. Using the Jdialog messages doesn't look great and I was thinking about using a mini JFrame that I can hide when im not using it and just ...

Changing volume of game music

702 byte By RisseNa at 2007-10-1 9:18:02
Hi everyone,Ive googled for an answer but I dont understand most of what is coming up. My problem is that id like to change the volume of the music in my game. At the moment ive just used AudioClip which only supports basic things like play, stop, loop. Im sure what im looking for is found ...

Heap Space

354 byte By pbreen_2006@yahoo.coma at 2007-10-1 9:19:31
I'm creating a boad game in java and recently i have been getting out of memory errors relating to the heap. I do use quite a large tree structure in my game but i was still surprised to see this happen. Should i just increase my heap space and if so can i set the heap space in my code or does ...

formula for new x,y coord after ball collision

312 byte By sgriffin44a at 2007-10-1 9:27:18
I am looking for a simple formula to use to after ball collision with a wall. I will have the line the ball is travelling in and the line for the wall so the angle can be calculated. I have the "velocity of the ball in x,y (ie. y=-4 and x=1) and need to know what the new "velocity in x,y values ...

JOptionPane setUndecorated(true)?

503 byte By shanemacgowana at 2007-10-1 9:34:51
I am currently using a JOptionPane to get input from user...int value = JOptionPane.showOptionDialog(popup, "Question question question?", "Which?",JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE, null,options, options[0]);Is it possible to call setUndecorated(true) on this JOptionPane? ...

A simple way for doubble buffering?

312 byte By AnEeS_Bhaia at 2007-10-1 9:43:45
Hii m a Newbie to JavaGamesIs there any Simple Way for DoubleBuffering?plz give me a simple example that how to use a double buffering in my appletwhich should be understandable i dont wants to copy paste code i wants to learn itthanx in advance regardsAnEeS ...

Game Dev001

36 byte By bigmanna at 2007-10-1 9:44:27
Help! how do i double buffer?

gd002

45 byte By bigmanna at 2007-10-1 9:44:29
What is the point of double buffering?

help me!

134 byte By arik55a at 2007-10-1 9:51:06
hello if some have trhe code game for the game snake please send mei need it with jframe and threadsthanks

snake game

95 byte By arik55a at 2007-10-1 9:51:57
i need the way how to move snake on screen and to make it grow when he eatsthanks

trying to code a pool game but the initial shape dissapears!!! im stuck!

5399 byte By davidw25a at 2007-10-1 9:54:05
Hi , I basically want to write a java graphics game application ......At this point in time all I want to do is add a green rectangle to the content pane.......I can do this but I want to stick with OO concepts so I have various classes......the thing is ....when a user resizes the window the ...

Mouse focus

606 byte By davi.lukea at 2007-10-1 10:02:24
I have been working developing a simple 2D multi user virtual environment. Its code resemblesthose very simple 2D games, this is why I am sending this message to this forum.I would like to get some help to solve the following problem. While a user moves its avatar within the environment (drag ...

Game development strategies

378 byte By Furya at 2007-10-1 10:03:19
Does anyone have any good strategies or articles on how games are developed? I am very weak in the area of game development with Java. I have only got into a simple area of Java2D but I need more material. So, if you have any great articles or thoughts on Java Game Development and the ...

Keyboard input

2899 byte By dcyuri7a at 2007-10-1 10:04:26
I have searched the forum, tried the suggestions, and I have even gone to Barnes and Noble to read up on this. Just wanted to state that before you begin giving the typical flames for not giving any effort.Now, to the subject at hand. This is what I have:import java.awt.*;import ...

images in my game applet

990 byte By buddyholly83a at 2007-10-1 10:06:28
I am having problems changing an image for buttons in my game applet. I can give them initial images but when i cant figure out how to change them.The method that houses the statement is static - but i cant use static method when i am getting images using getClass(). PLEASE HELP!P.S. My applet ...

Need Help With An Idea

1013 byte By BobDoleLovesYoua at 2007-10-1 10:10:53
All, I am wanting to start a project that will allow me to select the size of a grid and then place images in the spaces on the grid. I will then be able to save the whole thing as one giant image. This is so I can make maps for a game by putting tiles of images together.The thing is that I ...

Graphics g or buffered Image

915 byte By davidw25a at 2007-10-1 10:17:12
I have succefullt painted a green box (Not groundbreaking i know :-))) ) and I have a poolapp, gamescreen and paint class .....I overide the java paint and update methods and this works reasnable well .....however when I paint the box in the paint class it paints it there and then .......I ...

High Quality version of Anaconda

770 byte By klana001a at 2007-10-1 10:17:26
I have managed to create a high quality version of my snake clone.By some fiddling i have managed to make an compressed archive of the game so that is it is 4.99 meg, just under the 5meg file limit on my geocities site. yay!Inorder to make it that small i had to re-create all the jars with NO ...

Decompiling code always possible?

452 byte By ignacio_cougila at 2007-10-1 10:19:21
Hi!Actually, I would like to know if it's possible to obfuscate java compiled code. I was trying different GNU or free utilities (retroguard, yguard, proguard, etc) and the result wasn't so encouraging: one of the best decompilers (jad) has the ability to decompile all the class files ...