Advertisement
metalx1000

Phaser 3 minimal JS

Apr 2nd, 2020
698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const config = {
  2.   type: Phaser.AUTO,
  3.   parent: "game",
  4.   width: 800,
  5.   height: 600,
  6.   scene: {
  7.     preload: preload,
  8.     update: update,
  9.     create: create
  10.   }
  11. };
  12.  
  13. const game = new Phaser.Game(config);
  14.  
  15. function preload (){
  16.  
  17. }
  18.  
  19. function create (){
  20.  
  21. }
  22.  
  23. function update(){
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement