Archive for January, 2009

4D Maze – (Java)

This is a simple implementation of a 4D maze written in Java. As of now it is entirely text based however, a simple GUI is currently under development. Either way, this simple implementation should be useful to modify and/or build off of. The algorithm used to generate the map is quite simple and always generates [...]

4D Rotation Matrix – Graph 4D

This program rotates points about the XY, YZ, XZ, XU, YU, and ZU axises. I then projects each 4D vector to the 2D canvas. The Jar file can be downloaded here: Graph4D.jar Before looking at the source, let’s take a look at some of the fundamental mathematics behind the software. If you are uncomfortable with [...]

Thog Problem

Given the following combinations of shapes and colors:

C++ Dynamic Memory Allocation (2D and 3D)

This snipped of code is for allocating memory when using a multidimensional array. The following examples are for 2D ([][]) and 3D ([][][]) structures. First: to allocate memory for a two dimensional structure: (i.e. int[][] array) 1 2 3 4 5 6 7 8 9 int** array; // 2D array definition; // begin memory allocation [...]

SDL Sprite Class in C++

This is a simple Sprite class that I use for game development in C++ using SDL ( Features include sprite animation, rotation, stretching, transparencies, and other commonly used sprite functions. I hope this is somewhat useful. The source is available and should be fairly simple to work with. Feel free to modify it however you [...]

Powered by WordPress | Designed by: WordPress Themes | Thanks to best wordpress themes, Find WordPress Themes and Themes Directory