Hi,I will be having a presentation in a few weeks on SMS wireless payments, and would require a practical demonstration of the system to a few students.The small system I would want designed should perform the following functions;Usage Scenario1. User indicates the desire to pay for a content ...
Hello forumI am a new developer and i want to ask something!I am doing a simple game something like space invader but for the alliens and my spaceship i am using images!until now no problem!i have put action listeners for the movements of the spaceship and it is ok!I want the opponents to have ...
I'm making an applet game, and I want to be able to time certain events , specified at my interval. .Thread blah = new Thread();try {blah.sleep(time);} catch (InterruptedException ex) {}^ doesn't work, because when this new thread is paused for x amount of time, the main thread in the applet ...
Ok, I have figured out how to draw a grid on a JPanel. Now, I want it so that when a person clicks on a square, it changes the color of that square.But, all the tests that I have done to try to do this have failed. If someone can point out how to do this that would be great. Here is the code I ...
Does JAVA support threding of functions instead of classes? if yes how?
577 byte By
nganlya at 2007-10-1 10:33:11
Hi,I need help with a card game for school project. When the user click on a card, I would like to card to move up a little as a way of saying the user selected the card. Eventually, the card will get played and disappear and moved the the playing area. But in general, here is how I draw the ...
Hi,I found the following code inside the forum and i'm trying to understand it.It appears to be a problem though. In particular the images(chess-pieces) are not displayed properly. The background of the gif images should be transparent but is not. Any advice?ThanksHere is the code:import ...
1222 byte By
pArsEda at 2007-10-1 10:39:47
I'm trying to store images in an array so I can paint them to the screen later. I use a class I call FileLoader to return an ArrayList of files that contain the image data. My problem is that when I use the Toolkit to get the images from the file, the image height and width are incorrect (-1). ...
383 byte By
nganlya at 2007-10-1 10:44:16
Hi,I've googled, but didn't find any useful information about creating java applet client/server game. I've followed the example of Client/Server Tic-Tac-Toe Using a Multithreaded Server in Java How to Program from Deitel, but I when I tried on Applet, my cliet doesn't communicate with the ...
I've been going through many of these posts on this message board only to notice that so many Java and would be Java programmers are having the same problem with animation as I am. Many of the problems seem to stem from the Graphics.drawImage() method. Simply put, we are asking the JVM to draw ...
Hi How to create anime pictures for games and which one is the best and easy software how to use them in java?plz helpthanx in advance
Does anyone have a link to a good (as in smooth graphics) Java game written with only the Java API and tested on Linux? An applet would be nice, but I would love to see any game that runs great on Linux. I'm not looking for source code per say, just proof that Java/Linux game programming is ...
Are there any benificial differences between type defs, and regular variables?I havent noticed any major differences, besides the fact that in every game applet source that i have seen, they are used.Comments?
I'm looking for input, pros & cons, and whatever docs/articles anyone can provide to help me make this decision.
Dear friends!I continue the programming of my L. Squad project: http://stridmann.narod.ru/java/lsquad/Any suggestions are welcome!And question:How to make the explosion picture dynamically?
Hello everyone!I wonder if there is somebody who can help me with the following question:I want to get what is currently draw on a jpanel and then set the result as "background" on an other jpanel. Is this possible?Have a beatifull day!
I would like to make a screen saver in java. But i do not find in the appropriate documentation classes.Can you help me.My screen saver may ask a password when the user want to exit it.
I am now developing a game which need to detect if the mouse is moving, but it also need to detect if the mouse is moving outside the game frame. Does anyone help me solve this problem?hank~~
File file = new File(filename);file.createNewFile();in = new BufferedReader(new FileReader(file));out = new BufferedWriter(new FileWriter(file));When I call this code, the existing contents of the file in question are completely erased. Can I avoid this in some sensible way? ...
Hi everyone,I have created a game (java applet). Works fully, and has some basic game strategies, but I need to implement some complex AI strategies - such as minimax? minimax(alpha-beta)? A* ? End game database? - I need any two.If you are good with this sort of stuff it could be done in 3 ...
hey everyone, I have a pretty simple question. I am making a very very simple game for my (highschool) programming class for my final project and I need some help with the collision data.I know for a fact that I barely know enough to even begin a simple game, but I have to learn sometime. The ...
127 byte By
divs444a at 2007-10-1 11:55:07
HiCould anyone give me a source code for 1 player chess game in java windows programming(not applet programming).
Been working on this game for about 2 months now, i work on it when i get free time between high school and sport etc etc.Its a 2D Tiles based multiplayer shooter, everything works as it should at this stage, but my FPS is well below what i would like and probably require.Previous to adding ...
Having trouble with my minmax algorithm for my game. Keep getting StackOverFlowError - possible due to too much recursion? If it is too much recusion - ie the game tree is too vast what should I do?This is just for a Dominoes game - so I didnt think it would be that complicated :SAny help / ...
Hey guys!I'm just wondering if anyone could help me with detection an intersection of two lines/lines segments.Say i've got the end points of the two lines, i want to write a function such that it'll only have to return boolean (true/false) if and when they intersect. I.e. something like : ...
I have arraylists of the shots and the enemys. For some reason when I compile its not finding some of my methods that I call using the objects in the arraylists. All of the classes have the methods that it says they dont and they compile, my guess is somehow I'm not getting the object out of ...
Hello fellow java geniuses! I am currently trying to create a real simple HANGMAN game using java. I have search google for very basic code but have only run into very intricate code that usually incorporates a java applet. I, however am just looking for code that does the basic functions of ...
I've got a very simple Swing-based puzzle game. When the user performs certain actions, I want to play a trivial little sound. So far, I'm using the Java Sound API (javax.sound.sampled). When the actionPerformed method is called, my model is updated, which triggers an event in the same ...
Just an innocent question, don't throw any rocks... Do you guys think that Java would need an optimized JVM for games, at least the more CPU-intensive ones, or the existing one does fine? I'm not talking about changing the language, but changing the JVM specification, maybe by allowing ...
I am creating a Dominoes game. I have implemented a minmax strategy with alpha beta cutoffs, are there any other feasible methods i can adopt in creating an artificial opponent. Something like 'end game database' but can't see how i would implement that in the game of dominoes?! Any help or ...
Ok, i have some games and I want to be able to call a php script, pass in the user's score, and retrieve the high score. I was researching this and I found the following code in this forum:try {URL url = new URL(codeBase, "../otherFormName.php");URLConnection connection = ...
10229 byte By
Sangea at 2007-10-1 12:47:27
Well, my friend and I are working very diligently on a Pacman game and had it working perfectly... with just PacMan. We have never really explored or used threads, and have only used buffering sporadically.So we decided to use Threads on this project of ours, since we wanted the Ghosts each to ...
Hello everyone,I am sorry if this turns out to be a trivial question but, could you please tell me what the current facilities available in Java for game development for the PS2, Game Cube and X-Box? Is there any possibility to migrate from code warrior to java?I do appreciate your answers, - ...
I want to create a graphical RPG in java, the problem is I'm really sure how to structure the classes and how to design the graphical system of the game.I'm thinking about making the interface final fantasy-like, but I don't know how to use things like sprites and how to get graphical and ...
809 byte By
studya at 2007-10-1 13:02:05
I want a midi to be playing during my game. Board is the display class and the driver is simulation. when i run it, i get a nullpointer exception for i think getDocumentbase()here is some of the code for board that uses audioclip.public class Board extends Applet implements KeyListener, ...
hi...I'm trying to show things in a full-screen window - resolution should be 800 x 600it works fine on my computer (Pentium 633 w/ Windows 2000 with an old-*** Video card)I tried it somewhere else (Windows XP w/ Athlon something with an all new Video card)the problem that appears is that the ...
hi,I've recently decided to try my hand at java again, had some sucess building an asteroids type game, now trying my hand at a version of pacman but am running into a few problems with the constructors for the game entities..
I am working on a java RPG where i have different room objects. I am trying to get the program to play a song for a specific room. The program is an application so the play method for applets will not work. I have the rooms being instantiated and created in a GameWorld class that puts items ...
254 byte By
t9643a at 2007-10-1 13:17:08
i have a game applet in a Frame.. the annoying thing is when you run it.. u have to click the screeen before u can use they keypad... there has to be some meathod that makes the frame the "active window" so u dont have to click it before playing..
942 byte By
Astrofa at 2007-10-1 13:23:02
ok, there r going to b multiple questions, and please answeri am a noob to java, and was wondering how to put an image as a background (of a JPanel). i am making an RPG (and many people have told me to turn down, and I WILL NOT QUIT UNTIL I FINISH IT!!!!!) it is going to b a simple one, like, ...
I am creating a 2D sidescrolling game. I use an int to decide which direction to move. I user the timer and timertask classes. As of right now the program is only capable of handling one key press at a time.I plan to increase its capabilites in the future.I cancel the task after any key is ...
6114 byte By
hoang01a at 2007-10-1 13:24:29
Hello folks this is the first time posting here. I'm a bit of a noob... ALOT of a n00b at java, i guess that's why i'm doing a course in this, but here's my problem:public abstract class Creature{/*** The size of all Creatures is the same as the size of Game squares.*/private static final ...
1663 byte By
ry4nxkra at 2007-10-1 13:35:15
Hi, I am one of the high school students who are doing java.Please help me with this GamePanel.java:import javax.swing.*;import java.awt.*;class GamePanel extends JPanel{public static final int ROWS = 4;public static final int COLUMNS = 7;public static final int SIZE_OF_DOT = 6;public static ...
Hi, I need to program dialogue and plot events into an RPG I'm making. I was guessing you would search through and read in files containing all of the dialogue and I have no idea how to represent the plot events since it's not just text.Any advice on this topic would be great.
Hello, I am pursuing a career in game development. Here's my delimma:Everyone informs me that C++/OPENGL is "the only way to fly" in 3D gaming. That's great and all, but C++ is so much more... odd than Java.What I'm saying, is that Java flows; it makes logical sense. C++ on the other hand, ...
Does anyone have a site that has a basic set of card pictures along with some pics of just hearts clubs diamonds and spades? Thanks alot
How do I get rid of the jerky moveent of a character? I have a timertask that does all the action every 30 miliseconds. I also have a javax timer that goes right after the timertask that repaints. My characters move in a nonuniform fashion. I don't think the interaction between the threads is ...
Alright well i am trying to fill in this image with a color in fireworks and it only fills in certain points. The image is made up of straight lines and arcs.It is in the shape of a poker table and I am tryng to fill in the whole image with one color, but it only fills in on the arcs from the ...
523 byte By
Astrofa at 2007-10-1 14:00:31
ok, i am out of ideas. i thought i cud make the player move, by making a grid layout and adding him to the layout, then noticied that it adds based on components, and not like an array (i thought with gridlayout u cud just go and do add(component, 5, 5) but u can't....and i tried adding blank ...
Hello,I am making a 2d racecar game. The game now works with a single car being driven by a player. I started figuring out how to add some computer players, but I got stuck. Can somebody help me with some hints about what to look for. The game uses bounding boxes for collision detection. Also I ...