Jump to content

Search the Community

Showing results for tags 'document'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 4 results

  1. Hello everyone! I'm new here and my first question is how to make my Phaser game fill all the document? I mean, take for example Slither.io, if you resize the browser, the game view will adjust to fit the same resolution while it is ocupying all the document. I wanna do the same thing to my game. How can I achieve this? Thank you for answer me!
  2. If we do ModelFinish.initScene(scene); we initialize scene of ModelFinish.js. That works fine. Is there any way how to get object ModelFinish from document ? is there any way similar like this so as maybe var objModel = document.getObject"ModelFInish") and then initilization object objModel.initScene(scene) ??? Greetings Ian
  3. Hi, sorry for very noobish question I have my phaser game.js file which have reached more than 700 lines of code. I want to divide it into documents containing f.e. only create function, update, variables and other functions. I thought this will work: <div id="game"> <script type="text/javascript" src="game.js"></script> <script type="text/javascript" src="create.js"></script> <script type="text/javascript" src="update.js"></script> <script type="text/javascript" src="functions.js"></script> </div> But error, create function not found. In game.js it look like this: var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create, update: update, render: render }); function preload() { (...) } function create() { (...) } function update() { (...) } functions....
  4. Hello everyone I am now joining the forum, and have now started using intel XDK, to create a Phaser project. However, the default project created by XDK, has some errors. It doesn't prevent the app from running (I can see a rotating bear on the screen), but I fear those errors will spell trouble. Here are the errors: 10 JSHint Problems×Line Problem Code snippet4 'document' is not defined. (W117) document.addEventListener('DOMContentLoaded', function()7 'PIXI' is not defined. (W117) var stage = new PIXI.Stage(0x66FF99);10 'screen' is not defined. (W117) var width = screen.availWidth;11 'screen' is not defined. (W117) var height = screen.availHeight;12 'PIXI' is not defined. (W117) var renderer = PIXI.autoDetectRenderer(width, height);15 'document' is not defined. (W117) document.body.appendChild(renderer.view);17 'requestAnimFrame' is not defined. (W117) requestAnimFrame(animate);20 'PIXI' is not defined. (W117) var texture = PIXI.Texture.fromImage("asset/phaser.png");23 'PIXI' is not defined. (W117) var phaserImage = new PIXI.Sprite(texture);37 'requestAnimFrame' is not defined. (W117) requestAnimFrame(animate); 2 JSHint Problems×Line Problem Code snippet11 'document' is not defined. (W117) document.addEventListener('deviceready', function() {13 'navigator' is not defined. (W117) navigator.splashscreen.hide(); 4 JSHint Problems×Line Problem Code snippet21 'BasicGame' is not defined. (W117) BasicGame = {26 'BasicGame' is not defined. (W117) BasicGame.Game = function (game)32 'BasicGame' is not defined. (W117) BasicGame.Game.prototype =49 'Phaser' is not defined. (W117) this.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; The codes are just the default. If you would like me to post the codes I can do so.I appreciate any help I can get on this. Thanks
×
×
  • Create New...