determining a good move in chess

2122 byte By RisseN at 2007-9-30 11:03:39
Hi everyone,Firstly, thanks to those who offered advice with my RPG. Its finished (well,...its at a playable state but now im bored of it), and now im busy making chess. I apoligize for the fact that this particular question probably has little to do with Java itself other than the fact that im ...

Issue displaying PNG file

2851 byte By tballan48 at 2007-9-30 11:04:42
I seem to have an issue displaying "some" PNG files. I am using the source code from Brakeen's tile game in his book. I have converted from using ImageIcon to ImageIO as my way of reading in images. Specifically, I have used the code snippet from Abuse about loading images so that they are ...

Java3D game problem(about wall)?(urgent>"<)

215 byte By perfectlifepan at 2007-9-30 11:04:59
I am developing a 3D shoot game which contain a 3D mase,but...why the wall is transparent when I run towards the wall?how can solve this problem?Moreover,I wonder how to run smoothiy in 3D game?

Looking for a Java 2D real-time multiplayer shooting game.

478 byte By tuoxie at 2007-9-30 11:12:24
For a course project, I need to implement some ideas about dead reckoning. Before that implementation I have to make a test environment. So if someone knows a Java 2D multiplayer real-time shooting game please let me know. I want to see it to get some ideas about how to simulate a test ...

Efficiency Issue

4374 byte By Malohkan at 2007-9-30 11:12:35
In my latest game, I'm experiencing some lag when I close menu's, so I assume the lag is caused by my close menu function ;) Here it is:public static void closeTopScreen() {lastScreenImage = GLUIUtil.createBI(Constants.MENU_WIDTH, Constants.MENU_HEIGHT, Transparency.TRANSLUCENT);Graphics2D ...

Loading screen for an applet that uses BufferedImage?

355 byte By Daisuke_J at 2007-9-30 11:12:40
Sorry for asking this but I'm curious how you make a loading screen for BufferedImages? So far I see applets use MediaTracker but BufferedImage already returns fully loaded pictures. So if the applet uses it, there is a startup delay while pictures download. How do you put a simple loading ...

can a sprite be an array?

135 byte By frustr8ed at 2007-9-30 11:12:59
i declared Sprite[ ] sprite (at netbeans) and it didn't throw any errors. i'm just wondering, can a sprite be an array?

query about display mode change

352 byte By MBRpascoe at 2007-9-30 11:15:00
In my code i select a display mode that is in the available display modes,800 * 600 * 32 bitI try to set the display mode to this mode withsetDisplayMode(wantedDisplayMode);but then the screen goes blurry and "invalid scan freq"appears on the monitorany idea what is happeningthanks ...

Saving/Loading Game issue

1356 byte By Malohkan at 2007-9-30 11:16:06
I'm coding in the save feature for my latest game and I've run into a conceptual problem. Some of the Ship objects will have targets when I save the game. Those targets are stored as other Ship objects. So really what's happening is they're storing the reference to the other ships in the ...

Rotating a slide animation sprite

2921 byte By akamikeym at 2007-9-30 11:18:06
I am writing a 2D game which uses sprites some of which will need to rotate. The following is the code i am using for rendering the sprite. I have tryed to write a version of the render to show the sprite (from the strip of pictures) then rotate it to fit onto the screen. I found that I was ...

Two screens?

448 byte By Tim-Student at 2007-9-30 11:19:28
Hello everyoneThe problem i have is i want to output to two different screens, for example the normal screen on a laptop and the laptops VGA port.(infact that is exactly what i want todo) Is this possible in Java? Also i would like to develope this in Linux (JDK1.4.2) But be able to run it on ...

linux and game and java

488 byte By melinda_sayang at 2007-9-30 11:20:26
I try to search some cool apps written in java in www.java.com, especially game but all of links from there..... is for Windows platform..... They are all in exe format file. GRRRRRRGHHHH.... I dont have Windows.....So I just ask my self....Is java really multiplatform?So is this because ...

my three questions

1080 byte By RBervini at 2007-9-30 11:29:31
I have this three questions:a) I want to get the fps and used memory of my application, I use this code but I don't get the right values:in the update method:long fps_1 = System.currentTimeMillis();paint(g);long fps_2 = (System.currentTimeMillis() - fps_1)*1000;long free_mem = ...

class instantiations help

1248 byte By frustr8ed at 2007-9-30 11:30:45
hello! my problem goes this way:i have 3 classes lets say a class in Canvas.java, in Player.java and in Map.java..private Player player;private Map map;..public Canvas {player = new Player (this, map);map= new Map (this, player);}i know this snippet returns an error in "player = new ...

Can anybody get data from internet server on Moto T720 & Sony Ericsson T618

809 byte By Prince_woo at 2007-9-30 11:30:46
Hi All, I am developping a game that should get data from internet server, But I found that the same code runs on nokia handsets very good, but it runs at Moto T720,will wait for 3 minutes and throw a "java.io.Exception:Close indication on open(0)" error; when it runs at Sony Ericsson T618,it ...

sprite transformation help

813 byte By frustr8ed at 2007-9-30 11:35:31
does anybody know how to transform the sprite smoothly? i mean, i have a character walking..there's no problem when it goes upwards or downwards..but when it goes left or right (i used TRANS_MIRROR) this is where the problem arise..the player skips a space or something before it moves..here's ...

getting nhra main event pc game back online please help !!!!!!

1796 byte By dragboy33 at 2007-9-30 11:35:36
i know whoever reads this will probably say here goes another rookie,but i have a problem i have researched exstinsively before posting here.Valuesoft a developer of pc gaming has had a series of games titled nhra drag racing,nhra drag racing 2,nhra main event,and nhra top fuel thunder. Well ...

big gif files x multiple gifs files

563 byte By luisoft at 2007-9-30 11:37:26
Hi,I have a question about performance:Is it better to have a big gif file with all tiles, sprites, and all other graphics resource for a game? Or is better to have for example: a medium gif file holding all tiles, a gif file for each sprite?In my opinion the second way is better, because I ...

Making a runnable file

363 byte By sariel86 at 2007-9-30 11:46:36
HiI created a game, and i want to make a .exe file out of the porject , so the user will just click it and it will work (assuming he has a java platform on his computer...)i tried to work with exe4j , but i had some problems with the jar files - i just don't know how to work with themcan ...

Efficiency Issue

