29 lines
741 B
JavaScript
29 lines
741 B
JavaScript
|
|
|
|
const platformNames = {
|
|
[System.PLATFORM_LINUX]: 'Linux',
|
|
[System.PLATFORM_KNULLI]: 'Knulli',
|
|
[System.PLATFORM_PSP]: 'PSP',
|
|
[System.PLATFORM_GAMECUBE]: 'GameCube',
|
|
[System.PLATFORM_WII]: 'Wii',
|
|
};
|
|
|
|
Console.print('Platform: ' + (platformNames[System.platform] || 'Unknown'));
|
|
|
|
const test = require('test.js');
|
|
Console.print(test.str());
|
|
test.increment();
|
|
Console.print(test.str());
|
|
test.decrement();
|
|
Console.print(test.str());
|
|
|
|
// Scene.set('testscene.js');
|
|
// Console.print('Loading scene...');
|
|
// requireAsync('./testscene.js', function(scene) {
|
|
// throw "test";
|
|
// Console.print('Initializing scene...');
|
|
// var batch = scene.load();
|
|
// batch.lock();
|
|
// batch.requireLoaded();
|
|
// scene.init();
|
|
// });
|