LocoGun3D. Free 3D Game for Light guns

Here you will fight in a real 3D world against the number of monster you like.
Move with your guns joystick (with wingun driver) or use the keyboard and mouse.
This is a 3D Game writted om VB 6 and DirectX 7 with Direct3D Immediate Mode (D3DRM). The source code is also free. Thanks to fabiocalvi for the code he let's in Cyborg.vbp from wich I learn fast a lot. Anyway this program have many extras. It encapsulates DirectDraw, Direct3D Dsound and Dmusic in cls files. Also have a class for making 3D rooms...and another to track the monsters job.

Easy in Vb, why not if it works? 20 FPS on my Pentium 1000 with 16Mb AGP Video Card. I used a LCD top Gun.with the WinGun software on Windows XP(didn't like the gun's one) but you can shoot with the mouse.

locogun 3D image game locogun 3D image game

If you are a VB 6 programmer download only the source code and resources 1.3 MB Zip with the program.
13-1-2008. Now the monsters ball have a fire texture animated and added comments to the code. Removed unused files
14-1-2008. Added gun to the player that rotates with the mouse(or lcd gun). Code is a small class called clgun
15-1-2008. The player gun looks better and added lights control. This was done by creating a mesh from the gun's meshbuilder and change it's material color so it doesn't get white when you increase the D3DRMLIGHT_POINT lights. 15-1-2008. Now you can use the mouse right button to walk shift left and right and the monsters dyes and now they really pack you.
17-1-2008. Checkbox is available to on-off animated textures like the fire on the ball. This is because it slows down the render 10 FPS in my P1000. It's the call to MeshBuilder.SetTexture which delays. We could create before 1 ball per texture a mean that looks faster to switch a 3d frame position from visible or not than chanching the frame texture
18-1-2008. Now mouse left button auto repeat the shoots at the speed selected like the gun. Better moving; Now you can move with the Joystick's gun and (select autofire in wingun for the keys up down left top 10ms 1 shot)
21-1-2008. Monster bounces its head when you shout it and Reanimator in 5 seconds.
22-1-2008. Monster dye animation with a new class called animator. This class reads and executes .ani files wich have instruction for rotating and moving any object in the monster. To create this ani files I made a program to track this job. With the RMcanvas ocx control it opens a DirectAnimationSet from a DirectX .X file and let you pick and rotate or move the monster pieces. Save the ani file and use the clAnimator class to track that animation. Click the picture to download the vb project

locogun animator 3D image
Search for ReadAniInsFile and ExecuteCurActions in ClAnimator class( in the Locogun 3d project) to understand it)

23-1-2008 Better monsters animationslike punch or wake up. Changed the upper animator vb project. Now It holds time for every action so in the same FPS frame(at the same time) you can move more than once object.
24-1-2008 More sounds like punch using DuplicateSoundBuffer so the 10 monsters have their own sound buffer from the same wave file. Fixed a error(only one monster increased his speed, now all do it)

If you are not a programmer I haven't finish it so you must wait.
It's so funny how the monsters catch you just by selecting the nearest a circular direction

To start the game press ENTER(button start on your gun), to exit ESC.
LocoGun3D only accepts 10 shots x second max. Activate the Auto-Fire in Wingun driver (100 ms and 1 shoot).

There's a 2D LocoGun game with 4 monsters type also free. .