Simple collision detection

524 byte By chandrashekar-na at 2007-10-1 2:17:15
Hi,I am trying to build a simple game similar to the X Boing. I am using Sprite as an abstract super class for the Ball class. The image I am using for the Ball sprite is a simple BufferedImage upon which a circle is draw. What I want to know is if there is a simple collision detection ...

Problem Displaying images

6193 byte By TraumaERa at 2007-10-1 2:19:21
Hi I am trying to make a mud and the one thing I wanted to make different was an actual image map. My code reads the map from a text file and then places it into an array which then is displayed using diffent images for different characters. I wanted to start out by reading in the map and ...

Tank Turret

993 byte By ch-osena at 2007-10-1 2:21:02
Alright Im a fairly good programmer thought my math isn't high enough skill to figure this prob out. (Only taken gr.10 math so far). Anyways Im making a copy of "Tank wars" or "Scorched Earth" or you could even say "Worms".I am already stuck. When the game needs the measuremnts to draw the ...

Engine Trails

423 byte By Sentient-Absencea at 2007-10-1 2:32:34
I was wondering... how I would implement a trail of exhaust coming out of a simulated 'engine.' I've seen some other (albeit older) games and watched their exaust; some use crosses or circles that are 'layed out' behind the engine area, and fade out with time. If anyone here has done this ...

game thread issue

657 byte By frustr8eda at 2007-10-1 2:43:43
hello! i'm developing a mobile game (J2ME). Is it okay to use Timer/TimerTask rather than a Thread? by the way, im currently using Timer/TimerTask for the animation of my character such as walking and attacking. the game runs smoothly but sometimes (out of nowhere and i don't know why), the ...

Java Game Engine: GTGE v0.2.0 released!

430 byte By javaweirda at 2007-10-1 2:44:19
Finally I've complete the tutorials and the documentation of my game engine. :)Guess you all have know it, so I think I just drop the link to download it : http://goldenstudios.or.id/products/GTGE/If you prefer to read it online :The API Documentation ...

some help with sounds plz ;p

1361 byte By f.l.xa at 2007-10-1 2:46:31
First of all, congrats for the forum ^^ great ideas here :)Well, i'm working with a friend in a multiplayer space combat game (nameless nowdays) implemented with jsdk5. The game uses a thread to update each player object and then repaint a "main" jframe where all the things happen. I was ...

Running jar games in windows

423 byte By Haza at 2007-10-1 2:50:16
Hello I am looking to see if there is a prgm that will allow me to view and play(test) jar games or any format for cell phones in windows I have me on my pc. I really dont want to waste time and money down loading games to my phone that are crappy and are only for trailware and then if thay are ...

How to random 7 individual numbers?

456 byte By imakoa at 2007-10-1 3:08:51
Hello.I am pretty new in Java, but i have basic understanding of it. :)My question is:How can you get 7 individual randomed numbers between 1 and 39?I am making Lotto-game, so numbers should be individual. Like 1,7,9,15,20,35,39. Not 1,7,11,11,23,34,36.I have tried (Math.random() * 38 + 1); but ...

Pong game Problem

248 byte By titleoflibertya at 2007-10-1 3:12:03
I made a pong game applet that runs fine at home but when I try and play at school I get this error in the Sun Java Console:java.lang.NullPointerExceptionat Pong2.run(Pong2.java:47)at java.lang.Thread.run(Unknown Source)

2 questions about a java 2d rpg

642 byte By mitsurugi7a at 2007-10-1 3:14:47
1. In order to load an image from where the class is located, i used the following code:private Image loadImage(String fileName) {return new ImageIcon(fileName).getImage();}I use netbeans 4.0 and that will not load my image(ex. instead of hardcoding c:/game/images/sprite.png, i would rather ...

Cloaking Distortion

808 byte By Sentient-Absencea at 2007-10-1 3:15:48
I've been thinking about the visual effects of the wonderful -known-by-many-names- 'cloaking', 'invisibility except not invisible' 'active camouflage.'The general distortion that happens when you look at an invisible objects (the not completely invisible ones, visible enough to notice if ...

compiler error

225 byte By IcyFreaka at 2007-10-1 3:16:21
Every time i compile something it goes "Could not find the main class. Program will exit." And its not just my coding. The Hello World application from the site couldnt work either.What am i doing wrong?!

Animation Question

5265 byte By mitsurugi7a at 2007-10-1 3:23:54
I created a class that implements a KeyListener interface to move a character around the screen. However, whenever he moves around the screen, there is a trail following him. If i press ALT + TAB (using windows) then the image trail disappears. I'm using a buffer strategy, but for some reason ...

java space shooter game optimization

846 byte By sonofkyussa at 2007-10-1 3:38:42
HiI've just started a little space-arcade type of game.For now there's a ship but it doesn't do much: - moves (accelerated)- fires (SPACE bar)Now I'm going to start work on an enemy generator + collision test. After that: pick-ups, a status bar(remaining life, passed time and so on), ...

Anti-Aliasing error?

1813 byte By Sentient-Absencea at 2007-10-1 3:48:30
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 ...

Random numbers

169 byte By pocniba at 2007-10-1 3:48:37
is it possible to generate 3 random numbers from 1 through 5 including the numbers 1 and 5 and store them in three seperate ints. Numbers should be able to repeat

novice programmer image question

401 byte By pocniba at 2007-10-1 3:59:35
How do you display an image in java? I have just finished creating a slot machine game in GUI but would like to spruce up the viewing window with an image. The only problem is that I have no idea where to even begin with displaying an image. I have read ...

moving the ball

2580 byte By new_biea at 2007-10-1 4:02:14
public class Ball extends JFrame implements Runnable{int x = 10;int y = 100;int radius = 20;public Ballbewegung1(){super("Ball Moving");setBackground (Color.blue);start();setSize(400,400);setVisible(true);}public static void main(String[]args){Ballbewegung1 test = new ...

Test this game!

143 byte By andr_a at 2007-10-1 4:10:01
Hi,I just 'finished' this game: http://www.myjavaserver.com/~onchaos/I would appreciate any comments,thanks

In need of assistance

210 byte By xandersena at 2007-10-1 4:19:57
I was wondering if there was a way to edit code to and from a java applet while it is in use, so I may experiment easily with different outcomes or debug in real time?Any suggestions?Thanks

My game exhausts the CPU..

554 byte By Virus610a at 2007-10-1 4:26:34
Hi, I'm writing a game (Not open source, so it will be a little tough to help, but I can give bits and pieces of the code) and it runs nicely and all.. In game. But there are issues here and there.. When my game is idle (For example: Starting screen, "Game over" screen, or "You win" screen.), ...

3D Landscape help

190 byte By Razacka at 2007-10-1 4:43:07
I want to create a RTS-Game with JAVA3D and will display a visible, simple ground grating with null height.Then modificat with diferent heighest as the Map for the Game.

Keyboard don't work without mouse click into applet's window

1078 byte By Yuri_ukrainea at 2007-10-1 4:45:28
I am make the game by jdk (Sprite animation).I have created class ST(listens the keyboard), class BD(starts the animation thread)and class SL(controls BD class) inside MaraJ class:public class MaraJ extends Applet implements Runnable {... class SL implements ActionListener {public void ...

h-a-v-e-n mmorpg: NEED HELP!

146 byte By h-a-v-e-n_admina at 2007-10-1 4:49:12
hey guys, we are having problems at h-a-v-e-n_soft, we need some help with applet design. Could any1 offer to help? thanks, h-a-v-e-n admin

File Input Stream

245 byte By veryconfusedkida at 2007-10-1 4:51:04
i have a game and i am trying to make a high score table that saves onto a .txt I am using File and FileReader .. whenever i .right(), it wrties over everything that was previously in the textfile... how can i just append to the text file

Timers and Applets and Double Buffering oh my (really wierd glitches)

5920 byte By Tubbersa at 2007-10-1 4:51:13
Well I've been working on a physics project. I'm replicating the classic "Money and the Hunter" experiment in Java. My code compiles, the physics is correct and for the most part its really good. However, the computer gods cursed me two years ago, it seems whever I code applets something ...

Looking for game developers

87 byte By andr_a at 2007-10-1 5:07:27
Hi,I'm lookingfor people intrested in developing an online strategy game

How to make A MENU

205 byte By AngelFILAa at 2007-10-1 5:09:28
All game have a menu page (Start, option & etc). I was wondering how to make a menu for a game. How to make the button click-able? Must the back ground image & the button image be different?

problems with applet refresh

744 byte By YuriL_ukrainea at 2007-10-1 5:10:37
I clicked on "Refresh" button into my Appletviewer and animation runs again.But I have some errors :Exception occured during event dispatching:java.lang.NullPointerExceptionat sun.awt.windows.WGraphics.drawImage(Compiled Code)at MaraJ.paint(Compiled Code)at ...

Transparency Problem

2912 byte By new_biea at 2007-10-1 5:12:51
Hi everyone, In the code below, I do not understand why it can not used in JFrame. Is it Composite function must used in JPanel?I do not know how to solve this problem.Can anyone tell me how to solve it?Thank you very much!public class Ball extends JFrame {int x_pos = 10;int y_pos = 100;int ...

looking for cool java games for handsets

141 byte By susieq1a at 2007-10-1 5:17:35
hi alli am looking for cool java game demos for handsets.your recommendations are greatly appreciated.thankssusie

keyboard response is too slow...

1155 byte By luisofta at 2007-10-1 5:17:50
I have the following code in my mainLoop method:long lastLoopTime = System.currentTimeMillis(); while (true) { int delta = (int) (System.currentTimeMillis() - lastLoopTime); logic(delta); lastLoopTime = System.currentTimeMillis(); draw((Graphics2D) strategy.getDrawGraphics()); ...

Please Help (Mouse input and graphics for small game)

1881 byte By Solidarnosca at 2007-10-1 5:18:48
Hi everyone, I'm new to this forum, but it looked like a good place to get some help with a simple-ish game I've been working on. I sorta posted the beginnings of it on a forum dedicated to another cool game called Soldat.So that I don't have to retype much about the game itself, the link to ...

how much method will call if i call repaint()

110 byte By niravma at 2007-10-1 5:26:02
hi all if i call repaint() method then paint, update ,paintchildren will call but anyelse then plz tell

Game monitoring and controlling utility (screen capture, macros, etc.)

687 byte By afyama at 2007-10-1 5:28:35
I'm trying to find/write some code to monitor a game and control a 3rd party game. For example, grab screen captures from the game in full screen mode, run some calculations, then send a series of mouse moves/clicks and/or keyboard presses to the game to control it.I've come across some ...

About online game "lag" program?

276 byte By perfectlifepana at 2007-10-1 5:32:00
I've developed several online action game with socket/UDP and http connection but all sometimes lag when more and more player connect to server.Can anyone know how to enhance the efficiency among client/server communciation and processing in server with Java ~~thank~~

Java 5.0 Major Sounds Problems

1214 byte By ansassa at 2007-10-1 5:38:22
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 ...

Game Development reccomendations?

1487 byte By dcyuri7a at 2007-10-1 5:38:45
I am a 17 y/o junior looking at going into game develpment/programming and I have lately been looking for some places to, so to speak, start. I began learning Java early last year, and have heard multiple opinions on gaming in the Java language. I like Java because it is alot less confusing ...

JTextField in Game Dialog

365 byte By za_mrga at 2007-10-1 5:39:39
Hey, I was wondering if anyone could help with this game problem.I'm trying to make the game checkers, similar to the yahoo game environment. I am using the BufferStrategy to allow double buffering. The screen is repainting without flickering, but as soon as I add a swing ...

Little visibility issue in my game

1573 byte By Dashivana at 2007-10-1 5:49:22
Alright, so I got bored at work and started writing this game, and I grasp the concept of polymorphism, and inheritance, but the implimentation eludes me a bit. Anyway the run down is, I have a super class called Mob, from that two classes are extended, human, and monster. from those, more ...

Checkers game development

284 byte By the_twisted_twina at 2007-10-1 6:03:07
Hi,I have downloaded source code for an implementation of checkers from: http://math.hws.edu/eck/cs124/javanotes3/source/Checkers.javabut I'm unable to run it, I'm new to java and don't have any idea what to do, can anyone help?RegardsChris

Looking for JavaGL programmer to work on game GUI

765 byte By adamant_2001a at 2007-10-1 6:06:01
Good day, for the past six months I've been working on a 2d space combat and trading game called Rimscape.Based on user feedback, we're wanting to revamp the GUI of the game into a more windows-like environment. We've done up the graphics for this new GUI but are looking for a programmer who ...

Tutorial about Maps

682 byte By elwiza at 2007-10-1 6:15:06
Howdy!Does anyone know of some good tutorials/articles about how to play around with "Risk" like strategy games. I downloaded the source for JRisk from sourceforge but that was quite a piece to dig into.The problem is, my wordare book only talks about threads and 2-D shooters and so on, ...

Creating a projectile weapon -> Question <- 2D Platformer

874 byte By Silent_Flamea at 2007-10-1 6:23:50
Hi everyone,Have a quick question.We're creating a 2d platformer and hope to have a boomarang that our main player throws. It can kill and come back to the players x,y position. I was wondering the best way to implement this?We have a sprite linked list that contains all the enemies, powerups ...

API to control keys

106 byte By nasrin.na at 2007-10-1 6:26:34
I want to develop a game. I want to how to disable mouse and control the game through keys in java.

i neED hElP !!!

203 byte By Piojo_Arga at 2007-10-1 6:26:39
i have one a question for yours!its possible loggin in yahoo games in pool room whit my id : pioloox44with caps?.eg: PiLoOX44its possible? plz helpme!!!!!!! i need help

Detecting object component

349 byte By yunpinga00a at 2007-10-1 6:27:57
I'm writting an applet in which there're 3 objects(same class) on the screen, when I clicked and dragged the object, it'll move along with the mouse. I'm having trouble to let the mouse recognise which object it is clicked and dragged. Can anyone please help me? I'm new to Java and I need ...

Hangman problem - loops and if statements

8350 byte By bmxnskatera at 2007-10-1 6:28:32
in my hangman game, i am trying to make it increment the int checkLoseint whenever the letter clicked isn't part of the puzzle. I have tried many different ways, but since it is inside a loop it seems to always add more stuff than i really want. any help is greatly needed. Thank you in ...

Creating a Map

860 byte By Bluelikeua at 2007-10-1 6:30:56
Hello,I'm new to java, and programming languages in general, so I wasn't suprised when I had problems creating a map for my Online MMPORG game.So far, I've created three tiles: snow, grass and water. These tiles are 16x16 pixels large, and are in .gif format.To store these images, I used a ...