Click here to Skip to main content
11,790,021 members (51,293 online)
Click here to Skip to main content

A Small GDI+ Sprite Animation Library

, 8 Sep 2006 CPOL 46.2K 2.4K 40
Rate this:
Please Sign up or sign in to vote.
Animate and control sprites using GDI+.

Sample Image - winSpriteLib.jpg


This is a small library for animating sprites using GDI+. It also contains a game engine that manages hooking the keyboard and updating the sprites in the game for you. It is limited, and not the best approach for a full fledged game in most cases, but for a small game, GDI+ is not a bad option, and hopefully this will make the game creation a bit easier.

You may modify and re-use this as you wish, and you can use it in any game you want to sell, but please don't sell it as a product in itself... Besides it being unethical, it's probably not an engine that is going to sell for much Wink | ;) .

This is meant only to show the use of GDI+ and get you started in game programming. I haven't been programming for Windows long, and I like to learn by doing... and I also like to share so that other people can learn. If you have any questions, please let me know. I hope you enjoy the code and maybe even learn something... just keep in mind that I am also learning, and would appreciate any feedback you have on how this could be done better... but still using GDI+ as that was the point of doing it this way. I am now starting to create a better engine using DirectX, and would like any feedback on how you think I could better implement a game engine using it.

Thank you for any votes or feedback! Wink | ;) Enjoy!

Please note that the ability to scroll would not have been possible without the help of Anthony Queen. You can see his articles and view his profile by following this link:


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer (Senior)
United States United States
PC Programmer/Analyst

You may also be interested in...

Comments and Discussions

GeneralMy vote of 4 Pin
Samuel Pearce14-Jun-11 8:10
memberSamuel Pearce14-Jun-11 8:10 
GeneralMy vote of 5 Pin
arquero_r20-Jan-11 16:45
memberarquero_r20-Jan-11 16:45 
GeneralMy vote of 5 Pin
Member 366671418-Aug-10 20:49
memberMember 366671418-Aug-10 20:49 
GeneralMy vote of 1 Pin
JamminJimE31-Jul-09 6:32
memberJamminJimE31-Jul-09 6:32 
GeneralScrollable image Pin
Anthony Queen29-Sep-06 3:54
memberAnthony Queen29-Sep-06 3:54 
Questionnice background image Pin
chengang8-Sep-06 21:08
memberchengang8-Sep-06 21:08 
AnswerRe: nice background image Pin
Polymorpher9-Sep-06 9:13
memberPolymorpher9-Sep-06 9:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.1509028.1 | Last Updated 8 Sep 2006
Article Copyright 2006 by Polymorpher
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid