Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 0.45 KB | None | 0 0
  1. class Main {
  2.     static function update(): Void {
  3.  
  4.     }
  5.  
  6.     static function render(frames: Array<Framebuffer>): Void {
  7.  
  8.     }
  9.  
  10.     public static function main() {
  11.         System.start({title: "Project", width: 1024, height: 768}, function (_) {
  12.             Assets.loadEverything(function () {
  13.                 Scheduler.addTimeTask(function () { update(); }, 0, 1 / 60);
  14.                 System.notifyOnFrames(function (frames) { render(frames); });
  15.  
  16.                 Mouse.get().lock();
  17.             });
  18.         });
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement