O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16. Advanced Sprite Programming: Alpha Channel Transparency and Angular Motion

This chapter covers two advanced topics in sprite programming that will give your games a serious edge over the competition. First, you’ll learn how to create sprite images that use an alpha channel instead of a color key for transparency. This advanced technique produces much higher quality sprites than a color keyed sprite (which uses a specific color for pixel-level transparency). Next, you’ll learn an advanced technique to move a sprite using angular motion. This type of sprite control produces a realistic simulation of momentum which looks great in a space-based game. To demonstrate how these two advanced topics work, this chapter provides a hands-on ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required