Here is a challenge that rewards the best answer with $10,000 and their code in Borland's developer magazine each year. It's not easy!Networks are complex. Transporting data from point A to point B in the shortest time and traveling the smallest distance.Here, we have two variables - Speed ...
hello everybodyi m a java beginner and hope to make a game myselfi would like to make a offline RPG game at my first stepalso in my game there would be graphic interface as well(i have a bit experience in java swing)i m not sure j2ee, j2se or j2me would be best for game developingor even there ...
hi there,class MainClass{class other1;class other2;...public void main(...)}other1 needs other2, other2 needs other3 and so on..,so you see, for instance i'm inside other2's function, from within, i need to use other1 ie,class other1 { public void afunction() {// needs other2 }}so what do i ...
29287 byte By
lightxxxa at 2007-9-28 11:27:00
// theres 2 class and you need to make your own html file// create the following two classes as applications and compile// a bicubic patch is for 3d modeling /* authored by william motill date nov 27, 2002 this versions simply going to allow me to do one thing and that is make control point ...
HiIs it possible to cut a image which contain a lot of 24x24 tiles little image,then save each tile to gif or png?I whole like to build a map editor. with this function.Thanks
I made a java game tutorial at http://fletchergames.tripod.com/ (click on Java game tutorial). It includes some code as well. It's not much, but it's at least something for people who are just starting out making games in Java.If anyone has anything they want to add to the tutorial (it's ...
1505 byte By
Abusea at 2007-9-28 11:28:01
basically,im trying to find a way of hijacking an existing thread,so I can remove 'new Thread(this).start();' (and preferable be able to remove the run() method, and the Runnable interface.) in an application, you can bypass the need for a main() method by hijack the Thread initialisation ...
Hi!AllI have developed a Chat Application which has to be put up at the Clientsplace over the intranet,i have developed it using the Avalon FrameWork for the server side and applet on the Client side.Everything works perfectly,the application also runs perfectly,im using the port 4000 for ...
526 byte By
dchansa at 2007-9-28 11:30:15
Does anyone know where to find some example source code for communicating with USB devices via Java ?I downloaded the Java USB API version 0.10 and compiled the jsr80.jar file using ANT but the system seems unable to recognise the jar file as I can't use the properties of the API. There is ...
709 byte By
acaleroa at 2007-9-28 11:30:32
Hi all!I'm writing an isometric game engine using Java 2D API, in full-screen exclusive mode and using all the advantages of the new VolatileImage class. The engine is almost finished, I'm testing it putting some animated players on screen and showing the frame rate of the engine. Everything ...
Can someone tell me what the term image observer refers to. I notice in the constructor of TBuffered image that the last parameter refers to the image observer. Thanks Chip
6982 byte By
KX36a at 2007-9-28 11:33:53
This is all taken from a book, all i have done is put this code in a java file and try to compile it. What do I have to do to get it working? I'm very new. If i can get it working, it is apparently the basis for all Multicast things, but I cant get it working. By the way its a ...
56060 byte By
lightxxxa at 2007-9-28 11:34:26
this is a reposting of the code for a bicubic patch thier is one more file i will post the one shown here just allows you to draw and make clickable points/* authored by william motill date nov 27, 2002 this versions simply going to allow me to do one thing and that is make control point ...
Gah, just like on javarules as soon as I join everyone else leaves...I've only seen max 1 (including myself) people online at oncewhere are you guys? http://www.josrts.org
1. can a applet be used to start fullscreen on a veiwers computer from a webpage?to say can i use fullscreen mode from a applet?2. once the mode for fullscreen is switched am i basically able to plotpixels directly to the memory that the monitor is useing to update the screen?if so how do i do ...
does anybody use it?if you do, please help a newbie student figure out:How do I add an image to a frame or panel Do i use add(Image image) or something like that Or is there a simpler way.thanx.btw, if you do not use AWT, any help would be appreciated ...
210 byte By
Woogleya at 2007-9-28 11:36:27
Ok.. I made a game and everything, but it's just a tad over 4k, but I'm sure if I could include the images in the game jar, it would be under 4K. How can I use getImage to get an image from a jar file?
Hi,Can the authorization be respresented as an use case.I found a checke privileges usecase in the uml examples site. The checking of privileges is internal to the system and the user has got nothing to do with it. As per the use case definition, one complete business interaction between the ...
1368 byte By
mikic2a at 2007-9-28 11:40:19
Hi,I'm writing some code that draws the same rectangle twice: the first time on the default graphic context and the second time on a rotated graphic context. The code works and I get the two shapes printed as I wanted with the correct stroke of 3 points. But when I try to print these objects, ...
hi,okey, all my application defined classes/objects are all instantiated on my main class' constructor(ie, the class that has the main() function)but a lot of times, my own defined objects needs each other.., so how do i exatly tell my main class to return an object since i instantiated my ...
162 byte By
rprrsna at 2007-9-28 11:41:49
Hi all,I have an algorithm to add and subtract numbers which are in a char array.This is urgent. Appreciate your help,thanks,NR
i need a example of how to use a volitile image in exclusive mode with active rendering .anyone know of one or even partial code of how to do it ive been racking my brain trying to figure out how to do it.or even a example of fullscreen that i can use to draw to the screen in exclusive ...
I have a pretty nasty sum that consists of n number of nestedsummations. n is a parameter. I need a nice way of coding it. I'm thinking recursion but there might be a better way. for some reason I can't find much references on this.nikita
On identifying the usecases and their relationships in the sytem, we moved to sequence diagrams. Generally the sequence diagrams are the visual representations of the descriptions provided for each usecase. Now the problem is how to derive classes from sequence diagrams.It would be easier to ...
Hello Sir,Is it possible to Connect Microsoft IIS Web Server to J2EE Application server....if yes can anybody tell me how it is done.....Any suggestion or something that will help me is appreciated...ThanksSam
Hi! I齰e made a minigolf applet that齭 runs slow on most computers, I know that the problem lies with the drawing of the course. You can check it out at http://130.243.99.7/pph/pph0215/websida/java/minigolf_jar.htm.What can I do to speed it up? My course image is 27 parts that I cut out to make ...
1136 byte By
goquia at 2007-9-28 11:47:10
my program doesn't work: pls give the needed info so that i can make this thing work...thank you very much for your kindness...package ch4_32;import javax.swing.JOptionPane;class ch4_32c { public static void main( String args[] ) //{int x, Cntr1, Cntr2;//String how_many;//double fact, result, ...
443 byte By
daibhada at 2007-9-28 11:47:41
Hi, I'm developing a chasing game. The game is split into a number of levels and the object is for user to stay alive for as long as possible withing a time limit.Once the the time limit is reached the next level is shown.Any ideas on how to go about doing this. I've heard people using ...
160 byte By
zuloa at 2007-9-28 11:49:54
I have setup an memoryImageSource for animation.This image gets data from an array, but does anyone know how to make this array from a real Image?
Is there any rule against having a class without member variables?That is there is a class A and it has a set of functionality which qualifies being put in a separate class B. each time the method(s) of this class B are invoked we pass the parameters on which the method operates.Actually the ...
852 byte By
huangjda at 2007-9-28 11:52:20
Ive written a few networked things, but small scale. One was a tank game, and another was a scrabble game. Information being sent to the server and client was minimal. Currently im writting something much more indepth. So before, I just sent everything back and forth as strings. I started ...
import java.awt.*;import java.applet.*;class CardImage extends Component{private Image image;public void CardPicture(Image i){setSize(71,96);image = i;}public void setPicture(Image i){image = i;}public void paint(Graphics g){g.drawImage(image,0,0,this);}}public class Poker extends Applet{public ...
Eight Puzzle using Depth-first Iterative Deepening SearchDoes anyone have some sample code to explain how this works.psuedo-codealgortihmsactual codeI'll take anything
1071 byte By
mcr1084a at 2007-9-28 11:52:50
I have a somewhat complex question about graphics. I am making a 3D game. The algorithm I use is the painter's algorithm where you paint all the stuff behind it first, and then paint the stuff in front over that. So it uses a back to front painting algorithm. I was wondering if there is a ...
If i want to manipulate the screens pixels individually. and double buffer as fast as possible.Please tell me if i understand this right.To do pixel ploting since thier is no drawpixel method.i would want to draw my image in a array of say int's, then send that directly to the memory that the ...
432 byte By
ahbena at 2007-9-28 11:54:27
Scenario:I have a Java-based game server. The game clients are Java application.Problem:How do I make sure that only the game clients written by our company are able to connect to our game server? This is to prevent some hacker-class players who are able to reverse our clients and write their ...
1165 byte By
huangjda at 2007-9-28 11:54:28
I have a game ive been working on where clients connect to the server.Just started implementing movement, so all movement requests are sent to the server. The server gets the request (the new coordinates to move the player to), and starts a thread, and just spits back x and y coords for the ...
This is an excerpt from "UML Distilled" by Martin Fowler & Kendall scott(pageno.47)"How many use cases should you have?During a recent OOPSLA panel discussion, several use case experts said that for a 10-person-year project, they would expect around a dozen use cases. These are base use ...
284 byte By
GniBa at 2007-9-28 11:59:26
I was messing around with a random terrain generator just now and I realize I shouldn't be constatly redrawing the terrain in my paint() procedure so I was wondering if there are any ways that I can initially draw the background but not draw it again during the games progress
For josrts I need to be uploading & downloading via CVS. From trying it locally I've noticed that the windows user name (my real name) is stamped on the files.For the reason that I'd like to stay known *only* as shish (people would get suspicious if a non-shish was messing with shish's ...
238 byte By
asjfa at 2007-9-28 12:00:02
hi, is there a standard way in j2ee for distributing files? I'd like to deliver some (non java) software over the internet and don't want to reinvent the wheel in terms of security, roll-back etc..thanks,asjf
Why do we implement the singleton design pattern even if we get the same features by making a class members and methods static?Please help me out to understand the difference between these two.ThanksSachin Choudhari
696 byte By
Ganona at 2007-9-28 12:03:34
I've been writing several simple games and towards the end of development when the games get very close to the finishing point, they crash on me.When I say crash, it spits out a full blue screen full of text for half a second and then spontaneously restarts the computer. I never get a chance ...
I'd like to do a landscape such as the Team17 Worms game.What data structure should I use ?An image ? A matrix ? Something else ?Thank you to everyone can suggest me.
668 byte By
saju_ma at 2007-9-28 12:06:28
hi i'm new to class designs - pls help to get the good solution.i'm having 2 classed Customer and CategoryCustomer Contains...CustomerId,CustomerNameCategory ContainsCategoryId, Desc. i've to design a class in a way that i've to specify the category of the customer. is it feasible to add a ...
I am looking at some Java code and am trying to figure out thecode to the left of the equal sign:java.net.URL baseURL getDocumentBase();SO what is going on here? What is java.net.URL ?
440 byte By
huangjda at 2007-9-28 12:11:07
I made a jar file, put in the correct manifest to run it as an app. All the images im using are in there, but the only time my Jar file will actually execute, is when the jar file is double clicked in the classes folder that i created it in. So if i take out my jar file to my desktop and double ...
Hi all,I was wondering if you can help,I am programming a java game applet and have got a large picture placed directly onto the applet, which is updated with an animation thread. This doesn't look right and I want to put the picture in a JPanel so that I can arrange my GUI better. The usual ...
261 byte By
Jen_Ya at 2007-9-28 12:11:52
I'm having this problem with displaying my panel, it displays an image and it wasn't supposed to be affected when I resize the window / frame but then when I resize it (manually) the image just disappears... does anyone know what the problem could be?
421 byte By
Jen_Ya at 2007-9-28 12:11:55
I've made a screen (a panel) for a game I'm making which displays the options for the player (whether to play, quit, etc.) I have an image with "hotspots" and when he clicks on "Play", it's supposed to display on the same window. I've tried displaying the map panel for my game but the image ...