Space Invaders
Pojo Application Server
This demo's a Space Invader game taken directly from the LWJGL Java game library which can be found at http://lwjgl.org/
Even though the game has not been designed with the wire in mind, porting it to work in Harbor is a very simple exercise.
The little LWJGL library is clearly young, but its very nice with lots of potential, and with a little clever design and Harbor, its very easy to make wonderful Internet enabled games.In many respects its just another application, and as soon as one ports the control to the CD Unit, its done.
There was however one tricky issue, the game library uses JNI libraries, and as you will see Harbor even allows for native C++ libraries to be used remotely.To Test the Game
http://localhost:8080/harbor/ships/SpaceInvaders_Ship.jar
and it will jump out of your browser
and let you play Space Invaders.The Game for ease of testing is pre-packaged in the War.
Down-Load Harbor, and you'll have it all.Source Code Listing
|
POJO APPLICATION CODE |
HARBOR SERVER CODE (Ship) |
- Game Software Not Shown -
|
- Server Code Listed - Study the notes
in the Ship to see how
|
|
|
|
Harbor Symbol