Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Main {
- static function update(): Void {
- }
- static function render(frames: Array<Framebuffer>): Void {
- }
- public static function main() {
- System.start({title: "Project", width: 1024, height: 768}, function (_) {
- Assets.loadEverything(function () {
- Scheduler.addTimeTask(function () { update(); }, 0, 1 / 60);
- System.notifyOnFrames(function (frames) { render(frames); });
- Mouse.get().lock();
- });
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement