» Code
 
I've written many programs in Visual Basic. Some big, some small, some for contests, some just for fun. Most of the things I have created, and which I consider useful for other people can be download from this page. But, I have also been working with various other languages like PHP, Active Server Pages, ASM (NASM) and even Unreal Script.

I've added a new section at 24 October 2004 for C++ code. A language I'm learning while working on a new game.

If you are looking for the old VB Gaming code repository, with about 100 files, please proceed here.

- Unity
- Graphics
- Visual C++
- Visual Basic
- Active Server Pages
- PHP
- UScript & Maps

Unity
Some nice c# snippets for Unity.
Google analytics helper
C# Google Analytics Helper
This zip contains just one class which can be dropped in your Unity project and allows you to register events and "visitors" to your game with only a couple lines of code!
Graphics
Max in muziekland
Sprite/Tile object pack
This zipfile contains over 50 3DS Max files for simple tiles. Think about crates, stones, lights, etc. Most of them are music related.
The objects come prerendered static, and animated. All graphics are featured in my (nearly finished) contest game of 2006 "Max in musicland" (Max in muziekland)
Shields pack
Space shields pack
In this zipfile you will find the shields used in Quadrant Wars. The images need to be blended, since they do not contain alpha channels or a color key. 72 images are used for a 360 degrees rotation.
You can use this wherever you want, it would be nice to know if you used it somewhere .
Planets pack
Planets pack
20 nice planets can be found in this zip file. Each planet is 640x480 and in TGA (24bit + alpha channel). Also have a magenta colorkey (see thumb at the left).
Please read 'credits.txt'! These planets were designed for Quadrant Wars.
Visual C++
Milkshaper 3D loader
Milkshape3D (ms3d) loader - DirectX8
This is C++ code to load Binary Milkshape3D (*.ms3d) files. It's a modified version from a DirectX9 one which I found a while back. Please read the accompying readme for details of the changes, and a short snippet on using the code. This code supports skeletal animations.

Visual Basic:
SQLite
Using SQLite from Visual Basic (Recompiling C code)
This is the SQLite C code that is converted to make it usable from Visual Basic. Check out the tutorial section for the tutorial that goes indepth about the process.
Newer version of SQLite might appear, and this code will stay won't (likely) get updated.
This is version 3.2.2 I believe.
Triangle collision
Circle-Triangle collision detection
This zip file with included source will show you how to do check for circle -> triangle collisions. Most of the credit goes to Brykovian who wrote the code for my game YALG. I think it would be usefull to other people as well, so who am I to leave the code on my HD only? .

Planet Generator
Planet Generator
This simple program create infinite planets using fractals and a palette. Can produce very nice results. It uses an ASM fractal DLL which I made myself, to increase performance.

Nebula Generator
Nebula Generator
Simple program that creates a fractal, applies color to it using a palette, and then you can repeat the procedure as much as you like, the fractals will be blended, creating a nebula like effect.

World Map Generator
World Map Generator
This program will create like almost infinite worldmaps, at any dimension you wish.
It will also return a planet (spherical map) if you wish. Note that the code is pretty fast as well.

This code is a port from an CGI version, the URL is included in the zip for the interested people.

ICQ DB Extract
ICQ DB Extract
This is an pretty unique program, with full source ofcourse.
It (should) allows you to extract all ICQ history after DB version 99A, to plain text.
It even supports the RTF messages introduced in ICQ2001+, unlike most of the other programs!

Please read the readme.txt though, it contains some information you might want to know.

Inline ASM Demo
Inline ASM demo
Someone once posted (in Januari 2003) a plugin at www.pscode.com to use inline ASM from VB. pretty cool. Here are some simple samples what you can do. Notice the fast Uppercase function, or the CPUInfo instruction. Please read the readme!. Get the ASM plugin here (made by John Sugas)

Motion blur demo
Motion blur demo
Simple motionblur demonstration. I wanted to make a visualization for music, but that didn't work out.. so I changed it in an screensaver kinda thing. Pretty nice when it's fullscreen!

Elements of Nature
Elements of Nature
This was made for the Gamedev Elements contest 2002. Ended #23 of 42 entrants. This demo is using almost everywhere particles for rain, fire, the grass!

Pinguin
Pinguin (VB Explorer contest)
This was made for the VB Explorer game contest. all graphics were fixed and it had to be a shooter. This was made in 2000, so the code ain't that shibby . DirectDraw7 and VB

Raytracer 1
Realtime raytracer 1
My VB port of a raytracer that can be found at 2tothex.com. Is insanely fast for VB
Planet-source-code award winner

Raytracer 2
Raytracer 2
Another port from 2tothex.com. This one has various primitives (cilinders,planes, etc), and also a lot slower!

API Webserver
API Webserver
Unique webserver on the internet. The first one made with VB and Winsock API, (at the time I wrote it anyways).

VB DOS
VB DOS
Old program I made, just to check out the console functions. Emulates some DOS commands

Active Server Pages (ASP):

Basic Authentication 1
Basic Authentication
Shows how to create a "Basic Authentication" dialog in ASP. Version 2 is an improved version, and includes a readme.
Planet-source-code award winner

Basic Authentication 2
Basic Authentication 2.5
Same as above, but with database capabilities and FAQ.
Planet-source-code award winner

Newsscript ASP
Newsscript
Simple ASP newsscript, as used by QuadrantWars.com. Also an PHP version available.

PHP:

PHP UT query script
PHP Unreal Tournament Server query
This script queries Unreal Tournament servers, using PHP. Pretty cool, it shows the screenshot of the map as well (for standard UT maps). Please read the readme for details on using this script and how to config it.
Planet-source-code award winner

Loadbalancer php
Load Balancer
Extremely simple but yet usefull loadbalancer script. This script will spread downloads of a file over infinite servers, which you can put in a simple textfile. Very simple to setup. No mySQL needed.

Click counter PHP
Click counter
Simple link/click counter. Counts and redirects to a specified URL. Could be used for a download counter, for example. It uses MySQL.

Newsscript php
News script
Simple PHP newsscript, as used by QuadrantWars.com. Also an ASP version available.

Unreal Script (UScript) & Maps:

DM-SpaceCore
DM-SpaceCore
The second map I have created (2007), for the original Unreal Tournament. Some people say it looks a lot like a Quake map. I wouldn't know .
Nevertheless, I suppose it's a nice lowgrav map.
CTF-Sponge
CTF-Sponge][
First Unreal Tournament map which I've made. Pretty good, although it suffers from some 'Hall of mirrors' (HOMS) effect, because I had to get used to the subtracting and adding.
This is the second revision of the map (March 2007). This map tries to be a bit like a quick playing map, similar to W00tabulous and 'andAction!'
UT Trainings mod!
Unreal Tournament Training mod
First mod I made in UScript. It includes 3 maps. The target is to shoot the flying translocators, and trying to keep the efficiency as high as possible ofcourse. They can shoot back too!