jPCT - a 3d engine for Java => Projects => Topic started by: Remo on March 27, 2006, 10:48:51 am

Title: jPCT 3D Asteroids!
Post by: Remo on March 27, 2006, 10:48:51 am
Ok so I started to work on my jPCT project.
Its more like a demo of jPCT and jinput working together. So its basically a joystick test.
You will NEED a joystick for this thing to work (unless you modify the source code included).
The game is going to be based on the old Asteroids game.
Im having some problems figuring out some stuff but at least I got something to work hehe.
Its my first app with jPCT so dont go that hard on me!.

Anyway, here's the file:

I already have some ideas for a better management such as using a list insted of an array to process asteroids so I can dinamically add or remove asteroids.
Im starting to work on an Asteroid radar also. And some other stuff...

Well I would apreciate some feedback.
Title: jPCT 3D Asteroids!
Post by: quixote_arg on March 27, 2006, 02:20:36 pm
Thanks! A great oportunity for the rest to learn from source code

will check it and give feedback soon
Title: jPCT 3D Asteroids!
Post by: EgonOlsen on March 27, 2006, 05:40:44 pm
Doesn't work for me:

Code: [Select]
OS name is: Windows XP
DX8 plugin is supported
Creating USB 2A4K  GamePad           polling = false
Creating USB 2A4K  GamePad           polling = false
Using USB 2A4K  GamePad           USB 2A4K  GamePad          :stick
Unknown component. Ignoring.
Unknown component. Ignoring.
Could not find enough components to launch Asteroids. Aborting

I've two USB-Competition attached. Does it matter that they are digital sticks?
Title: jPCT 3D Asteroids!
Post by: Remo on March 27, 2006, 09:55:59 pm
Digital devices are not a problem.
The problem is on my side. I think the problem may be that I forced the joystick to use Z axis and Z rotation for the aplication to work and not all joysticks have that (should have tought of that :( ).
I will change that along with some other things to get a more friendly way to deal with it.

Hopefully I will have it today (my today! gmt  -6).

Ok. I only cutted the forced Z and RZ axis. Im still working on some other stuff but you should be able to try it now Egon.
Same url: http://www.jdudes.com/asteroids.zip