プレイ日記
crazy pro Jakob13009
how do i load a map
0そうだね
プレイ済み
返信[1]
親投稿
Stewart segludian1
It depends on how you made the map. Did you create it with the editor in the Smile Tool? If so did you save it as one file or several layers? If you have a bunch of data statements or read from a text file the answer will be different. The SmileTool editor is nice but has hard coded map sizes. Which is why other methods can be better.
1そうだね
プレイ済み
返信[2]
親投稿
crazy pro Jakob13009
i made it with the editor and saved it
0そうだね
プレイ済み
返信[3]
親投稿
Stewart segludian1
A single file is harder to load, but I do have a demo that reads it in. This is Part 1 of 3, see attached. The map loading function should be easy to reuse.
0そうだね
プレイ済み
返信[4]
親投稿
Stewart segludian1
Here is part 2 of 3. I do some sanity checks to make sure what we are reading is actually a Smile Basic Map Tool map.
0そうだね
プレイ済み
返信[5]
親投稿
Stewart segludian1
Part 3 of 3. We resize the layers and draw the tiles. Hope that isn't too much to type.
0そうだね
プレイ済み