[java] Java game and also a doubt

Started by
3 comments, last by Pedro_A 22 years, 7 months ago
Hi Starting with the first part of the subject... sometime ago I wrote here a message asking for artists to join a game a friend and I were programming... didn''t got any... anyway, some people who took a peek at the screenshots asked me to release it on the net once I had finished it. Since this was a project for one of my University classes, I had to wait until the grade was released to place it on the net... in the middle, some stuff happened so I had to delay it even more... anyway... I''ve decided to release it now . Although I would have enjoyed to see it with original artwork and music, it wasn''t possible. The game concept isn''t also all that amazing, but it was something handed down to us, we simply had to implement it. It''s a rather simple 2D Java-based scroller and it''s probably somewhat boring to play but... since I had said I''d place it on the net, I''m placing it on the net . You can get it at http://student.dei.uc.pt/~pamaro/caverna.zip (check the readme.txt file for details on how to run it). Now, on to the second part of my doubt... this is a rather stupid one and everybody out there who knows the answer will probably laugh at me... but... how do I turn a program into an executable JAR? The demos bundled with JDK are executable but I can''t build anything like that. I checked the options of my IDE (Kawa), ran through some Java tutorials, read some books... but didn''t find how to do it... anyone can give me a little hand on this? Well, that pretty much settles it. Hope someone out there enjoys the game (as if that was possible ). And keep doing some Java programming! Pedro Amaro http://rpgchannel.xrs.net http://go.to/smeeks
Advertisement
I''ll check the game later and tell you what I think.
In the meantime, look ->
http://java.sun.com/docs/books/tutorial/jar/basics/run.html

"If consquences dictate our course of action, it doesn''t matter what''s right, it''s only wrong if you get caught."
- Tool
"There is no reason good should not triumph at least as often as evil. The triumph of anything is a matter of organization. If there are such things as angels, I hope that they're organized along the lines of the mafia." -Kurt Vonnegut
Don''t bother downloading his program. No source code is included and I wouldnt dare to run it!
You meed a Manifest file with a Main-Class:

Then use the command line jar builder with the manifest file option. If you email me a note at eric at snowmoon dotcom I can send you a hello world demo that shows how to do it including the batch file to build it.
Thanks, I''ll check out the HTML file and see if I can do it.
As for the other reply that mentioned the source code... the project isn''t open source... some of the algorythms I use there will be used in another game I''m currently planning (a vertical scrolling shooter, in the line of Raptor or Tyrian)... besides, there''s another person working with me... I couldn''t freely distribute the source code unless he wanted to . Hmmm... but it may be a possibility for the future... the source is currently commented in Portuguese but, if I get the time to translate the comments to English, write a couple of text files about it, finish my other game and convince my partner to release the code... it might turn out to be a nice tutorial . Not an amazing one, but it might help some people... oh well... I''ll think about it later .
Anyway... at the moment, only the game itself is available... if you want to play it, go ahead . Just send me some comments or feedback about things I could improve (since some of the experience gained in this game will be used on my next one, comments and suggestions are appreciated ). As I said in my previous post, you can get it at http://student.dei.uc.pt/~pamaro/caverna.zip (the zip also contains a readme.txt file with some information about the game).

Pedro Amaro
http://rpgchannel.xrs.net
http://go.to/smeeks


This topic is closed to new replies.

Advertisement