Click here to Skip to main content
Click here to Skip to main content

A Small GDI+ Sprite Animation Library

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

Sample Image - winSpriteLib.jpg

Introduction

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: http://www.codeproject.com/KB/vb/PanExample.aspx.

License

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

Share

About the Author

Polymorpher
Software Developer (Senior) www.ruskin.com
United States United States
PC Programmer/Analyst

Comments and Discussions

 
GeneralMy vote of 4 PinmemberSamuel Pearce14-Jun-11 9:10 

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
Web02 | 2.8.1411022.1 | Last Updated 8 Sep 2006
Article Copyright 2006 by Polymorpher
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid