Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (601)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  U-wars  (Read 4283 times)
0 Members and 1 Guest are viewing this topic.
Offline Arvutis6ber

Senior Newbie


Projects: 1



« Posted 2009-06-11 19:44:13 »

Screenshot:


Applet version:
http://eee.pri.ee/uwars

Zip download:
http://eee.pri.ee/uwars/Uwars.zip

Just extract the file and game will start from .bat file.

Installer download:
http://eee.pri.ee/uwars/uwars-installer.exe

This downloads and extracts files into the same directory where .exe file is and starts the game.


Fire: right mouse button
Move: left mouse button (moves towards cursor)
New game: ctrl + left mouse button

From console you can see max hit and max damage combo information.

For making big hit combos you have to chase robot from south to north (in critical situation it dodges to north).

Offline DzzD
« Reply #1 - Posted 2009-06-11 21:11:25 »

this seems to be a quite simple game, why dont you provide an Applet version ?

NB: I wont test such game unless it is an Applet (and you will probably got a lot more feedbacks)

Offline Arvutis6ber

Senior Newbie


Projects: 1



« Reply #2 - Posted 2009-06-11 21:43:14 »

this seems to be a quite simple game, why dont you provide an Applet version ?

It would be vise and I tried, but it needs lot of changes...
Right now:

Quote
...
Exception: java.security.AccessControlException: access denied (java.io.FilePermission 01.gif read)
java.security.AccessControlException: access denied (java.io.FilePermission 01.gif read)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkRead(Unknown Source)
   at sun.awt.SunToolkit.getImageFromHash(Unknown Source)
   at sun.awt.SunToolkit.getImage(Unknown Source)
   at P1.start(P1.java:447)
   at Run.start(Run.java:21)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Exception: java.security.AccessControlException: access denied (java.io.FilePermission 01.gif read)
Exception in thread "AWT-EventQueue-4" java.lang.NullPointerException
   at java.awt.LightweightDispatcher$3.run(Unknown Source)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
...

Seems it needs lot of changes...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline DzzD
« Reply #3 - Posted 2009-06-11 21:55:08 »

hum... seems you try accessing file directly, just use getImage() to load your gif image

ex :

1  
Image i=getImage("01.gif ");


Maybe you would prefer to be in WIP section rather than showcase ?

Offline Arvutis6ber

Senior Newbie


Projects: 1



« Reply #4 - Posted 2009-06-11 22:16:25 »

hum... seems you try accessing file directly, just use getImage() to load your gif image

ex :

1  
Image i=getImage("01.gif ");



Nope

Quote
Toolkit t;
t = Toolkit.getDefaultToolkit();
img  = t.getImage("01.gif");


hum... seems you try accessing file directly, just use getImage() to load your gif image

ex :

1  
Image i=getImage("01.gif ");


Maybe you would prefer to be in WIP section rather than showcase ?

Well it`s not that troublesome to extract one file and doubleclick on bat file, don`t you agree? :/
Offline DzzD
« Reply #5 - Posted 2009-06-11 22:27:09 »

Quote
Well it`s not that troublesome to extract one file and doubleclick on bat file, don`t you agree? :/
no  Lips Sealed


Offline SimonH
« Reply #6 - Posted 2009-06-12 01:56:41 »

this seems to be a quite simple game, why dont you provide an Applet version ?
NB: I wont test such game unless it is an Applet (and you will probably got a lot more feedbacks)
+1  Undecided

For images in an applet use;
1  
Image image=getImage(getDocumentBase(), "image.gif");

if not an applet use;
1  
Image image=Toolkit.getDefaultToolkit().getImage("image.gif");


People make games and games make people
Offline gouessej
« Reply #7 - Posted 2009-06-12 05:31:22 »

Hi!

You could use Java Webstart, couldn't you?

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #8 - Posted 2009-06-12 11:16:05 »

Hi!

You could use Java Webstart, couldn't you?

much less troublesome. Wink
Offline Markus_Persson

JGO Wizard


Medals: 16
Projects: 19


Mojang Specifications


« Reply #9 - Posted 2009-06-12 13:41:29 »

+1  Undecided

For images in an applet use;
1  
Image image=getImage(getDocumentBase(), "image.gif");

if not an applet use;
1  
Image image=Toolkit.getDefaultToolkit().getImage("image.gif");



You can also load images via class loader resources if you want to include everything in a single jar.

BufferedImage image = ImageIO.read(Myclass.class.getResourceAsStream("/image.gif"));

Works everywhere, regardless of deployment method.

Play Minecraft!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Arvutis6ber

Senior Newbie


Projects: 1



« Reply #10 - Posted 2009-06-13 09:34:14 »

Installer download:
http://eee.pri.ee/uwars/uwars-installer.exe

This downloads and extracts files into the same directory where .exe file is and starts the game.
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #11 - Posted 2009-06-30 17:28:14 »

Installer download:
http://eee.pri.ee/uwars/uwars-installer.exe

This downloads and extracts files into the same directory where .exe file is and starts the game.

just make it a webstart, nice and simple. I hate to download executables. Cause it clutters up my desktop. And I do realize that webstarts install, but most people are afraid of installing programs :/. quite sad how paranoid/lazy we all are...
Offline Arvutis6ber

Senior Newbie


Projects: 1



« Reply #12 - Posted 2010-09-11 01:21:22 »

just make it a webstart, nice and simple. I hate to download executables. Cause it clutters up my desktop. And I do realize that webstarts install, but most people are afraid of installing programs :/. quite sad how paranoid/lazy we all are...
Well this is awful how many viruses are moving around nowadays and how many people are there with zero ethics (who programs those things) so it doesn`t suprise me.
I made an applet version of this game, but I can`t get it to work on my webspace, because I can`t change the Java security policy file (game needs to read images from the web server). Maybe I manage to create this webstart, I hope that Eclipse has a built in functionality for creating webstart launchers.
Still if someone has good firewall and antivirus installed and they try this game, then it would be nice if they report in this topic that it is a safe application.
But if any person manages to hack the server and change the .zip file, then it sure will be not safe anymore, so the possibility stays, but I think it is an application with too few users for trying this kinda thing.

And if you want to make big combos, then you have to chase robot from south to north (in critical situation it dodges to north).
Offline zoto

Senior Devvie


Medals: 4



« Reply #13 - Posted 2010-09-11 02:24:47 »

If you load your images the way Markus suggested you can place the images inside the jar. This way wont cause it to throw the SecurityException also.
Offline Arvutis6ber

Senior Newbie


Projects: 1



« Reply #14 - Posted 2010-09-11 16:04:23 »

If you load your images the way Markus suggested you can place the images inside the jar. This way wont cause it to throw the SecurityException also.
Thanks! I didn`t notice this earlier.

Here is the working applet version:
http://eee.pri.ee/uwars
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (29 views)
2014-12-15 09:26:44

Mr.CodeIt (20 views)
2014-12-14 19:50:38

BurntPizza (42 views)
2014-12-09 22:41:13

BurntPizza (76 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (50 views)
2014-12-03 16:27:13

CopyableCougar4 (47 views)
2014-11-29 21:32:03

toopeicgaming1999 (114 views)
2014-11-26 15:22:04

toopeicgaming1999 (102 views)
2014-11-26 15:20:36

toopeicgaming1999 (30 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!