Calls a function from user32.dll to get the time delay allow for registering a double mouse click on the system. Useful if your program has double click features and you want it to feel more natural to the user.
Shapes a matrix by using a specified height map image. The height map's image data is read from a memblock in which the image has been loaded into. It may appear that only the red channel is being used, but a height map should always be gray-scale and thus all color components will be the same.
clickMatrix() function turns the mouse's 2D screen position into a 3D position on a flat matrix and stores the values in the global 'target' variables. The 'offset' variables are equal to the point in space where the camera is currently pointing. OffsetY# should always been the same height as the plane (the matrix) you're projecting the mouse coordinates onto. The function can easily be modified to work in DB Classic simply by removing the function text from clickMatrix and turning it into a sub-routine. Also, remove any 'global' and 'as float' commands.
Builds a randomized matrix using fault formation and a simple smoothing algorithm. User SPACEBAR to add another fault to the matrix, RETURN key to smooth the matrix, and SHIFT to call DBP's randomize matrix function.
Many RPG and online games display messages to the user on screen, but only so many messages are displayed at
one time and for only so long. Program displays a set number of messages which have been added to the queue,
with control for how long those messages are displayed.
Somtimes you just want to output some data to the screen in a specific area, but print() doesn't allow you position it and the other default text commands require you create an object for every line of text and requires you to manually update that object if you're outputting say a variable that changes during main loop. This is a quick fix to those problems.