AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem running game in applet

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
AP
Guest





PostPosted: Fri Jul 15, 2005 4:42 pm    Post subject: Problem running game in applet Reply with quote



Hello, I am creating a simple shoot em up game which is similar to space
invaders. When the ship fires, it shoots a red line upwards. This is
achieved by moving an image one pixel at a time up the screen with a 3
milisecond gap (Thread.sleep(3)).

The game runs fine in appletviewer but I get problems when I actually try it
in the browser.
Whenever I try to run the program in the browser, the background does not
show. Also, as soon as the ship fires, it immediatly hits a target (unlike
in AppletViewer where there is always a 10 second gap from when the ship
fires until a target is hit).
These problems occur when using the MSJVM 5.0 Release 5.0.0.3805.

There are no problems when using Sun's JVM, however I need the program to
work using MSJVM.

I am compiling the code using JDK version 1.3.0_05.
Hope someone can help

--
AP



Back to top
Andrew Thompson
Guest





PostPosted: Fri Jul 15, 2005 11:03 pm    Post subject: Re: Problem running game in applet Reply with quote



On Fri, 15 Jul 2005 17:42:34 +0100, AP wrote:


Quote:
These problems occur when using the MSJVM 5.0 Release 5.0.0.3805.

Because the MSVM loads faster than other VM's, it can
break fragile code that works on the others.

Steps to fix:-
- Check your console. (making sure you are not 'swallowing' exceptions
If you cannot fix it from console messages..
- Load the applet classes, (SHORT) source and image(s) to a
free site and give us the URL.

--
Andrew Thompson
physci.org 1point1c.org javasaver.com lensescapes.com athompson.info
LOADING....

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.