Skip to Content
Programming 2D Games
book

Programming 2D Games

by Charles Kelly
June 2012
Beginner
438 pages
15h 26m
English
A K Peters/CRC Press
Content preview from Programming 2D Games
292 9. Enhanced Appearance
//========================================================================
// Initialize the Light
// Pre: *graphics = pointer to Graphics object
// *textureM = pointer to TextureManager object
// left, top = screen location
// scale = scaling (zoom) amount
// flashRate = on/off/flash delay, <0 On, =0 Off, >0 flashes per second
// colorOn = the color of the light when on
// colorOff = the color of the light when off
// Post: returns true on success, false on error
//========================================================================
bool Light::initialize(Graphics *graphics, TextureManager *textureM,
int left, int top, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning 3D Game Programming

Beginning 3D Game Programming

Tom Miller

Publisher Resources

ISBN: 9781466508705