K5SPLODE - Keen 5 galaxy explosion editor

A catch-all of miscellaneous Keen:Modding utilities.
Post Reply
lemm
Posts: 554
Joined: Sun Jul 05, 2009 12:32 pm

K5SPLODE - Keen 5 galaxy explosion editor

Post by lemm »

K5SPLODE is a tool that lets you edit the galaxy explosion pattern in the game over screen in Keen 5. The ending screen (5MSC0004.BIN as recognized by modkeen 2) consists of 4000 points that can occupy any starting point on the screen and possess a constant velocity. Literally, there are four sections in 5MSC0004.BIN , each arrays of 4000 words (8000 bytes), corresponding to the 4000 pixels.

Section 1 (Byte 0 = $0) : Starting X coord, unsigned word
Section 2 (Byte 8000 = $1F40) : X velocity per frame, signed word
Section 3 (Byte 16000 = $3E80) : Starting Y Coord, unsigned word
Section 4 (Byte 24000 = $5DC0) : Y velocity per frame, signed word

The units for all four sections are 128/ths of a pixel, so giving a pixel an X velocity of 128 ($80) will make it move right one pixel per frame.

My program accepts input as a series of 320x200 bitmaps and functions that describe the starting coordinate and velocities of the points, repsectively. You specify how many points you want to use from one bitmap, the filename of the bitmap, and two component functions <X(x,y);Y(x,y)> that describe the initial X and Y velocities as a function of the starting x and y coords of the point.

Update: Program is basically done now, unless anyone wants more stuff...

Download (Sep. 28, 2010): http://files.commanderkeen.org/users/omp/k5splode.zip

levellass
Posts: 2997
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

May I add this as an extra with Keengraph? I have an exporter/importer, but it doesn't have nearly the advancement of this.

lemm
Posts: 554
Joined: Sun Jul 05, 2009 12:32 pm

Post by lemm »

Go right ahead!

KeenRush
Patch Maker
Posts: 1988
Joined: Sun Aug 31, 2003 2:52 pm
Location: Sand Yego
Contact:

Post by KeenRush »

Haha, this sounds so geeky. :D Haven't tried it but I can guess it's good work.

Post Reply