Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 17th, 2002, 09:09 PM
irm_lexx's Avatar
irm_lexx irm_lexx is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 232 irm_lexx User rank is Private First Class (20 - 50 Reputation Level)irm_lexx User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 15 h 8 m 10 sec
Reputation Power: 7
applet game

Hi, I am trying to make an applet game called snake. You know the snake game it easts and gets bigger. I have some problems with snake's movments.

if anyone of done the game and are willing to share your code it would be very greateful.

thanks
__________________
Thank you for any help.

Reply With Quote
  #2  
Old June 18th, 2002, 12:35 PM
tron's Avatar
tron tron is offline
SwollenMember
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: the master control
Posts: 236 tron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 8 m 3 sec
Reputation Power: 9
maybe you could specify your exact problem with it's movements...you might not need to look at someone elses code.

Reply With Quote
  #3  
Old June 18th, 2002, 08:30 PM
irm_lexx's Avatar
irm_lexx irm_lexx is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 232 irm_lexx User rank is Private First Class (20 - 50 Reputation Level)irm_lexx User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 15 h 8 m 10 sec
Reputation Power: 7
you're right I figured out myself thanks anyways

Reply With Quote
  #4  
Old June 18th, 2002, 08:33 PM
irm_lexx's Avatar
irm_lexx irm_lexx is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2002
Posts: 232 irm_lexx User rank is Private First Class (20 - 50 Reputation Level)irm_lexx User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 15 h 8 m 10 sec
Reputation Power: 7
but I have another problem now

I have made some classes which are used by the main applet
which have Image in them

Code:
public Image img; 
img = Toolkit.getDefaultToolkit ().getImage ("C:/WINDOWS/Desktop/c++/java/project/peace.gif");


when I run the applet in html page it gives an error
Quote:
exception.com.ms.security.SecurityExceptionEx[Apple.<init>]: cannot access file peace.gif


Anyone know why and how it could be fixed?
P.S.
(ALL FILES EXIST IN THE SAME FOLDER AND THE APPLET RUNS FINE IN "JAVA EDITOR")

Reply With Quote
  #5  
Old June 26th, 2002, 09:36 AM
tron's Avatar
tron tron is offline
SwollenMember
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: the master control
Posts: 236 tron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 8 m 3 sec
Reputation Power: 9
img = Toolkit.getDefaultToolkit ().getImage ("C:/WINDOWS/Desktop/c++/java/project/peace.gif");

doesnt it need to be C:\WINDOWS\.....
also, it has been a while since i used java, but i know with C++ you need '\\' instead of '\'

Reply With Quote
  #6  
Old June 28th, 2002, 10:37 AM
AnotherKen AnotherKen is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 0 AnotherKen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The problem is your game is applet. And it has NO access to any files on local mashine. Imagine any applet stealing any file from your computer - nonsence ! The only place applet has access is the host it was downloaded from, so try donloading your image instead of direct file access.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > applet game


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway