This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs"); | |
const progfile = process.argv.find( | |
(arg) => arg.split(".").reverse()[0] === "math", | |
); | |
const file = fs.readFileSync(progfile); | |
zola = file.toString(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* The backbone of all games. The Engine. | |
* Provides, manages, executes & handles objects, attributes, methods and state of every level of every game. | |
* @author Priyanshu Ranjan (ranjanistic) | |
*/ | |
class Engine { | |
canvas = getElement("canvas"); | |
context = this.canvas.getContext("2d"); |