ShatteredSword/src/main.ts

24 lines
837 B
TypeScript
Raw Normal View History

import Game from "./Wolfie2D/Loop/Game";
import default_scene from "./default_scene";
2020-08-03 16:51:20 -04:00
// The main function is your entrypoint into Wolfie2D. Specify your first scene and any options here.
(function main(){
// Run any tests
runTests();
// Set up options for our game
let options = {
canvasSize: {x: 1200, y: 800}, // The size of the game
clearColor: {r: 0.1, g: 0.1, b: 0.1}, // The color the game clears to
useWebGL: true, // Tell the game we want to use webgl
showDebug: false // Whether to show debug messages. You can change this to true if you want
}
2021-02-15 19:44:47 -05:00
// Create a game with the options specified
const game = new Game(options);
2020-08-03 16:51:20 -04:00
2021-02-15 19:44:47 -05:00
// Start our game
game.start(default_scene, {});
})();
function runTests(){};