Commit 53ce6c2f authored by Orbmancer's avatar Orbmancer
Browse files

latest test case

parent 78e0be8b
......@@ -26,6 +26,7 @@ foreach($levels as $level){
}
// Create the XML file
/*
$finalFile = simplexml_load_file('data/level_layout.vvvvvv');
$finalFile->Data->contents = $finalTabs->toString();
......@@ -36,3 +37,4 @@ header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
print($finalFile->asXML());
*/
\ No newline at end of file
......@@ -50,15 +50,7 @@ class Tabs
}
private function getTabY($index){
return 1+ (int) floor($index / (self::$tabwidth * $this->mapwidth * self::$tabheight));
}
public function settabs($tabs) {
$this->tabs = $tabs;
}
public function gettabs() {
return $this->tabs;
return 1+(int) floor($index / (self::$tabwidth * $this->mapwidth * self::$tabheight));
}
public function whereIsMyLevelLocated(){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment