Currently I'm making yet another shmupshoot 'em up.
There are no screenshots at the moment; but background graphics on this site are from the game project.
Custom tools:
Here are the main tools I made for this, and future projects. There is also a 'TextureAssetBuilder' tool, but there are no screenshots of it.
Block48Edit
A port of my older level editor. Now with 4K textures!
Normalmap tool
Creates normalmaps from image luminance. Parallaxmap can be achieved by combining a heightmap with a normalmap.
'Perfidious Pumpkin Puzzles'
A small game I made to practise publishing
on Google Play.
I plan to upgrade this game a bit in the future.
Unreleased
Older Projects:
Android 2.x Game Project
My Android (API Level 8) project around 2011. Some parts are recycled and ported to my current project.
Emulating the game
Seems to run alright, emulator is a bit sluggish though.
Level Editor
A level editor for the game. Made with Java.
2010 game engine project
An attempt at creating a small scale game engine with C++ D3D and WIN32. I also made a small test game with the engine; this game was use as a basis for my Android game project above.
Loading a music script: it's the Duke Nukem theme!
Playing some music
Making awesome OPL2 noises.
Other stuff:
JavaScript games:
'Excidium -Omnia Interit-'
A crummy javascript game made during some lectures (because I was bored).
This game is a bare bones basic side-scrolling shoot 'em up: collect power-ups and shoot anything that moves.
Note: a keyboard is required to play.
Code:
Approximation of square root of x (C#)
This is my best approximation of Math.sqrt(x) thus far. Speed and accuracy are fairly good on this one.
/// <summary>
/// Approximates the square root of x using the
/// Newton's method.
/// </summary>
/// <param name="x">Positive floating point number</param>
/// <returns>Approximation of Math.Sqrt(x)</returns>
public static double ApproxSqrt(double x) {
if (x < 0) return double.NaN;
/*
The following line can be removed when not dealing with
very small numbers: (it's a rubbish approximation anyway!)
*/
if (x < 0.01) return 10 * x;
float a;
/*
The following makes an initial guess of the root 'a'
based on 'x'
*/
if (x < 29) a = 0.25 * x + 0.5;
else if (x < 1000) a = 0.0375 * x + 6.65;
else a = 0.02 * x;
a = a - ( a * a - x ) / ( 2 * a );
a = a - ( a * a - x ) / ( 2 * a );
/*
add more of these to get more accurate results:
a = a - ( a * a - x ) / ( 2 * a );
*/
return a;
}
Music:
I have also composed some music... (but this site does not allow music files)