318 byte By
ahar010a at 2007-9-28 3:59:42
Hi, i've written a tetris game in an applet.But i want some way of saving the high scores of everyone on the server.Is they anyway to communicate the final score back to the server from the applet?I tried saving the scores to a text file but apparently the file would appear on the ...
I'm working on a basic wireframe engine (I'm new on the game scheme of things)...I'd like to be able recieve input as well as be able to have a delay between my animations...does anyone have any pointers for me?
I was curious as to how you can get good random numbers out of Java? I've tried random.nextInt() % 100 to give me 0 to 100 for instance, but not only does it give negative numbers, which is undesirable, but it also seems to repeat a lot, without all that much randomness, like perhaps having ...
719 byte By
Plowa at 2007-9-28 4:02:01
Im in the progress of making a small game for the first time. Here is my problem. When a user makes a selection on what mode they would like to play, the action listener for that button calls a function that does quite a few things, in particular, instantiates an array and fills it with 33 ...
hi, i have a problem with my ai.ok i have a top view of a man with a gun....he has to find a person(the human player) in a room which is a square.I can make the man rotate on the fixed point i.hunter.setDirection(Math.atan((pl_x-compx)/(pl_y-compy)));basically this code just rotates.but how do ...
Hi, I've been doing some epperimentation with fullscreen exclusive mode recently and I need a way to put pixels directly to the screen (sorta, like myGraphics.putPixel(x,y,Color.white)). I've tried do emulate such functionality with a myGraphics.drawLine(x,y,x,y), but it doesn't work ...
have made a nice freecell player using only the java package downloaded from sun and windows notepad ;)I started writing it to see if it was possible to win any freecell game or if not all what percentage can be won. At first I wanted it to try all possible combinations of moves in a brute ...
Yo, does anyone know how to accelerate graphics?I made an aniamted gif file in adobe image ready,and try to add it to my game. The animation in my gameis crappy! It doesn't run smoothly. Its much easier todo animations in other programs such as adobeso i rather not do the animation in java, ...
I would like to know if there is any way of making a fireball, with images or other methods. Where can i find images like this?
This should be simple for all you experts:What is used to initiate the program from scratch again (i.e.new game), once completed?I have put a 'New' button in my 'File' dropdown, but don't know what code I should put in the actionPerformed method.Any help ...
ok i have a tilestrip which i use to tile the background(it is a top view of a racing track). I draw the tiles on to the graphics.screenImage = createImage(bgmapTileWidth*tileWidth,bgmapTileHeight*tileHeight);screenGC = screenImage.getGraphics();tiled belowfor(int i = 0; i <= numYtiles; ...
140 byte By
JTeena at 2007-9-28 4:21:46
My game sometimes looks like this http://www.geocities.com/fgdfg_dfgdfgd/on windows 2000 and xp, has anybody else gotten this?
Hi everyone, I'm quite new to the java scene, and had just made a simple game of Tetris. Hope to hear opinions (good or bad) http://www.comp.nus.edu.sg/~cheefoos/Tetris.jar~Jeffrey
558 byte By
ngw522a at 2007-9-28 4:32:47
My goal is to be able to move objects (let's just say a circle to simplify things) in paths. I can move them in lines, triangles and basic shapes. Easy enough. I haven't tried circles, but I am sure I can do that also. The difficulty is moving them in complex paths, for example an 8-shape, ...
425 byte By
salutia at 2007-9-28 4:37:33
I just made a trial version of a car game in java3D.To see it in your browser you have to download the JAVA3d extension (the URL is given on the main page of my site)Then you have 3 keysleftrightSpace bar to slide.(technical slide) http://membres.lycos.fr/kazkamikazcontact me at ...
I'm having trouble getting multiple threads to work.Here is the source I've got so farimport java.applet.*;import java.awt.*;import java.awt.event.*;import java.net.*;public class SubHunt extends Applet implements Runnable{private Image dbImage;private Graphics dbg;int appletSize_x = 340;int ...
Hi Guys,I'm creating an applet and i need to have some buttons on at the top of the applet and the bottom of the panel i need to use it to draw using drawString drawREct and stuff... Anyone can advise me or have any example to show me? 1) it will take in the input keyed in on top.. and draw ...
323 byte By
ibosana at 2007-9-28 4:56:16
I don't think I ever mentioned emulation of Miss Pacman I did few months ago. Check it out. http://www.ibosan.com/pacwoman/index.htmlI tested on 2 machines only win 98 & 2000. Let me know if you detect any bugs. I am sure there will be some. Especially if you start the game while it is in ...
564 byte By
Zyphrusa at 2007-9-28 4:56:51
Hi everyone,I'm trying to display sprites, and when their origin leaves the screen, they simply don't get drawn. They "vanish" as soon as they overlap with the top or the left border. How do I display an image there. Example code demonstrating the problem :// none of these images will be ...
This is probably yet another newbie question, but I have to ask anyway.I'm playing around with my first steps in the Fullscreen API, and Java2D, and I've been having some performance problems. I created a simple textured circle in Photoshop, saved it as a PNG with transparency, and loaded it ...
425 byte By
salutia at 2007-9-28 4:58:55
I just made a trial version of a car game in java3D.To see it in your browser you have to download the JAVA3d extension (the URL is given on the main page of my site)Then you have 3 keysleftrightSpace bar to slide.(technical slide) http://membres.lycos.fr/kazkamikazcontact me at ...
Hi everybody, I'm quite new to the java scene and recently have read up about the 4k game contest, I realised that there are so many kinds of code optimisation that can reduce memory/code/increase speed. Now I have a question regarding code optimisation.1> In most java tutorials that I have ...
29 byte By
Abusea at 2007-9-28 5:04:35
and the 2946th post :P
Hello all, I am fairly new to java and have recently been given an assignment to design a game, using a GUI. But all the books i have on java explain how to produce the game as an applet. Can anyone tell me any information on how to change the applet examples into GUI's. Any help would be ...
Hi guys, What's the difference between Canvas and Panel? Since I'm able to draw on both of them? For example, I have got users input from text field and would like to draw something with the given values, do i use canvas or panel to do the drawing in an applet?
Hi.I have experience with OpenGL and Linux game development.But I don't understand what I need to make java games!What API? Any books or tutorials? Anything?What I need to know to make 2/3D java games?Thanks
How can I recieve all topics from this forum on my email?
Is it possible to right java video games for this, http://www.palm.com/products/palmm105/, kind of palm pilot. And using what API is so?
869 byte By
ngw522a at 2007-9-28 5:07:41
I have always wanted to create a game in java but I will not use Swing components for obvious reasons. Thus I have decided to create my own in-game components. Many will be simple like buttons, checkboxes and so on. I have some questions before starting that hopefully somebody can help me with. ...
Hi everybodyDoes anyone know how to get Java 1.4.1 to accept accents such as ?, ` , ^ and ? I can't make (Component).processEvent or (KeyAdapter).keyPressed react to these neither directly nor via the following character (e.g. ?. I'm running Windows XP with a Danish keyboard, but I would ...
575 byte By
ryuujina at 2007-9-28 5:08:29
hey guys,I'm doing an applet, but need to get some drawing of strings and rectangles into the applet.My question is 1) How do I call the same Paint method to draw only certain things but not everything? Do I use IF Loop and CASE to do the checking? Isn't it looks messy and complicate to the ...
202 byte By
GemmaPa at 2007-9-28 5:14:21
I am new to Java and I'd like to make a game in it,but i don't know what to start with. I'd like a game that is fairly simple to make and not too heavy on the graphics. any suggestions?
Hi everyone. I have been creating a game for my Computer science coursework. So far i have the animation and the mouse movement working without any problem, but i can't get the collision detection to work. Can anyone have a look at the code and see what is wrong.import java.awt.*;import ...
452 byte By
Kayamana at 2007-9-28 5:18:09
Let's see your effects people, you can't ALL be making just games.Besides effects are very important in a game.Maybe this effect won't blend in any game (at least easily) http://personal.inet.fi/business/digitalpuppetsbut still.It seems to be a bit slow as an applet version, it's nicer to ...
483 byte By
LAOndaa at 2007-9-28 5:21:14
Hi all, :-)I have the following problem. I have a program who uses 15 threads. Every single thread must draw about 100 objects. I have tried to use buffered or volatile images for every single tread. But by the fourth thread it shows out of memory. Is there a solution for this problem to speed ...
Does anyone know a good way to detech game characters?Im using, rectangar images and Im having a hard time tring to come upwith a way to check if a character hits a wall or not.Can anyone help me out?Thanks
342 byte By
ryuujina at 2007-9-28 5:24:31
Hey guys,Can you sugguest? If I want to draw 2 seperate graphics, where only if the graphics on the left is complete before i draw the graphics on the left. Do you think its better for me to create 2 different panels? or what?And How do i control or check if the left graphics is completed ...
Whats the difference between J2EE and J2SE and J2ME? Does any of them matter for making games?
... erm... or something like that...Well, I intended for a nice, transparent switchover with lots of warning for all of the forum members, but fate conspired to produce pandemonium and confusion, so here we are.I was planning to switch web hosts around the end of the month, but my current (or ...
Hi all, I've developed a Beatmania style of game (incomplete and still developing). Currently there's only 1 song, and the refresh/sound sampling rate is very bad.Used Active rendering instead of passive rendering (with Abuse's advices)Please take a lookps: on my athlon 600Mhz it lags like ...
459 byte By
mkel25a at 2007-9-28 5:42:24
Hope this is the best place for this question, sorry if its not. I'm having trouble figuring out how to rotate a vector around an arbitrary point. The below snippet rotates the 2dvector whos points are ax and ay around the origin(0x,0y), but say I wanted this vector to rotate around a new ...
Hi, fellas...I'm wanting to build a game to simulate a CCG (Collectible Card Game). I want to be able to play it online with another buddy, who is also helping me code the game. Basically, we want it to be a card table (which we can both see) and we each have our own hands of cars. When I put ...
351 byte By
ranabpa at 2007-9-28 5:46:36
Hi, I am making a sprite animation, i wish to make my Image @ x1,y1 to move in a circle with a defined radius.I was thinking of using x*x+y*y =r*r, using the x1 in place of x and getting a new y and then using the new y to get the next x and so on. But it doesnt seem to be working. I think my ...
626 byte By
ryuujina at 2007-9-28 5:47:05
1)I have seen examples on the web on multithreading. But unfortunately, most of the time these websites only show one thread. Anyone have any examples of a real MULTI THREAD applet? A simple one will do. 2) Another question, when I'm using paint() I have included a while loop. Inside the while ...
Does anyone know a REAL good way to program animation?maybe something like:g.drawImage(image, X, Y, this);SomeThread.sleep(sometime);g.drawImage(image2, X, Y , this)SomeThread.sleep(Sometime);...Or is there another way to do animation. All I got in my games are one image just sliding across the ...
331 byte By
Abusea at 2007-9-28 5:53:15
I've read on javagaming.org, that through some cunning trickery, it is possible to get a hardware accelerated Volatile image, that has bitmask transparency.So, thats my Question - how d'ya do it?(I would have posted this question on javagaming.org, but it seems to be down atm (23rd Dec 22:15 ...
Hi everybody!I would like to get some advices from you, because I am having some difficulties with my game that I am currently developing.The problem is that while the cards are drawn on the screen (after the game is being played for a couple of times), the whole screen freezes. This also ...
872 byte By
JavaReda at 2007-9-28 5:55:49
Hello people!!. I'd like to development games based in sockets, with the feature of to be games really on-line.I don齮 speak of a conventional applet as chess,tetris...etc. For example, I have deveploment a simple game with 2 planes. There is code for the player (client code) and there is code ...
156 byte By
Abusea at 2007-9-28 5:57:31
Merry Christmas 2u all,from that little island just off the coast of America,otherwise known as the United Kingdom :)abu,
426 byte By
MJSWa at 2007-9-28 5:58:02
When I try to load in over around 30 pictures, I get this:Exception:java.io.FileNotFoundException: /System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/hwaccelexclude.properties (Too many open files) while loading default hwaccelexclude.properties file ...