int PlayerBitmap;
PlayerBitmap = Engine.LoadBitmap("picture.bmp");
PlayerSprite.SetBitmap(PlayerBitmap);
Engine.Renderer.AddSprite(PlayerSprite);
Engine.Renderer.Render();
Method #2:
BITMAP *Bitmap;
Bitmap = Engine.LoadBitmap("picture.bmp");
PlayerSprite.SetBitmap(Bitmap);
PlayerSprite.Render();
Method #3:
PlayerSprite.SetBitmap("picture.bmp"); //Loads it automatically if it isn''t already loaded
Engine.Renderer.AddSprite(PlayerSprite);
Engine.Renderer.Render();
Method #4:
PlayerSprite.SetBitmap("picture.bmp"); //Loads it automatically if it isn''t loaded already
PlayerSprite.Render();
I personally think that method 3 is the most script-kiddie compatible at the momment. What do you guys think? If you think of another way of doing it, PLEASE SPEAK UP!
Rob LoachWebsite: Over-Development
Current Project: Pong, The First
"The question is not how far, the question is do you possess the constitution, the depth of faith, to go as far as is needed."
- The Boondock Saints