Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2 3
  ignore  |  Print  
  space invaders(again...) wait it is different ;)  (Read 7190 times)
0 Members and 1 Guest are viewing this topic.
Offline h3ckboy

JGO Coder


Medals: 5



« Posted 2009-01-31 11:26:32 »

ok so I know you are thinking AWW ANOTHER SPACE INVADERS!!! but this is a different style. instead of the guys going left to right. they come down at you. here is a link to the download.

http://sites.google.com/site/gamesunkown/games-1/space-invaders

it says the controls there.

it isnt that great but it is my first *cough*ok*cough*game

tell me what you think/how to improve.

to see what is added or going to be added just look in the website.
Offline gouessej
« Reply #1 - Posted 2009-01-31 12:03:05 »

tell me what you think/how to improve.
Please add a Java Webstart link, it is very simple. Your JAR doesn't work. When I enter:
Quote
java -jar space\ invaders.jar
I get only a gray empty window.
When I decompress the JAR, I enter:
Quote
java dodge
I get only a gray empty window.

How can I launch your game?

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #2 - Posted 2009-01-31 12:14:29 »

READ the README the as the name implies. you have to press any key to continue.
sry if I didnt explain this. I  have jsut uploaded a new version.

there is now a logo at the start.

once again I am sorry about the grey screen. I did not realize it. I  have done it for all of my games and this first one put up so it is just natural to me.

about hte websart... I have tried I have never quite figured out how to do it. If you could help me get it I would be ever so greatful
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #3 - Posted 2009-01-31 14:47:00 »

READ the README the as the name implies. you have to press any key to continue.
The previous version didn't work whatever I did, even clicking etc... it is not my fault, I'm not stupid.

sry if I didnt explain this. I  have jsut uploaded a new version.

there is now a logo at the start.

once again I am sorry about the grey screen. I did not realize it. I  have done it for all of my games and this first one put up so it is just natural to me.

about hte websart... I have tried I have never quite figured out how to do it. If you could help me get it I would be ever so greatful

Now I get this but I see something:
Quote
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at dodge.keyPressed(dodge.java:160)
        at java.awt.Component.processKeyEvent(Component.java:6092)
        at java.awt.Component.processEvent(Component.java:5911)
        at java.awt.Component.dispatchEventImpl(Component.java:4501)
        at java.awt.Component.dispatchEvent(Component.java:4331)
        at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
        at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:704)
        at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:969)
        at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:841)
        at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:668)
        at java.awt.Component.dispatchEventImpl(Component.java:4373)
        at java.awt.Container.dispatchEventImpl(Container.java:2081)
        at java.awt.Window.dispatchEventImpl(Window.java:2458)
        at java.awt.Component.dispatchEvent(Component.java:4331)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at dodge.keyReleased(dodge.java:164)
        at java.awt.Component.processKeyEvent(Component.java:6095)
        at java.awt.Component.processEvent(Component.java:5911)
        at java.awt.Component.dispatchEventImpl(Component.java:4501)
        at java.awt.Component.dispatchEvent(Component.java:4331)
        at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
        at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:704)
        at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:969)
        at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:841)
        at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:668)
        at java.awt.Component.dispatchEventImpl(Component.java:4373)
        at java.awt.Container.dispatchEventImpl(Container.java:2081)
        at java.awt.Window.dispatchEventImpl(Window.java:2458)
        at java.awt.Component.dispatchEvent(Component.java:4331)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Look at this, this is my JNLP file:

Quote
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://tuer.tuxfamily.org/" href="tuer.jnlp">
  <information>
    <title>TUER</title>
    <vendor>Julien GOUESSE</vendor>
    <homepage href="http://tuer.tuxfamily.org"/>
    <description>Small Quake-like written in Java + JOGL</description>
    <description kind="short">kill them all!!</description>
    <icon href="tuerLogo.png"/>
    <icon kind="splash" href="tuerLogo.png"/>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions />
  </security>
  <update check="always" policy="always"/>
  <property name="sun.java2d.noddraw" value="true"/>
  <resources>
    <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="32m" max-heap-size="256m"/> 
    <extension name="jogl" href="http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1/webstart/jogl.jnlp" />
    <jar href="tuer.jar" download="eager" main="true"/>
  </resources>
  <application-desc main-class="connection.GameServiceProvider" />
  <component-desc/>
</jnlp>
The important things that you have to change are in bold. Remove JOGL too as you don't need it. Use getResource(...) to get your URL in your program. kevglass wrote an excellent tutorial about Java Webstart, you should have a look to it.

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #4 - Posted 2009-01-31 15:14:20 »

com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://sites.google.com/space invaders.jar
   at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
   at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
   at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
   at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
   at com.sun.javaws.Launcher.downloadResources(Unknown Source)
   at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
   at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
   at com.sun.javaws.Launcher.launch(Unknown Source)
   at com.sun.javaws.Main.launchApp(Unknown Source)
   at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
   at com.sun.javaws.Main$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

