View Single Post
zehjotkah's Avatar
Posts: 2,361 | Thanked: 3,746 times | Joined on Dec 2007 @ Berlin - Love this city!!
#36
Okay, modified my first level.
In Mokomaze "language" it looks like this:
Code:
 "comment": "level 1",
	
	    "boxes": [
	        { "x1": 150,	"y1": 110,	"x2": 160,	"y2": 639 },
	        { "x1": 320,	"y1": 0,	"x2": 330,	"y2": 529 }
	    ],
	
	    "holes": [
	        { "x": 289, 	"y": 199 },
	        { "x": 191, 	"y": 427 }
	    ],
	
	    "checkpoints": [
	        { "x": 410, 	"y": 65 }
	    ],

	    "init": {
	        "x": 77, 	"y": 567
In Teeter "language" the same level (optimized for 800x480, though) does look like this:
Code:
B 76 566

E 410 65

W 150 110 160 799

W 320 0 330 690

H 288 198

H 190 426
Now I have to write a script which translates the Teeter language into Mokomaze language.
Any help appreciated.

edit:
"init" = B
"checkpoints" = E
"boxes" = W
"holes" = H

x = first number
y = second number

Last edited by zehjotkah; 2011-01-09 at 22:00.
 

The Following 2 Users Say Thank You to zehjotkah For This Useful Post: