Combat

4201 byte By outawatera at 2007-9-28 7:45:46
remember the game combat on the atari2600? i'm tryng to make a mockery :) of it in an applet, and am having a little problem.it is a one on one top view tank combat game. i want to make the Tank it's own class. i want to to draw itself and listen for keyevents to move itself. how can i do ...

ServiceLocator pattern

1441 byte By sblanc4a at 2007-9-28 7:45:52
Hello !I have the need of the ServiceLocator pattern: I am currently using JMS intensively in my application through a session EJB that creates the topic factory (and so on) if not yet created as a class member. for instance I have a getTopic method that creates the topic if the class member is ...

Passing arguments in Visitor Pattern

1582 byte By RomanRedza at 2007-9-28 7:50:41
Does anybody have a nice solution to passing arguments in Visitor pattern?The Visitor pattern is used to process an object structure (such as an abstract syntax tree) in many different ways without cluttering definitions of the objects with methods needed for all different kinds of processing. ...

Rotating an image

571 byte By cccBa at 2007-9-28 7:52:45
I am trying to make a 2d car game. With the left and right arrow-keys you should be able to rotate the car, and when you press the up arrow-key it should move forward in the chosen direction (in the same way like the spaceship in Asteroids). But how do I implement rotating?Is it possible to ...

MVC: Event Delegation vs. Observer/Observable

390 byte By jodiaza at 2007-9-28 7:52:47
I am learning Java and started my first Swing (standalone) application. While reading books and articles I found an article about two models that Java provides to base your application upon the MVC architecture: "Event Delegation" and "Observer/Observable".My question is, which one is better? ...

My collision problem!!!!!!

3028 byte By zainuluka at 2007-9-28 7:54:11
Ok here is all the collsion part of my game...hope someone can help.Ok this is the main class where everything is controlledclass MyGame{...marioCharacter = new MainCharacter(.....some parameters...);....//here the background is controlledbk_level_1 = new Scene(...some parameters...);...//test ...

multi multi threading

14327 byte By Shamisa at 2007-9-28 7:55:22
im trying to get my program to work It a shooting gameFor some reason it doenst workAm I on the right track for multi multi threadin?Heres me codeimport java.applet.*;import java.awt.*;import java.net.*;//used for soundsimport java.awt.event.*;public class GhettoStar extends Applet implements ...

how to create/draw playing cards

75 byte By nji78a at 2007-9-28 7:55:29
Does anyone know how to create/draw playing cards on a swing panel?

Open source UML tool for Code --> Sequence Diagram ?

138 byte By ratheeshpaia at 2007-9-28 7:57:14
Are there any open source / free tools which can generate sequence diagram from java code ?Thanks in Advance Ratheesh

animation thread not using repaint help

2872 byte By zuloa at 2007-9-28 7:58:46
hiI have made a simple applet moving a circle across the screen.But the animation is jerky,I use buffering but the circle stillgets sudden bigger moves though it should only move 1 pixel at each repaint.Could this be fixed with making a new thread that updates the position of the circle instead ...

Dynamic Bytecode Frequencies

201 byte By sartiniaa at 2007-9-28 7:59:09
Hi.. i'm in a bit of trouble. I need to calculate the dynamic bytecode execution frequencies in a program, i.e. the bytecode name & number of times executed. Can anyone help?Thanks.

Any good algo for a simple 3D collision detection (using 3d bounding boxes)

391 byte By Jeffrey_Cheea at 2007-9-28 7:59:12
Hi there, I've been developing a simple 3D engine for a game, and have been pondering over the topic of game collision, searched google and found out that collision detection is not as simple as I thought, is there any good advice on where to begin with?Thanks in advancepreview the 3d engine ...

Hotspot vs Classic

100 byte By sartiniaa at 2007-9-28 7:59:13
What is the advantage of Hotspot VM over Classic VM? Does the hotspot vm use method inlining?

What do you plan to do with java

550 byte By oo0speed0ooa at 2007-9-28 7:59:39
I know this is a game development forum, but I had one question. What does everyone 'who is nice at java example abuse' (i'm not saying that no one else is nice, but he's name is the most catchyest) what do you plan to do with java. Do you really want to make games in java for the rest of ...

Game Map Making

759 byte By huangjda at 2007-9-28 8:03:09
I got a problem, not too sure how to go about doing this coding wise.What i do is load in an image (a strip of multiple images), make it a bufferedImage, Then i paint my Canvas by doing a dbl for loop, getting the subimage, and painting that. So now, my canvas is composed of a bunch of ...

Is morphable terrain worth the performance loss? (Java3D)

2080 byte By mikeprossera at 2007-9-28 8:04:31
I am writing a 3D first-person game using Java3D. I call it Arabian Flights because it was inspired by the classic game 'Magic Carpet'. In Magic Carpet, the terrain could be changed in real time by spells such as volcano and earthquake. I wanted to have this feature in Arabian Flights, but ...

Bounding Box and Affineransform

8006 byte By outawatera at 2007-9-28 8:07:30
I'm working on a tank game. right now, i just have an applet and a little tank that drives around. unfortunately, i can't figure out how to get a bounding box to encapsulate with my image. can anyone help me? my prog is two classes: TankGame and Tank. Tank extends Rectangle and draws itself ...

Question about RPGs

405 byte By pommyJavaa at 2007-9-28 8:07:55
In an RPG how would one make money counts. Like would I have to make images like to 1000? Or just build images 1 - 9 and build the number. So if the players find $550 dollars and it adds to the $300, which equals $850. So i would call the 8 image, then the 5 image, then the 0 zero image, and ...

Newbie here

70 byte By gothmidgeta at 2007-9-28 8:08:50
anybody know where i can get some good beginner game tutorials?

Istalling application via sms.

267 byte By theurgicusa at 2007-9-28 8:09:22
i've got working application for Nokia 7650 and I want to install it on my Nokia via SMS (or other way that I don't have to plug in my mobile with PC), how to do this? By the way, are there any sites with detailed information about it?Lots of thanks.