that is the exception I am getting when I run my jnlp.

here is the code I have so far:

<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://sites.google.com/site/gamesunkown/games-1/space-invaders/" href="spaceinvaders.jnlp">
  <information>
    <title>space invaders</title>
    <vendor>games unknown</vendor>
    <homepage href="http://sites.google.com/sites/gameunkown/games-1/space-invaders/"/>
    <description>a new twist to space invaders</description>
    <description kind="short">kill them all!!</description>
    <icon href="tuerLogo.png"/>
    <icon kind="splash" href="tuerLogo.png"/>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions />
  </security>
  <update check="always" policy="always"/>
  <property name="sun.java2d.noddraw" value="true"/>
  <resources>
    <j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" initial-heap-size="32m" max-heap-size="256m"/> 
    <jar href="space invaders.jar" download="eager" main="true"/>
  </resources>
  <application-desc main-class="dodge" />
  <component-desc/>
</jnlp>


Oh yeah and btw the error you have always happens. I dotn know why. it still works though.

does the game work for you?


also so that there is now more confusion it tells you to press any  key to continue.

Thanks for fast reply.


EDIT: I know the problem, it is looking for space invaders.jar it should be looking for spaceinvaders.jar. only problem is that when I edit the file it does not change. it is like a glitch or something.

2nd EDIT: nvm I got it working. but how do you sign it. I am going ot mess around witht eh stuff the tutorail says. I will delet this post if it works.
Offline gouessej
« Reply #5 - Posted 2009-01-31 15:58:29 »

To sign a JAR, you need to use the command called "keytool" in order to generate a key and "jarsigner" to use this key to sign your JAR. Watch this:

Quote
keytool -genkey -alias gouessej -keypass xxxxxx -storepass xxxxxx -keystore key -dname "CN=Julien GOUESSE, OU=engineer, O=none, L=PARIS, S=FRANCE, C=FR"
jarsigner -keystore key -storepass xxxxxx tuer.jar gouessej

"key" is the name of the file containing the key. Modify the lines above to do what you want. I hope it helps.

Edit.: under Windows, you might have to enter keytool.exe instead of keytool.

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #6 - Posted 2009-01-31 16:05:16 »

I have made a keystore named myKeyStore. but when I sign it looks for .keystore. I am still looking but hwo do I make this.
Offline gouessej
« Reply #7 - Posted 2009-01-31 16:54:12 »

I ahvfe tried i get an error saying it is not a command Sad. do I ahve to be in a specific directory when I use the command?
You don't need to be in a specific directory to use the command "keytool.exe" but if its path is not in the PATH environment variable, you have to use the full absolute path to use it. For example, under Linux, keytool is in /usr/bin/; if its path was not in the PATH environment variable, I should enter "/usr/bin/keytool" instead of "keytool". Under Windows, I don't know where it is but you can find it easily.

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #8 - Posted 2009-01-31 16:55:31 »

to explain this. I dont have full rights on my computer so I have it just as a file. so I had to go to the locatioin. it all owrks now. excpet wwhat I said in my last post.
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #9 - Posted 2009-01-31 17:32:43 »

kk the webstart works. WOHOOO. that was hard. but worth it.

only one problem. when I run it with webstart the logo only appears for 1 second then goes away leaving you with a grey screen
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Corvinex

Senior Member


Projects: 1


Work Hard, Go Pro.


« Reply #10 - Posted 2009-01-31 17:44:33 »

I tried the game, but I die very quickly. There is either no reset game implemented, or it freezes right after dieing. Is that not implemented yet?

"Do what you love and you'll never work a day in your life."
Android: Pac-Ball
Web Applet: Virus Effect
Old Games
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #11 - Posted 2009-01-31 17:45:38 »

yeah sry I am gunna try and a have a choice dialouge thing popup and it says "try again" and you can try again. Ia m actually about to code that right now. will post when done.
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #12 - Posted 2009-01-31 18:26:01 »

sry it took me so long. but it is there now.

enjoy!

keep the ideas coming!
Offline Corvinex

Senior Member


Projects: 1


Work Hard, Go Pro.


« Reply #13 - Posted 2009-01-31 19:08:18 »

Great start overall.

A few issues I saw were upon start up, I got the gray screen. Then I pressed space bar and it went into the game.

Next, I think you should make the hit boxes on the enemies a little bit smaller, instead of the size of the image. This gives a little leeway on what is a hit and what isn't.

If you put in more and more features it could get a lot funner.

Oh and there are only two levels? After I beat the second one it just quit.

Keep it up.

"Do what you love and you'll never work a day in your life."
Android: Pac-Ball
Web Applet: Virus Effect
Old Games
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #14 - Posted 2009-01-31 19:10:12 »

