Skip to content

Instantly share code, notes, and snippets.

View ranjanistic's full-sized avatar
🥶
Probably at GitLab.com these days.

Priyanshu Ranjan ranjanistic

🥶
Probably at GitLab.com these days.
View GitHub Profile
const fs = require("fs");
const progfile = process.argv.find(
(arg) => arg.split(".").reverse()[0] === "math",
);
const file = fs.readFileSync(progfile);
zola = file.toString();
'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");