• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.

Archived

This topic is now archived and is closed to further replies.

David_Beoulve

[java] DarkFighter JAVA scrolling paralax shooter source

7 posts in this topic

DarkFighter (JAVA) Okay guys, this is a Sun-Java game I have been working on off and on since late last year. In it, you will find a complete working game including source code. The game has sound effects, though the music is too large to upload (WAV). DarkFighter allows you to control your ship with a mouse (the fighter will follow it). Enter or CTRL fires. Hold down for maximum cheese. The game attempts to judge how well you are doing, and increases or decreases the difficulty level accordingly. Being a shooter, it's ultimate goal is to kill you, but to make sure it's a challenge, rather than a slaughter. So far, it seems to play well. Friends keep trying to get a higher score, for some reason. You can download the game and source here (head to the PLAY section, relatively quick loading)... http://www.shila.com/DarkFighter/index.htm MY PROBLEM IS THIS: Currently DarkFighter (JAVA) only runs with Sun's Java Appletviewer, and will not run in Internet Explorer or Netscape. If I could compile the code in Microsoft J++, that should fix it, however, the game uses graphic code not found in J++ (actually, same concepts, different procedures). Can anyone help me fix this? To run the game, as the website says, you'll need Sun's Java Development Kit (posted as well). Any and all help and comments would be greatly appreciated! Disclaimer: Yep, it's all one source file, and it's not really parralax but a star field full of particles. DarkFighter I was a GWBASIC game, as was DF2. DF3 was QuickBasic and used vectors and blocks. Source and EXE lost. DF4 was also QBASIC, never finished because DF5 was created in C++, which was never finished due to a lack of sound. DFJAVA is the one you see here. It may crash, but JAVA shouldn't blow up your PC. ------------------------ How dull it is to pause, to make an end, To rust unburnished, not to shine in use! Edited by - David_Beoulve on 9/24/00 8:17:50 PM
0

Share this post


Link to post
Share on other sites
This is an often asked question (to the FAQ jerry?)
but here goes,

Netscape and Internet Explorer only support java 1.1, so you have probably used some feature only part of of java 1.2 or java 1.3. For instance, you cannot use Swing components in browsers.

The general solution is:
1. To rewrite your application to Java 1.1
or
2. Require your user to download the Java 1.2/1.3 plug-in from SUN and use the free html-converters to turn your web-page into a format that supports the plug-ins. But,.. plug-ins are not portable so if you go for this solution then your program will only work on very few browsers.

If it only is a matter of missing classes you can pack those classes in your jar file on your web site. But be warned some of those classes are very big. The swing package used over 1MB of space. That is a *very* large appliet to download - I know that I would not wait for it.

Jacob Marner
0

Share this post


Link to post
Share on other sites
Of course no browser is going to support it if you just use an applet tag. Run your html throught the applet tag converter. Ya know, some of us might actually have the Java Plugin (shocking, I know).

Also, why is that people feel the need to distribute their java programs in .exe files? It could be just me but i''m going to assume that they aren''t going to work under linux. Is there a general fear of .jar or .zip files in the Java developer community?
0

Share this post


Link to post
Share on other sites
Okay, yes, I have been informed about Swing code. Good notes all. It appears I''ll just have to sit down and fix the darn thing somehow.

Jim, they don''t teach us cool things in college. What is an applet tag converter? Or where?

At any rate, can anyone spot what''s going on in the code that is 1.2 specific? Anyone have any suggestions?

How dull it is to pause, to make an end,
To rust unburnished, not to shine in use!
0

Share this post


Link to post
Share on other sites
quote:
Original post by David_Beoulve

At any rate, can anyone spot what''s going on in the code that is 1.2 specific? Anyone have any suggestions?




Just took a quick look at the applet on your site and it fails to load with a complaint about missing the javax.swing.timer class.

If you are using Swing, then users will need the plug-in.



- Hodglim
Homepage
0

Share this post


Link to post
Share on other sites
The applet-tag converter is the same as the html-converter available from Sun''s site. It converts a html page with a normal applet tag to one that explicitly invokes the java plug-in.

And as said, the important difference between Java 1.1 and java 1.2 is the Swing classes. So if you can get rid of all the Swing references from your code it will most likely run. Also if you are using any standard extensions such as java2D - they are not available in browsers - you have to stick to the core API.

To see if you need to change more after that, just run it in a browser and it will give run-time errors or class-load errors if you use some feature not suppoted in 1.1.

My personal opinion is to avoid the plug-ins if you want most people to use it. Plug-ins only exist on a few platforms and I have had machines (I worked as an IT administrator once) that could not run them (don''t ask me why.)

Java 1.1 is only supported from IE 4 and netscape 4.5. If you want to support even older browser revert to Java 1.0 but I think most people has these browsers so I usually go for Java 1.1 - The AWT model is much better there anyway.

Jacob Marner
0

Share this post


Link to post
Share on other sites
I have java 1.3 but your game doesnt run because it wants 1.2. Wierd problem.

-DeVore (who''s not going to uninstall 1.3 so he can install 1.2)
0

Share this post


Link to post
Share on other sites