Animated Sprites png,dds,tga,bmp Whatever img file extension
Posted: May 31st, 2012, 9:07 pm
Okay guys here's my Demo that i'd been busy studying...
Basically this is how you can Load any image files as your Sprite.
I used .png image in this one so I can simulate shadows for the dudes.
Note that header files aren't visible in the solution since I included
them in different way which is by adding it's relative folder directory.
So if you guys wanna see the header files you'll have to go to the header files folder
and open it.
Another thing - This solution does not use the framework that our friend chili has but I use chili's window icon to make this framework that I've use in this project has a proper logo.
For Quick Settings try playing around with the variables
in the settings.h header file
You can try to full screen the Demo Window if you want to
You can try adding up to 500 dudes - more than 500 will give you something you wont expect.
but you can add 0.5f value to "kSpreadDownCavemen" variable to make the dude display normally.
doing so will give you freedom to add dudes for up to 500k dudes and more with no changes in frame rate al least in my computer. You don't need that much of dudes any ways - less than 50 dudes would be reasonable.
Good luck Everyone!!
hope this helped!!!!
Video Preview
Here's the file download:
Basically this is how you can Load any image files as your Sprite.
I used .png image in this one so I can simulate shadows for the dudes.
Code: Select all
settings.h variables value
int WindowStyle; = Full Screen if FullScreen var is true;
bool FullScreen = false; = triggers WindowStyle;
const int AINumber=35; = Number of Artificial Intelligence dudes.
const float kMoveAmount=5.0f; = The Speed of AI dudes.
them in different way which is by adding it's relative folder directory.
So if you guys wanna see the header files you'll have to go to the header files folder
and open it.
Another thing - This solution does not use the framework that our friend chili has but I use chili's window icon to make this framework that I've use in this project has a proper logo.
For Quick Settings try playing around with the variables
in the settings.h header file
You can try to full screen the Demo Window if you want to
You can try adding up to 500 dudes - more than 500 will give you something you wont expect.
but you can add 0.5f value to "kSpreadDownCavemen" variable to make the dude display normally.
doing so will give you freedom to add dudes for up to 500k dudes and more with no changes in frame rate al least in my computer. You don't need that much of dudes any ways - less than 50 dudes would be reasonable.
Good luck Everyone!!
hope this helped!!!!
Video Preview
Here's the file download: