Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  SubPar submitted!  (Read 7326 times)
0 Members and 1 Guest are viewing this topic.
Offline moogie

JGO Knight


Medals: 12
Projects: 6
Exp: 10 years


Java games rock!


« Posted 2007-02-28 12:11:36 »



http://javaunlimited.net/hosted/moogie/SubPar/subpar.htm

YAY!   Cheesy

I have finally manged to squeeze it all into the 4k. Unfortunetly some nice features and more colourful sprites had to be stripped to get it to fit... but it should still be a reasonable contentor.

My main down fall i can see is that I have have very little actual game time to make sure the game plays well, i would like to hear opinons on whether it is too hard/ difficult etc.

I will be uploading the source tomorrow after i have cleaned it up a little and added comments.


Offline luisoft

JGO Coder


Projects: 6


Java games rock!


« Reply #1 - Posted 2007-02-28 16:42:10 »

Your game is really great! very nice graphics.

Three things:

1) Link to the source code is not working
2) The offline version is above the limit of 4096 bytes. I have downloaded it now and it is 4323 bytes so you have to try to shrink a little bit more otherwise it will probably not be judged? Am I right?
3) It is generating an error: java.lang.ClassCastException: java.awt.ComponentEvent at a.processEvent(Unknown Source). Although the game is still playable.
Offline moogie

JGO Knight


Medals: 12
Projects: 6
Exp: 10 years


Java games rock!


« Reply #2 - Posted 2007-02-28 21:02:17 »

1. yep, i will be posting the code today.
2. only one of the versions needs to below the 4096 barrier, the webstart version is below that barrier, the executable jar is over that due to the meta-inf directory
3. hmm.. thats an interesting one... i have not see that error... but if it is not causing any problem then i will leave it as a "feature" Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline drslinky1500

Senior Newbie





« Reply #3 - Posted 2007-02-28 21:22:52 »

I am playing this game on linux and noticed an error.

First off, the game is great, and the difficulty seems balanced.

The error has to do with simultanious buttons being pressed. I can press Up+Left and go go NE, but no other combinations will work. So I only have N, NE, E, S, W.

Great game!

Offline moogie

JGO Knight


Medals: 12
Projects: 6
Exp: 10 years


Java games rock!


« Reply #4 - Posted 2007-02-28 21:27:30 »

Thanks, it is good to know that it works great on linux, i dont have access to a linux box so i could not test it. Any Mac users out there?

that is the weirdest thing! there should not be any issue with the key board combinations! for key board input i am simply populating an array with the keys pressed. this is my key press listener:

1  
2  
3  
4  
5  
    final protected void processEvent(AWTEvent e)
    {
       if (((KeyEvent)e).getKeyCode() == KeyEvent.VK_ESCAPE) System.exit(0);
       key[((KeyEvent)e).getKeyCode()] = e.getID()&1;
    }


I wonder if this is a linux specific quirk? do you have access to a windows box? do you have the same problem?
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #5 - Posted 2007-02-28 21:50:26 »

Good game.  Very nice graphics.

When I try to pick up a power up(the yellow one) I get the following:

