Computer Science Canada Tile based engine |
| Author: | VB_User [ Sun Apr 20, 2003 8:42 pm ] |
| Post subject: | Tile based engine |
Hey ive been working on trying to make a tile based game the past few days and cant seem to get the map loading from a text file working. I wanted to have the text file made up of numbers which represent different tiles. I was going to store each value in a 2 dimensional array since a map is 2 dimension (lxw). If anyone can show me some code to do this i would be greatful because i cant seem to get it working. thanks |
|
| Author: | Martin [ Sun Apr 20, 2003 10:01 pm ] | ||
| Post subject: | |||
|
|||
| Author: | Martin [ Sun Apr 20, 2003 10:04 pm ] | ||
| Post subject: | |||
The above is with binary files...otherwise:
|
|||
| Author: | VB_User [ Sun Apr 20, 2003 10:27 pm ] |
| Post subject: | |
hmm does this code work for u? |
|
| Author: | Dan [ Sun Apr 20, 2003 11:16 pm ] |
| Post subject: | |
well you do have to chage the file name and i dont know whats going on with that "Windows.Crash" stuff, i think drankness is having some fun there this just loads the data in to the progame you need to read it and then deside what title to draw. and of cores you need to have x and y set to the diments (per title) and have a file that maches this. |
|