DAO As Stateless EJB vs. Plain Java Class

484 byte By kms_avexusa at 2007-9-28 8:10:00
I'd like to get opinions on whether it makes more sense to implement a DataAccessObject (DAO) as a Stateless Session EJB or as a plain Java class. I'd prefer to implement it as a plain Java class as there is less overhead to create such an object and to locate it. As long as the connection to ...

Shopping Cart

114 byte By onarina at 2007-9-28 8:10:38
Shopping Cart can be built either by using JSP session variable or by a stateful bean. Which one is better?

2D Array Sort

352 byte By mattw123a at 2007-9-28 8:12:40
Hello,I am developing a Basketball Franchise mode game and we are importing all the players from .txt files but we are unsure of how to sort the imported players from the .txt file into the program so the starting lineups will be the best Center, the two best forwards, and the two best ...

Rigid Body Dynamics - who has implemented

310 byte By jimbob_ex2a at 2007-9-28 8:12:52
has/is anyone sumulating accurate Rigid Body Motions including collisions (using David Baraff's paper - can be found at http://www2.pixar.com/companyinfo/research/pbm2001/index.html)? I have started but got a couple of questions.i will wait for a reply before i post up my ...

how to go down the class tree

404 byte By babytruca at 2007-9-28 8:13:53
For example, I want to know what are subclasses of class Animal (here Dog, Cat) ?class Animal{ }class Dog extends Animal{}class Cat extends Animal{}Java reflection has a method to go up the tree getSuperClass(). How can I go down the tree ? If there isn't a method like that, please help me ...

Programming Models?

320 byte By nille40a at 2007-9-28 8:14:30
Hi everyone,are there any good resources for learning more about programming models (or patterns, designs or what ever it's called) such as Singleton, Connector, Reactor, Observer etc? I believe these resources should make programming a lot easier and more structured.Thanks on ...

How simple, map-based RPGs work ? Any examples ?

1375 byte By rafaelsantosa at 2007-9-28 8:14:38
Curiously, I am not a student asking a "please do my homework" type of question - I am a Object-Oriented language teacher in a local university, and as a suggestion from a colleague we'll ask some students to create a RPG-like game in Java.The problem is that I am too old to have played one of ...

Is there somthing wrong with this?

2009 byte By Sanjana at 2007-9-28 8:16:34
public void team1() throws Exception { String buyt1; player tempPlayer[] = new player[20]; int line=0; int total=0; boolean xloop; String select=new String(); FileReader filename = new FileReader("Boston.txt");BufferedReader In = new BufferedReader(filename); System.out.println("Boston ...

problem with sorting datastructures ....

1847 byte By Masom17a at 2007-9-28 8:17:29
Hello,i am a relative beginner in programming and have to solve a problem with sorting and analysing lists.the case:i have a datastructure (Vector) wich contains references to a second datastructure (also Vector). The first one handles spezial objects (extended Vector) from the type of the ...

Mze navigation

341 byte By javatypoa at 2007-9-28 8:18:48
Hey ppl, whats the best way to navigate through a maze? Pixel perfect (I know how to do that) or tile perfect (I dont know how, but have been recommended that I do so). Maybe if someone here could explain to me how to do tile perfect navigation of a maze, like a pacman maze, then I could ...

Single sign-on

601 byte By kurtlla at 2007-9-28 8:21:09
Hi all,I齰e got two different applications deployed at an unique weblogic server instance.If a user validates his access in one of those applicationes, he must have the possibility of "jump" to the other application without another validation.The EJBs are over the applications, they are deployed ...

Graphics instance

304 byte By fuchssaa at 2007-9-28 8:22:57
I grab a Graphics object from a frame at the start and use it. Is it safe to store this and use it whenever I want? If the VM moves objects around it does ensure my reference is always good? Just trying to make sure before I do something stupid. It appears to work this way from my ...

Why is Stack based on Vector and not LinkedList?

381 byte By mgbolusma at 2007-9-28 8:23:59
java.util.Stack extends Vector, and uses it to maintain the Stack.Why (of all things) is Vector used?ArrayList would perform better wouldnt it?And using LinkedList, or custom Link objects would be a better design, no? Is this a leftover from the days that people had no faith in Java's garbage ...

class diagrams...

680 byte By mahi18a at 2007-9-28 8:24:28
Hi there!I am new to OOD and just started working on it. I hope some of U guys out there can clarify this basic doubt of mine.I am working on a example case study. I have gathered the requirements and specifications of the system and got stuck where I have to draw clas diagrams from them. We ...

Send only changes or everything?

334 byte By khuongdpa at 2007-9-28 8:24:47
I am develop my first client-server game. My question is how could the server send the data to the clients?The clients have a JTextArea (uses to chat) and a JTable (uses to show how many players). Could these componments receive only changes from last update or the everything? ex. a row or a ...

how can i Re Order a 2D array?

1519 byte By Sanjana at 2007-9-28 8:25:21
this is what i want to happen, i want to move S.Clancy ahead of G. Buckner.(this is what i currently looks like)G. Buckner G 6-4 210 76 3 76 70 79 S. Clancy F 6-7 240 80 R 65 69 66I have these values in a txt file that is read into a 2D array.Now what i want to do is be able to swap there ...

Move Character in 2D Maze, use Mouse instead of Keyboard

383 byte By Katzuraa at 2007-9-28 8:26:20
Hi! Let say I have a 2D array tile map. If I want to use mouse click to point where my character will go intead of using Key event. Do I really need to implement some AI, like search for shortest path and avoid objects and walls, between the current position and the destination (Where I click). ...

Heavy Data Centric Application

623 byte By chitralaa at 2007-9-28 8:27:13
Hi,I have a requirement wherein I need to search data from a database of huge volume(database DB2 is on mid range server). I need to comeup with a j2ee solution for the same. I need to display the results on-line.Any suggestions how we can retrieve data fastly from a huge database of not less ...

J2ME games

180 byte By harshama at 2007-9-28 8:28:02
i want to implement a composite key control in my J2ME game. how? ys pl let me know if someone has done it before or if any one has any idea about how it can be implemented.

Accessing to files in differents servers

619 byte By rubenatoa at 2007-9-28 8:31:00
Hi: I am developing an application (with a public IP) with jsp's, customs tags and a database, and due to security roles, I should keep documents from a form (using multipart is easy and I got it!) into a different server behind a firewall, and I don't know how to make accessible to the ...

I would like some comments on this game

736 byte By richardbloemenkampa at 2007-9-28 8:31:15
Please test this game and give comments http://www.geocities.com/bloemenkamp/It was suppost to be some variant on the Amiga Peli Turboraketti game which I liked to play with my brother but maybe the rotating world is too confusing. On my Windows NT machine Pentium 400 is works fine, on a W2k ...

arkanoid paddle problem

1181 byte By El_Coyotea at 2007-9-28 8:32:30
I'm developing my first game, a small arkanoid game, and Ive made the paddle and got it to follow the movements of the mouse's yaxis. So good so far.I've noticed one thing so far: The paddle can go outside the the left side of the window, on the right it ...

I need your advice on appointment app

438 byte By kevin_oua at 2007-9-28 8:33:34
hi all,I am developing an appointment app. It has calendar and todoList. I have complete the calendar part and start to link up the appointment. I have calendar on the left split frame and appointment on the right. And whenever the user click on the day on the calendar, it should show all the ...

How to share EJB lookups between Session Beans?

587 byte By Marchionia at 2007-9-28 8:34:50
Hi all,I'd like to use the session facade for a Travel Agency Application.I'd like instead of a "fat" Session Bean that facades all EntityBeans, to split the business logics into 3 session beans,one for query info, one for booking and one for admin tasks.The matter is that, if I split the ...

Session Sharing between Multiple Application servers

132 byte By bondzoroa at 2007-9-28 8:34:51
Helo every one Can any one post fundaes on sharing a session on Multiple application servers.thanks in advance

Applet resources

270 byte By ranabpa at 2007-9-28 8:36:23
Hi,How do i make some policy file or whatever it needs for my applet to access files on the hard drive. They arent in the same folder as applet, it works with appletviewer, but not in browser. I know nothing about java security.Easy Way out ?

finding closest point

1519 byte By yundia at 2007-9-28 8:36:39
i wanna implement a operation that calculate a closest point to a Line from one point.the signature of the operation should bepublic Point getClosestPoint(Point p1, Point p2, Point target);the point 1 and point 2 form a line , the method should return a point on the line that is closest to the ...

Spell-Checker's Suggestions List

1217 byte By ChristianMennea at 2007-9-28 8:36:43
[I'd never thought I'd be back in here but well... at least I can use "my" Algorithms Forum for the first time.]I need some help about finding an appropriate algorithm for a spell-checker's "suggestions" list. The spell checker works simply as a "dictionary look-up", with a dictionary file ...

How Would I make a number?

580 byte By pommyJavaa at 2007-9-28 8:37:44
I've been thinking about this for some time now, but I still dont get it. Im tring to make a RPG, and in RPGs theres lots of numbers. Im tring to come up with a way to build a number from a given value in a varible. For example: The player has 1000 dollars, I want to show the number on screen ...

Download of levels into games

570 byte By aschuelkea at 2007-9-28 8:39:42
Hi, I just have the following problem:I want to write a game where the user will step through certainactions and finally reaches the ability to enter a new level.In order to keep the Midlet small in size I would like to download the next level on demand of the user only. That means I would like ...