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 (536)
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  
  Games Galore : Raiden 4K  (Read 4681 times)
0 Members and 1 Guest are viewing this topic.
Offline ahristov

Senior Member


Projects: 7


Java games rock!


« Posted 2007-02-22 10:39:52 »

Hi there...

Another Java 4K entry.. A tribute to an old classic :-) .... 



Full instructions here : http://www.ahristov.com/raiden4k

Comments,ideas and bugs are appreciated :-). I've tested it under Linux (Fedora Core) and Windows and seems to work fine. No way to test it under Mac, though.



Planetalia S.L. Cursos de Java
Offline toasten

Junior Member





« Reply #1 - Posted 2007-02-22 19:09:58 »

The "End-Boss" is too fast, u can't get around without being hit, cause his fire rotates to fast.

And a "Bug":  The Ship get's nearly out of the screen at the bottom.


Win2K, Java 1.5, AMD 3000+
Offline CaptainJester

JGO Knight


Medals: 12
Projects: 2
Exp: 14 years


Make it work; make it better.


« Reply #2 - Posted 2007-02-22 20:17:42 »

And a "Bug":  The Ship get's nearly out of the screen at the bottom.

That's not a bug.  When you don't run a WebStart app signed, it puts a status bar at the bottom of the window.  Unfortunately they didn't do it smartly, so it overlays your display.  Anybody running an unsigned webstart app needs to take that into account when making their games.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline SimonH
« Reply #3 - Posted 2007-02-22 20:55:00 »

I'm impressed! Brilliant for 4k.

People make games and games make people
Offline nonnus29

Senior Member




Giving Java a second chance after ludumdare fiasco


« Reply #4 - Posted 2007-02-23 12:13:02 »

Too fast, too hard in the beginning, not enough power ups, the boss is too hard.  When I died it didnt' decrement my ship count. Otherwise, nice game.
Offline ahristov

Senior Member


Projects: 7


Java games rock!


« Reply #5 - Posted 2007-02-23 13:05:53 »

Too fast, too hard in the beginning, not enough power ups, the boss is too hard.  When I died it didnt' decrement my ship count. Otherwise, nice game.

Thanks

What kind of computer do you have?

As for the powerups, do you mean "not enough variety" or "they don't drop frequently enough"?

Regarding lives, it's definitely impossible :-) Lives are decreased the very moment you die, and this is reflected immediately in the lower status bar. Since when you start again nothing changes in the status (because lives have already been decremented), it may create the illusion that they were not. This, or maybe you picked an additional life.

Planetalia S.L. Cursos de Java
Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #6 - Posted 2007-02-23 14:08:06 »

Wow, I'm impressed!

I've never played a Java game before manages to cause a machine crash/overload!!!
Twice now, while playing this game (no other app. running), my work PC has instantly powered down - and refused to boot back up again until the power cable was removed for ~10 seconds.

Athlon 64 3000+ cpu, MSI mobo, Geforce 6200LE gfx.

Good old Geforce drivers I bet Wink

[edit]
Just caused another crash! :S
I'd got quite far too Sad I had max firepower, max fire speed, hadn't died(obviously), and had 10 orbiters Cheesy
[/edit]

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline ahristov

Senior Member


Projects: 7


Java games rock!


« Reply #7 - Posted 2007-02-23 14:11:37 »

Wow, I'm impressed!

I've never played a Java game before manages to cause a machine crash/overload!!!
Twice now, while playing this game (no other app. running), my work PC has instantly powered down - and refused to boot back up again for ~60 seconds.

Athlon 64 3000+ cpu, MSI mobo, Geforce 6200LE gfx.

Good old Geforce drivers I bet Wink

?!?!?!  Huh Anything I can do about it?  Cry
I have no idea why this might be happening. I swear my game yields for 25 ms every game loop and I use nothing extraordinary inside....
My computer is a P4 3GHz HT With a GeForce FX 5200...

Planetalia S.L. Cursos de Java
Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #8 - Posted 2007-02-23 14:29:33 »

Nah, doubt very much its anything you are doing.

As soon as Java started using hardware acceleration, it became susceptible to the whims of the driver authors  Undecided
I'm not overly suprised tbh, MSI are a crappy mobo. mfg, and 6200LE's are the crappiest card that Geforce do.
This is the third MSI motherboard that i've had in this machine, the other 2 were faulty in some way or other...

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline ahristov

Senior Member


Projects: 7


Java games rock!


« Reply #9 - Posted 2007-02-23 15:58:19 »

Ok, I've fixed the frame-rate and game speed to about 32-33 FPS, so now it should be reasonable on faster computers ...

I knew that the ship could go to the lowest end of the screen but I didn't consider this as a problem. Anyway, now it can't go below the score line.

If you want, give it a new try here : http://www.ahristov.com/raiden4k/raiden4k-2.jnlp


Planetalia S.L. Cursos de Java
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline appel

JGO Wizard


Medals: 50
Projects: 4


I always win!


« Reply #10 - Posted 2007-02-23 16:13:18 »

Very impressive stuff.

But I agree, a bit too fast at start.

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline ahristov

Senior Member


Projects: 7


Java games rock!


« Reply #11 - Posted 2007-02-23 16:26:33 »

Very impressive stuff.

But I agree, a bit too fast at start.

Even the recent, slowed-down version?

Planetalia S.L. Cursos de Java
Offline appel

JGO Wizard


Medals: 50
Projects: 4


I always win!


« Reply #12 - Posted 2007-02-23 17:36:46 »

Even the recent, slowed-down version?

Sorry, only clicked on the link in the original post. The newest version seems to be good.

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline nva225

Junior Member





« Reply #13 - Posted 2007-02-24 06:07:09 »

Completely awesome. Definitely not too easy, but then it's not too difficult either. Very impressive amount of features in a 4k game, and graphical scrolling background along with it. Very good work.

Only one real complaint, detailed in screenshot below:


Note I am not hitting any bullets. Why did I die?  =(
Offline ahristov

Senior Member


Projects: 7


Java games rock!


« Reply #14 - Posted 2007-02-24 09:36:24 »

Completely awesome. Definitely not too easy, but then it's not too difficult either. Very impressive amount of features in a 4k game, and graphical scrolling background along with it. Very good work.

Only one real complaint, detailed in screenshot below:


Note I am not hitting any bullets. Why did I die?  =(

Thanks a lot for your opinion...  You died because there was not enough space in the game to do a proper collision detection other than a "bounding box" calculation. So basically the game thinks you ran into the boss. The image below shows the bounding boxes for both ships

http://www.ahristov.com/raiden4k/boss-crash.gif

Now I'll see what I can do about this. Probably it's not much, because I've used every single optimization stuff I could think of but maybe I can think of something...

Planetalia S.L. Cursos de Java
Offline moogie

JGO Knight


Medals: 12
Projects: 6
Exp: 10 years


Java games rock!


« Reply #15 - Posted 2007-02-24 10:21:53 »

To help squeeze out the last few bytes from your game I suggest trying to remove as many intermediate variables as possible and simply use the full statements in their stead.

i.e. from your game (i decompiled it to see what i could suggest to help) there is a block of code similar to this:
1  
2  
3  
4  
                        int l4 = ai1[0] - ai1[j1];
                        int l6 = ai2[0] - ai2[j1];
                        ai3[j1] = (int)(10D * Math.cos(Math.atan2(l6, l4)));
                        ai4[j1] = (int)(10D * Math.sin(Math.atan2(l6, l4)));


I would recommend changing it to:
1  
2  
                        ai3[j1] = (int)(10D * Math.cos(Math.atan2(l6, ai1[0] - ai1[j1])));
                        ai4[j1] = (int)(10D * Math.sin(Math.atan2(l6, ai2[0] - ai2[j1])));


This is a little counter intuitve but in most cases it will reduce the number of bytes after compression.

I also ran your "raiden.jar" through the 4KJO tool and it reduced the jar by one byte... Not much i know but i do not have access to your original class before being run though obsfucators, I would imagine some more gain if the original class file was used in the tool.
Offline Abuse

JGO Coder


Medals: 11


falling into the abyss of reality


« Reply #16 - Posted 2007-02-24 10:53:48 »

I'd suggest using a better bytecode optimiser, rather than mangling the source-code....

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline moogie

JGO Knight


Medals: 12
Projects: 6
Exp: 10 years


Java games rock!


« Reply #17 - Posted 2007-02-24 10:58:14 »

heh, isnt source code mangling what j4k is all about ? Wink
Offline ahristov

Senior Member


Projects: 7


Java games rock!


« Reply #18 - Posted 2007-02-28 16:45:58 »

To help squeeze out the last few bytes from your game I suggest trying to remove as many intermediate variables as possible and simply use the full statements in their stead.

Thanks moogie, I used your wonderful 4KJO metaoptimizer while developing the game, but the code became so so complex that most optimizers were simply crashing when trying to analyze the code. I had to run both ProGuard and 4KJO with the <b>-Xint</b> switch so that they wouldn't throw StackOverflowException or other strange errors at me  Sad .... And using <b>-Xint</b> means that each game iteration took about 5 minutes  to test - much more that I'm capable of bearing....

I've used so many optimizations and code-mangling sutff that I doubt the amount of code that a proper collision detection requires can be compensated through further optimizations. As an extreme example, I have variables that are reused more than 6  times throughout the code for completely different purposes - just to increase repetition in stack frame references.

So I guess I'm going to let it stay as is....  Actually, I'd rather add more gameplay if I had the space...

Planetalia S.L. Cursos de Java
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.

CogWheelz (12 views)
2014-07-30 21:08:39

Riven (21 views)
2014-07-29 18:09:19

Riven (14 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

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

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

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

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

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

Riven (30 views)
2014-07-23 20:56:16
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!