Hi here is a simple code (i have super noted this code to tell you everything you need to know on simple programming in gdk). Its very easy to understand.
Here are the sprites you will need, These are all made by me and are free to use even though their lame
. Also i uploaded them on my private server, is there any other place i can host them (kinda permanently, becaus image hosts delete your uploaded imgs after a while):
Backdrop2.bmp
sleft.bmp
soldier.bmp
1) Open up VC++ 08 and go to file->new project->wizards-> 2D Game
2) Delete Main.Cpp on the project you just created.
3) Download the attachment on this thread and place Main.cpp from there to your project folder.
3) Download the code from the attachment below.
Please feel free to meddle with the code and stuff. Im a n00b so please dont ask me anything too advanced xD
Luckily, i figured out how to move left/right on my own, i had to use the coordinates. At first though i actually tried to mirror the original sprite but everytime you would press the button or hold it down the sprite would keep mirroring so dont worry about that for now.
Thanks and if you found this sample kinda useful please tell me.
Azeem
Azeem - Game Programmer In Training... knows php,html,mysql,js,ajax a little Action script and a little C++