Tabnine Logo For Javascript
LoaderPlugin
Code IndexAdd Tabnine to your IDE (free)

How to use
LoaderPlugin
in
phaser

Best JavaScript code snippets using phaser.LoaderPlugin(Showing top 4 results out of 315)

origin: aaron5670/PokeMMO-Online-Realtime-Multiplayer-Game

preload() {
    // Load Town
    this.load.image("TilesTown", TilesTown);
    this.load.tilemapTiledJSON("town", TownJSON);

    // Load Route1
    this.load.tilemapTiledJSON("route1", Route1JSON);

    // Load atlas
    this.load.atlas("currentPlayer", AtlasPNG, AtlasJSON);
    this.load.atlas("players", PlayersAtlasPNG, PlayersAtlasJSON);
  }
origin: geckosio/phaser-on-nodejs

it('should multiply to 528 (24*22)', done => {
 class MainScene extends Phaser.Scene {
  preload() {
   this.load.image('star', '../assets/star.png')
  }

  create() {
   const star = this.physics.add.sprite(400, 300, 'star')
   expect(star.body.width * star.body.height).toBe(528)
   done()
  }
 }

 StartTest([MainScene])
})
origin: geckosio/phaser-on-nodejs

class MainScene extends Phaser.Scene {
 preload() {
  this.load.image('tiles', '../assets/gridtiles.png')
  this.load.tilemapTiledJSON('map', '../assets/simple-map.json')
origin: geckosio/phaser-on-nodejs

it('should multiply to 1536 (32*48)', done => {
 class MainScene extends Phaser.Scene {
  preload() {
   this.load.spritesheet('dude', '../assets/dude.png', {
    frameWidth: 32,
    frameHeight: 48,
   })
  }

  create() {
   const dude = this.physics.add.sprite(100, 450, 'dude')
   expect(dude.body.width * dude.body.height).toBe(1536)
   done()
  }
 }

 StartTest([MainScene])
})
phaser(npm)LoaderPlugin

Most used phaser functions

  • LoaderPlugin.image
  • LoaderPlugin.tilemapTiledJSON
  • ScenePlugin.start
  • AnimationManager.create
  • AnimationManager.generateFrameNames
  • ArcadePhysics.add,
  • Body.height,
  • Body.onFloor,
  • Body.setSize,
  • Body.width,
  • Factory.collider,
  • Factory.sprite,
  • Game,
  • Game.Game,
  • GameObjectCreator.tilemap,
  • GameObjectFactory.text,
  • HEADLESS,
  • LoaderPlugin.atlas,
  • LoaderPlugin.spritesheet

Popular in JavaScript

  • rimraf
    A deep deletion module for node (like `rm -rf`)
  • body-parser
    Node.js body parsing middleware
  • js-yaml
    YAML 1.2 parser and serializer
  • commander
    the complete solution for node.js command-line programs
  • webpack
    Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
  • qs
    A querystring parser that supports nesting and arrays, with a depth limit
  • request
    Simplified HTTP request client.
  • mocha
    simple, flexible, fun test framework
  • mkdirp
    Recursively mkdir, like `mkdir -p`
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJavascript Code Index
Get Tabnine for your IDE now