Log In  
Follow
Cieroceramics

So this will by my introduction. hello community. I need your help.
so the game I created is a platforming game. for which I designed a external level editor in c++.
my theory is. I can really only fit one level into the pico 8 map editor.
but if I parse my map data as a string, despite adding a few extra thousand lines of code to my file, I will at least have a streamlined way to create and import levels. so far the level editor works great. I tell it how big I want the map and then once I have placed all my tiles I can save it to a text which just writes the x, y position and a type variable. 3 variables in total. so my output file ends up looking something like this

x y t
0 8 0
1 8 0
3 8 0
2 8 0
4 8 0
6 9 0
7 10 0
9 12 0
11 9 3
13 8 0
15 8 0
17 7 0
18 6 0

there has GOT to be a way to parse this data. in regular lua it would be something like


platforms={}
function _makeplatform(x,y,t)
pf.t=t
pf.x=x 

[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=81948#p)
15 comments