Advertisement
5_2007-2008 Games #190050

API Gaming Techniques Vol. 1 - Fast Sprite Manipulation

I will be creating a series of API Gaming tutorials to help newer game programmers to get started, so I searched around existing tutorials to try to make something new. Direct X is by far the best way to go in creating games in VB but API is very effective, and easier to learn. So hopefully this will be helpful and informative to some people. In this example I've placed a couple Starcraft ship sprites into it. These sprites will track your mouse and face the direction of your mouse. This is useful in that it teaches multiple techniques at once. This includes transparent painting, loading bitmaps into memory for fast painting, painting from a sprite strip, determining distance between 2 points, determining the angle between points (something I wasn't able to find here at planet source code, and a lot of useful math functions. I spend most of my time programming for commercial applications but I will try to check this as often as I can. So if anyone needs help or explanations post a comment and I'll try to respond as quick as I can. Also I've commented nearly every line of this project so hopefully most things should be very understandable.

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine