Alright, here goes (I've excluded my main() even though it's very short):
Also, I'm able to compile my program now that I've moved my structure out from gameLoop to the top of my code as a global...
Type: Posts; User: BigToque
Alright, here goes (I've excluded my main() even though it's very short):
Also, I'm able to compile my program now that I've moved my structure out from gameLoop to the top of my code as a global...
In one of my functions, I've declared a structure.
I want to be able to modify the contents of that structure (specifically an array I've defined) from another function, but I keep getting an...
I got it... thanks for the help guys.
I didn't think to break my numbers apart and was getting integer overflow :o
When I do that I get this:
2089929714
0
0
2089952188
131728
0
2147156510
14
I've been messing with this for a few hours and I just can't seem to get what I want. I've been over the documents on this for a while and I can't see what I need.
What I want: I've got a text...
Here is what my code looks like:
struct MAP {
BITMAP *map[20][15];
unsigned int tileID[20][15];
};
ifstream mapInput ("worldmap.txt", ios_base::binary );
Even with:
ifstream in ( filename, ios_base::binary );
The data is still coming into my program as ASCII.
I'm making a 2D tile RPG clone of dragon warrior (NES).
I have a text file that looks like this:
1111111
1000001
1000001
1111111
Each digit represents a specific tile in a specific...