xbdev - software development
Sunday March 26, 2023
home | about | contact | Donations



Its more than just a cup of coffee...


Java Applet Asteroids

(Creating a simple Demo Game - Have you got what it takes!!)


You can create all sorts of different games using basic Java and simple 2D images.  This simple demo uses the cursor keys and space bar to show you a classic game.  You 'S' to begin, then it begins, you have to move about and stay alive, destroying the asteroids to get points etc.  If this isn't hard enough, a few added flying ufos etc will pop up from time to time, making it more challengine.



The demo game is done in java and is a simple game.  Its made up of various functions for setup, intializatoin, updating and even has a little thread in it.  Some parts of the code are tricky to follow, especially the custom isCollision code that I wrote for it, so the code is more plateform independent


Its not perfect and can still be improved.  The perfect game is an always ongoing endevour. 




You should really consider getting a Java capable browser... (or maybe just turning "java" on inside your browser...)


Download Source Code (43kb)





To be continued....


Copyright (c) 2002-2023 xbdev.net - All rights reserved.
Designated articles, tutorials and software are the property of their respective owners.