Well I got your code to work. Woo hoo.
Well you might say why I have got all those images in the folder and the reason is this. I have so far only put one image in my resource file for testing.
The image I have put in is the cities.
If you look at my code I have put this in
Code: Select all
//City.LoadSprite(L"data//City",50,38); //removed this line which loads from a file
City.LoadSpriteRes(IDR_CITY,50,38);
I have added it to show you it working. By the way I haven't got all the levels sorted properly yet, and there are a few bugs to iron out, but have a go at the game and let your turrent get hit. I have a nice turret shield hit animation heh heh. You are supposed to have 3 sheilds, but there is no code to end the game when you get destroyed though LOL.
Right first of all even though the code didn't give an error my cities didn't show up at first and the reason for this was this. I loaded my png into the resource editor as a bitmap, and that won't work.
You have to load it in as an RC Data and then it works.
The reason it was important to have dual functionality is that it is easy to test pngs by just dropping them in, and then later adding them to the resources.
Now I going to do all my images now.
This is dead cool. Thanks Chilli.
Asimov