original source code last
updated Jan.29, 1999
SDL source code last updated Nov.25, 2007
HTML page last updated Nov.24, 2007
Each piece of code is
availible as an online text file or as a downloadable zip
package. The zip file contains all needed graphic files and
an executable file, in addition to the source code. All
source code is (C) Copyright Detox 1999-2007 and released
under a license similar to the ZLIB
software license.
 
Tcl/Tk PPP login
tool
This tool requires a POSIX compliant
operating system such as Linux or Unix. The Tcl/Tk script
code was written with the Expect and BLT 2.3 extensions.
This program allows you to graphically configure, login,
and logout from a local dial-up ISP using PPP. It can also
edit an online HTML page to show your login status and
current IP address.

Tcl/Tk Source
 
 
Pixel
Feedback
Written using Turbo C with inline x86
assembly instructions. The idea is similar to a standard
"fire" pixel feedback routine. Adjacent pixels are averaged
between frames. Sprites bounce off the walls feeding the
pixel feedback averaging routine to create fading trails.
The frame rate is not sync'ed to the video card's vertical
retrace or limited by a hardware timer
function.

Original C code & Original DOS
Executable
C (with SDL library)
Source and win32 Executable
 
 
3D Vector
Ball
Written with Turbo C and inline x86 assembly instructions.
The source includes the classic quick-sort routine to depth
sort the 3d points. There is no syncing to the video
retrace or a hardware timer in this
version.

Original C
Source & Original DOS
Executable
C (with SDL library)
Source and win32 Executable
 
 
2D Pixmap
Rotation
Written with Turbo C and inline x86 assembly instructions.
The graphic tile is hard coded into the source. TEL PECVD
stands for Tokyo Electron Limited, Plasma Enhanced Chemical
Vapor Deposition. I wrote the code during a summer
internship at Tokyo Electron in Beverly, MA during the
summer of 1995. Again, with this code there is no frame
limit inposed by the vertical retrace interrupt or a custom
hardware timer interrupt.

Original C
Code & Original DOS
Executable
 
 
Classic "Fire"
Routine
Written with Turbo C and inline x86 assembly instructions.
My version of the classic fire routine includes a floating
point palette scale function to produce smooth color
gradients. It should be useful in other projects which
require this type of palette (see the blur effect above).
There is no frame rate limit from a vertical sync or
hardware interrupt in this
version.

Original C
Code & Original DOS
Executable
C (with SDL library)
Source and win32 Executable
 
 
Simple Afine
Texture Mapping
External description of Afine texture mapping
Watcom C [32bit dos executable via DOS4GW].
This is 100% C code, 100% floating point, and 100%
un-optimized! It is slow, but it works and it was my first
shot at texture mapping. As with most other code on this
page their is no vertical retrace sync or hardware timer
limit on frame rate. The executable was lost long ago and I
no longer have Watcom installed to compile the code. I may
re-write the routine for ANSI C under GCC using the SDL
library.

Original C
Source
 
 
HP48 Dungeon Crawl
Game
This was written on an HP48GX using Hewlett
Packard's user RPM language. It is a simple graphic game of
exploration and battling a chasing creature. The source
button links to a text dump of the HP48G directory which
contains all of the game variables and functions. The "Zip
Package" button links to a binary object that can be loaded
into EMU48 or an actual calculator. STO the object into a
variable, enter the directory, and execute the MAIN
variable. Press a key to start. [4][6][2][8] move your
character around.


 
 
HP48 Mandelbrot
Plotter
External
Resource and Definition
This was written on an HP48GX using Hewlett
Packard's user RPM language. It plots the Mandelbrot set
given a set of input parameters. The source code button
links to a text dump of the actual generator. The "Zip
Package" button links to a .BIN object that can be loaded
into EMU48 as an object or into an actual calculator. STO
the object in a variable and execute the MNDB variable in
the directory it creates on your calculator. There is also
a VIEW variable/function that can view some pre-generated
plots also included in the .BIN
file.
 

 
 
HP48 Simple UofO
Pict Builder
This was written on an HP48GX using Hewlett
Packard's user RPM language. This simple program draws a
"UofO" picture on the screen using basic drawing commands.
The source button links to a text dump of the HP48G
directory which contains all variables and
functions.

 
Height Field
GCC ANSI C code using the SDL library. This is 100% C
code with some fixed point math sprinkled around. Use the
number pad keys [4][6][2][8][7][9] to move around the
height field. This routine achieves the heightfield effect
by drawing vertical lines front-to-back while eliminating
over-draw. This is probably my first attempt at
cross-platform code. It compiles nicely on Linux and
Windows, and probably Macintosh too with no changes to the
source.

C (with SDL library)
Source and win32
Executable
 
 
2D 32bit-Color
Gravity Game
GCC ANSI C code using the SDL library. This is 100% C
code with 100% floating point math, and compiled for i586
processors or better. Use the [W][A][S][D] to move the
ship. [ESC] exits. All graphics are full 32-bit color and
100% NOT graphics hardware accelerated. Everything is done
in system memory and then blitted across the bus. Yes I
realize a 3D accelerated version would be a couple orders
of magnitude faster. It compiles nicely on Linux and
Windows, and probably Macintosh too with no changes to the
source.
This
is an ALPHA RELEASE that demonstrates the core
graphic and collision routines with only 1 level, no
success criteria, and the most basic graphics possible
(although they still are 32bit
color).

C (with SDL library) Source and win32
Executable
 
 
2D 32bit-Color
Bitmap Rotation
GCC ANSI C code using the SDL library. This is 100% C
code with 100% floating point math, and compiled for i586
processors or better. It demonstrates a bit of code that
rotates any size 32bit-color bitmap to any angle, and
copies the results into an SDL surface. [ESC] exits. All
graphics are full 32-bit color. It compiles nicely on Linux
and Windows, and probably Macintosh too with no changes to
the
source.

C (with SDL library) Source and win32
Executable
 
HTML pages creating using a plain
text editor.
These web pages, images, and other content (C) Copyright
2007 Detox, all rights
reserved
|