899 byte By Malohkan at 2007-9-30 11:46:56
I just profiled my game and found that one of the most cpu expensive things happening is:for (int i = bgStartX-Constants.SYSTEM_TILE_WIDTH; i < Constants.GAME_WIDTH; i += Constants.SYSTEM_TILE_WIDTH)for (int j = bgStartY-Constants.SYSTEM_TILE_HEIGHT; j < Constants.GAME_HEIGHT; j += ...

Task manager & strange preload of images

1160 byte By RBervini at 2007-9-30 11:48:11
when I load my Frame if another istance of it is opened the pc crashes. I would like to know if is possible to check in the task manager to know if my frame is opened and if soI should close the other one before starting a new one.I have also this problem, when I start my game loading sometimes ...

something about collision and movement

369 byte By frustr8ed at 2007-9-30 11:48:39
hello! i have a player sprite moving in the game im developing. whenever it collides in an object (a rock for example), i call a method which stops it from moving in the current direction. my problem is, whenever it detects collision..it doesnt move any longer (its stuck there!). i just want to ...

Managing gif colors

734 byte By RBervini at 2007-9-30 11:50:40
I would like to know if is possible to manage all the gif colors and alterate them.Example: I have a road crossing with the light blinking but is only one image. In the light I have the color (255,254,254). I would be able to change that color to other colors so I can make a blink effect.If is ...

Menu system

1386 byte By namnet at 2007-9-30 11:51:25
HiWhat's the best way of dealing with game states?I'm leaning on having a system like this:gameLoop() {while(true) { if (gameState == GameState.INGAME) {updateGameObjects();drawGame();} else if (gameState == GameState.MENU) {drawMenu();} } keyPressed() {if (gameState == GameState.INGAME) ...

Game loop and MouseMotionListener

335 byte By namnet at 2007-9-30 11:53:42
My game is built up by a frame which implements both KeyListner and MouseMotionListener.Now I have noticed that while the game loop is running the frame only recieves KeyEvents but not MouseEvents.Why is this? Will I have to put my game loop in a second thread? Is there some other workaround? ...

Game slowness

957 byte By Black_Liquid at 2007-9-30 11:53:44
Hello all,Been pestering a friend of mine with my latest game attempt so I thought I'd pester the general public now. Seems the game ran a bit slow on his machine, but things seem tobe running fairly smoothly for me. Now his machine may not be a high end, super sonic beast, but the way I see ...

Game Music Slowdown

1532 byte By Rabid_Sponge at 2007-9-30 11:54:01
Hi, I'm making a 2D platformer and I added a thread (with the lowest priority) that will play midi files. The game now runs noticeably slower (it used to use roughly 2 -10% of my 1.73 gHz CPU, now with midi music it now uses about 40-75%)I've also tried this with .ogg and .mp3 files and they ...

creating transparent png programatically

401 byte By luisoft at 2007-9-30 12:01:42
Hi there!I am dealing with the following problem: I have a big transparent GIF image. I am writing a program to break this image in 32x32 pixels tiles and write each of this tile as a PNG. But now the new PNG file has no transparency. I want to have all this individual PNG files to have ...

Class extention

533 byte By Malohkan at 2007-9-30 12:03:42
I have a class called Cargo, which implements a class called Savable. Savable requires two methods to be defined, so in the Cargo class I define them. However, Weapon and SpecialItem extend Cargo, and I want it to be required that they also define the Savable methods, but even if I make them ...

CodeRuler: Medieval Java Training Game

535 byte By powelljgr at 2007-9-30 12:06:52
If writing mudane Java code is giving you the blues lately, maybe it's time to turn your medieval fantasies into reality. You can rule your own kingdom while refining your Java programming skills and mastering the Eclipse development environment all at the same time. It's all in a hard day's ...

Applet Client for MUD

327 byte By TheSnarky1 at 2007-9-30 12:09:10
Ok, would people recomend I use the GridBagLayout for the Applet client for my MUD? Or is another layout better? This client is going to be what the player sees when he accesses my site online. It'll do no actual work, just display some stats (4-10), have a big main text/scroll area, and a ...

[sos]online game

384 byte By ngb1997 at 2007-9-30 12:12:12
i wish to develop an online game , which is mastermind online game, one is gussing the peg another user is evaluation the pegs that correct or incorrect, i heard some one said tat should use the RMI, i am not sure, can i get some idea or recommendation? after i finish the game, where should i ...

[sos]Give me suggestion pls.

152 byte By tuoxie at 2007-9-30 12:12:39
I am required to write a game like this: www.tankmania.com in Java. If you have any suggestion please tell me and inspire me. thanks a lot

1.1 compatiable 3d engine?

382 byte By jamesfgreer at 2007-9-30 12:14:08
I work for a large game developer/publisher and am looking for a java 3d engine for applet-based web games. It must be compatiable with the Microsoft 1.1 VM, and require no plugin downloads. In other words, it must be a pure Java 1.1 engine. We're evaluating whether to build or buy, and would ...

Transparency slows game big time!

544 byte By Hasooni at 2007-9-30 12:14:29
When I make any object and set it to have transparency:AlphaComposite myAlpha = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f);g.setComposite(myAlpha);or Color newColor = new Color(255,0,0,100);g.setColor(newColor)then...g.drawXXX( ... );the game slows down hugely! I've noticed it ...

[sos] Online Game

284 byte By NickKuzovkov at 2007-9-30 12:16:31
I want do make my own online game. And the main problem for me today is that i dont know how to wite new text files to the server..... help me please. I suppose i need function in this topic or even the parts of code. or references to the examlesThank you/

2 questions regarding "moving screen effect"

649 byte By frustr8ed at 2007-9-30 12:18:00
hello, i have 2 questions regarding "moving screen effect"(a) what's the best way to show a moving screen effect? move all the sprites through sprites.move(x,y) or just set the view window via layer.setViewWindow()? or anything else?(b) while executing the moving screen effect, what is the ...

Donations needed!!

1351 byte By Morten@Think_different at 2007-9-30 12:21:35
Hello everyone! My name is Morten Hjerl-Hansen and I'm broke. I'm also a bit sad because I'm making a so called Kings Quest Type Of Game on the net and - you know - I'm totally broke. Danni and Petrea who are by my side in this crazy endeavour are also broke. In fact Danni is beginning to ...

Mapping from 2d to 3d

245 byte By java_trouble at 2007-9-30 12:26:37
HelloCan someone please give me a link or explain to me how or the logic behind mapping from 2d to 3d. I was told that you have to create a perspective plane. How do you do this?Any input will be a help.Thanks.

Who cares about duke pounds?

56 byte By Abuse at 2007-9-30 12:27:26
I certainly don't =)Magic penny :p

Scrolling Backgrounds

288 byte By L337H8R at 2007-9-30 12:27:42
I'm attempting to program a game that will require a scrolling background, but I'm not 100% sure what classes to use. I was looking into JViewport -- it certainly sounds like what I want, but like I said I'm not totally sure. Any information would be greatly appreciated.

problem with jar file

790 byte By kimos_cs at 2007-9-30 12:28:46
hi there,i recently made a game and now i want to make a runable jar file and then exe file of it.this is my manifest fileManifest-Version: 1.0Main-Class: RUN.StrategoCreated-By: 1.4.1 (Sun Microsystems Inc.)my main file is in the package RUNi made the jar file like thisjar cvfm Stratego.jar ...

1.5 beta 2 openGL pipeline in fullscreen.

1319 byte By afarmand at 2007-9-30 12:29:05
Thanks for your interest:I used System.setProperty("sun.java2d.opengl","True"); to use the new openGL pipeline and foundthat I can run my game in windowed mode with unprecedented performance (accelerated text, primitive shapes, etc.) however, I get an error when in fullscreen mode:Exception in ...

Compile Java to Exe?

412 byte By Real@JMan at 2007-9-30 12:32:43
Hi guys,I am C++/C# developer. All my products are distributed on Windows platform. Recently, I started programming in Java. As newbie, I have some questions. The most important is - Is any way to make each java application to be started as normal exe application. Also I'm interesting about ...

Mud Client Input Problems

519 byte By deathDrop at 2007-9-30 12:33:21
I'm in the process of writing a Java mud client and had a problem where occasionally I'll get irregular characters (as such  followed by the rectangular newline) or when I am being prompted for input the message prompting me does not actually come through until after I answer its prompt. I ...

Getting area from Image

472 byte By namnet at 2007-9-30 12:37:34
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 ...

Third party mod sandboxing...

344 byte By klana001 at 2007-9-30 12:38:55
I am wanting to be able to allow third party mods to be pluged into my game however since i cannot garentee that the mods will not access the local disk or do other bad stuff, is it possible to 'sandbox' the code of the mod? Basically i would want to allow the mod code the same functionality ...

Refresh problems

613 byte By Truchin at 2007-9-30 12:39:06
Hi, we are developing a classical chess game, and we started using the Swing JButtonwith success, but when we tried to run our applet in IE it failed... we read about it and we decided to implement our own ImageButton (extending button and creating an Image) , instead of downloading and using ...

Huge CPU using : where does it come from ?

12485 byte By TheStockholmSyndrome at 2007-9-30 12:41:10
Hi,I programm this beginning of game. It's prettty simple , a charachter which rotates following the mouse pointer. The problem is that this simple application uses about 66% of my Athlon 2200+ when I move the mouse.I don't understand , ok there are some mathematics operations and i use two ...

The ever so savvy "creating a java game" post

1320 byte By -Mark- at 2007-9-30 12:42:40
Hey, I'm creating a java game, and I did research, and found that this question has been asked many, many times. But my question unfortunately did not match up with any of these posts :( So here goes...Im creating a java game, which will run as....kind of a mix between a 2d game, and 3d game ...