java.lang.ArrayIndexOutOfBoundsException: -1
   at a.<init>(Unknown Source)
   at a.main(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
   at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
   at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

Offline moogie

JGO Knight


Medals: 12
Projects: 6
Exp: 10 years


Java games rock!


« Reply #6 - Posted 2007-02-28 22:12:45 »

hmm... i think i know what that is... it is proably not due to the power up per-se but every time you are hit by enemy fire, your power up leveling is reduced by one so if you do not have many power ups and then get hit alot it is possible to go into the negatives... that is a bug i did not pick up Sad

hope fully it will not effect too many people (or encourage them to get more power ups and hit by enemy fire less Wink )
Offline drslinky1500

Senior Newbie





« Reply #7 - Posted 2007-02-28 22:35:50 »

I tested it in windows, and the problem was not the same. I had all directions unless the space bar was pressed. I had similar trouble with Choppacide. I would up adding the "F" key as an alternative fire key and that cleared it up. In Choppacide I tried Shift, Cntl, and Alt, and it behaved the same as the Space Bar. There is either a java error with the arrow keys, or with the control keys.

When the space bar is pressed in your game, I have these directions in windows. "N, NE, E, S, W, NW".

I will be back in a little bit.

Here is my key handling code. It seems to work well on most platforms.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
public void keyPressed(KeyEvent e) {
      // System.out.println(e.toString());
     // TODO Auto-generated method stub
     if(e.getKeyCode() == KeyEvent.VK_UP)
         verticle = 1;
      if(e.getKeyCode() == KeyEvent.VK_DOWN)
         verticle = -1;
      if(e.getKeyCode() == KeyEvent.VK_RIGHT)
         rotation = 1;
      if(e.getKeyCode() == KeyEvent.VK_LEFT)
         rotation = -1;
      if(e.getKeyCode() == KeyEvent.VK_F || e.getKeyCode() == KeyEvent.VK_SPACE)
         fire = true;
      if(e.getKeyCode() == KeyEvent.VK_ENTER)
         button = 1;
      if(e.getKeyCode() == KeyEvent.VK_ESCAPE)
         button = 2;

   }

   public void keyReleased(KeyEvent e) {
      // TODO Auto-generated method stub
     if(e.getKeyCode() == KeyEvent.VK_UP)
         if(verticle == 1)
            verticle = 0;
      if(e.getKeyCode() == KeyEvent.VK_DOWN)
         if(verticle == -1)
            verticle = 0;
      if(e.getKeyCode() == KeyEvent.VK_RIGHT)
         if(rotation == 1)
            rotation = 0;
      if(e.getKeyCode() == KeyEvent.VK_LEFT)
         if(rotation == -1)
            rotation = 0;
      if(e.getKeyCode() == KeyEvent.VK_F  || e.getKeyCode() == KeyEvent.VK_SPACE)
         fire = false;
   }
Offline moogie

JGO Knight


Medals: 12
Projects: 6
Exp: 10 years


Java games rock!


« Reply #8 - Posted 2007-02-28 22:43:10 »

Unfortunetly I cannot include your better cross platfrom keyboard handling... it brings me over the limit... maybe next year?


Also the source code is now available!
Offline drslinky1500

Senior Newbie





« Reply #9 - Posted 2007-02-28 22:55:25 »

There are several things I would like to change about java due to cross platform issues. One would be its lack of control over input devices. We should be able to decide if we want the native feel, or if we want the keyboard and mouse to behave differently than on the host OS. (sounds error prone :-)

The other would be distribution issues. Webstart is only good for smaller applications, and an executable jar simplifies nothing on most platforms. Neither help with file path problems.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline moogie

JGO Knight


Medals: 12
Projects: 6
Exp: 10 years


Java games rock!


« Reply #10 - Posted 2007-02-28 23:36:42 »

hmm. maybe it is your key board? i know on an older laptop keyboard i had it would not allow certian 3 key combinations...
Offline drslinky1500

Senior Newbie





« Reply #11 - Posted 2007-03-01 00:00:30 »

It could be, I have cheap one. It could also be the way the mother board handles the keyboard? Maybe someone else can test this and reply.
Offline GoldenGnu

Junior Newbie





« Reply #12 - Posted 2007-03-17 02:39:43 »

really nice game! I love the background stars and the simple, but very cool explosions...
It's super fun, when you got 3+ power-ups.. And you shoot in every direction! I

I also got the error, when I picked up a power-up. I guess I should have read your advise before I played the game.. Tongue
In one of the games I also flew the ship outside the screen, but I just flew it back, np...

And you even released the source code...
Offline noblemaster

JGO Ninja


Medals: 20
Projects: 10


Age of Conquest makes your day!


« Reply #13 - Posted 2007-03-17 03:24:59 »

very nice  Cheesy

Offline moogie

JGO Knight


Medals: 12
Projects: 6
Exp: 10 years


Java games rock!


« Reply #14 - Posted 2007-03-17 11:45:52 »

glad you guys have enjoyed it Smiley

yeah, i was quite surprised how effective the explosions (expanding circles with colour fade) worked out.

The main problem is that i was unable to play test it... at all really... so it may be too difficult and some other bugs are probably lurking around as well.

That source does not have the graphics... i will have to upload them.
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.

Dwinin (25 views)
2014-09-12 09:08:26

Norakomi (56 views)
2014-09-10 13:57:51

TehJavaDev (69 views)
2014-09-10 06:39:09

Tekkerue (35 views)
2014-09-09 02:24:56

mitcheeb (56 views)
2014-09-08 06:06:29

BurntPizza (40 views)
2014-09-07 01:13:42

Longarmx (26 views)
2014-09-07 01:12:14

Longarmx (33 views)
2014-09-07 01:11:22

Longarmx (31 views)
2014-09-07 01:10:19

mitcheeb (39 views)
2014-09-04 23:08:59
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!