Guest User

Untitled

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