CindySchroer

Members
  • Content Count

    2
  • Joined

  • Last visited

1 Follower

About CindySchroer

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. CindySchroer

    Phaser states

    Hello I need some help with my game. I wanted to work with game states so I've got this code (see attachment) In boot.js I've got this: var Game ={}; Game.Boot = function(game){ }; Game.Boot.prototype = { init:function(){ this.input.maxPointers =1; this.stage.disableVisibilityChange=true; }, preload:function(){ this.load.image('preloaderBar', 'assets/meme.jpg'); }, create:function(){ this.state.start('Preloader'); } } Just a simple picture has to come up but when I load my game this error shows up: Uncaught ReferenceError: windows is not defined(…) Can anyone explain what is happening here? A little step-by-step would help because I'm a beginner.
  2. CindySchroer

    Uncaught SecurityError

    Hello, I have an issue with loading a image in phaser. I keep getting the same error, it says "Uncaught SecurityError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The cross-origin image at file:///Users/CindySchroer/Downloads/Plaatjes/Phaser/assets/images/background.png may not be loaded". I don't understand why it isn't loading (see attatched). Can anyone explain what is happening here? A little step-by-step would help because I'm a beginner. Thanks! Cindy