IT DID!! it is not supposed to. it SHOULD jsut og on forever. there are only 3 ships so far though.

I like the boundary suggestion.

I will look into the ending on lvl 2 thing.
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #15 - Posted 2009-01-31 19:27:08 »

ok I have changed the boundaries. I fixed the lvl 2 problem. it was a capitalization issue.
the problem with the grey screen I am as confused about as you. In the jar it will run perfectly. there si the same screen as when you retry. if you can think of any reasons for this please tell me.
Offline Corvinex

Senior Member


Projects: 1


Work Hard, Go Pro.


« Reply #16 - Posted 2009-01-31 19:49:06 »

Yep that worked, I have no idea about the gray screen though. Maybe its a focus problem.

Game play wise I suggest making it go from super easy, to the level you have it at currently. This would include the enemy speed, bullet speed, and maybe enemy count on screen. Then it just progresses from there.

Farthest I got was level 3.

"Do what you love and you'll never work a day in your life."
Android: Pac-Ball
Web Applet: Virus Effect
Old Games
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #17 - Posted 2009-01-31 19:51:23 »

so you say make it easier. I will work on that.
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #18 - Posted 2009-01-31 20:03:11 »

ok it is now shifted down one.  so lvl 2 is as fast as lvl 1 used to be and so on.

keep it coming.
Offline Corvinex

Senior Member


Projects: 1


Work Hard, Go Pro.


« Reply #19 - Posted 2009-01-31 20:25:06 »

Its definitely a little easier, but I think that level 3 crash is back. Once i reached lvl3 it closed the program.

One other suggestion would be health, or lives. It would make the game last a lot longer if you had lives.

"Do what you love and you'll never work a day in your life."
Android: Pac-Ball
Web Applet: Virus Effect
Old Games
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #20 - Posted 2009-01-31 20:32:51 »

Ok I ahve something similar. every level the player gets 1 shield point. but they only work wiht bullets. when a ship crashes into you you die no mattter what. it is kinda realistic. I will try to give the person 3 shield points to start out with.
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #21 - Posted 2009-01-31 20:48:36 »

ok now you start out with 3 shield points. and it also blocks ships. and you gain 1 every level.

it also says how many shield points you have in the bottom left corner.

I also fixed the lvvl 3 glitch thing. It had somehow undone the change I made ??

tahnks for allt he great input
Offline gouessej
« Reply #22 - Posted 2009-01-31 22:34:28 »

The JNLP file works fine but I still get a NullPointerException when I choose "No" in the window entitled "Retry".

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #23 - Posted 2009-02-01 08:23:33 »

hmm. where does the exception appear. in cmd? cause i do not get any errors cause I directly run the program.
Offline gouessej
« Reply #24 - Posted 2009-02-01 10:23:02 »

hmm. where does the exception appear. in cmd? cause i do not get any errors cause I directly run the program.
When I use Java Webstart, I enable an option to show the Java console and then I see the same NullPointerException than I showed you yesterday. It is quite easy to fix.

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #25 - Posted 2009-02-01 13:47:50 »

coudl you tell em how?? cause I never bothered to figure it out. does the game run for you though?
Offline Ru5tyNZ

Senior Newbie





« Reply #26 - Posted 2009-02-01 21:49:32 »

Doesn't work.

Ahhh just looked at the jnlp. Make it work on 1.5!  Wink

Mac OSX 10.5.6, Java 1.5, 2Ghz Core 2 Duo

Offline gouessej
« Reply #27 - Posted 2009-02-01 23:08:19 »

Doesn't work.

Ahhh just looked at the jnlp. Make it work on 1.5!  Wink

Mac OSX 10.5.6, Java 1.5, 2Ghz Core 2 Duo


Core 2 Duo is a x86-64 processor, then you can install the software update 1 or 2 that contains Java 1.6 instead of asking the author to change its Java version.

coudl you tell em how?? cause I never bothered to figure it out. does the game run for you though?

It is here:
Quote
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at dodge.keyPressed(dodge.java:160)
Your source code is not available, I cannot fix this bug for you. It doesn't prevent me from playing with your game though.

Offline h3ckboy

JGO Coder


Medals: 5



« Reply #28 - Posted 2009-02-02 09:00:59 »

there it is set to 1.5+ now.

enjoy
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #29 - Posted 2009-02-03 17:52:56 »

ok so I am trying to make a menu at the beginning to make it look more professional. I have tried but I am failing miserably. could someone tell me how go about this. also I am considering renamaing this game "Final Stand" because this really is a lot different than space invaders so please give me your input.
Pages: [1] 2 3
  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.

E.R. Fleming (15 views)
2014-07-29 03:07:13

E.R. Fleming (4 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (50 views)
2014-07-17 23:47:54

danieldean (42 views)
2014-07-17 23:41:23

MustardPeter (44 views)
2014-07-16 23:30:00
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!