Jump to content

Search the Community

Showing results for tags 'examples'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





  1. I'm doing this on a Windows 10 PC. I have php installed. I cloned phaser-master git source into inethub/webroot/phaser directory. Cloned the phaser-examples-master into inethub/webroot/phaser-examples directory. index file in examples says can use phaser debug runner. link shows a php file. What exactly do I have to do with that file? Not clear to me. Thanks for help.
  2. When I hit the "Reload Example" button the page scrolls to the top but nothing else seems to happen... For instance if I open this Drag example and drag the sprite, then when I hit the "Reload Example" button the sprite should be back at its original position in the center, but it's not. Likewise editing the example code and hitting the button doesn't run the new code, it just scrolls to the top of the page... EDIT: oops, the button is called "Reload Example" not "Refresh" (I guess the icon reminded me of refresh;)
  3. There used to be a little (rocket ship?) button to run the code just above the text editor on the examples pages. Now it is gone. :/
  4. Hello everyone, I opened the Basic Phaser Template and wanted to play around with the example body debug.js from the repository. There is a code comment on the basic template index.html in the script tag which says: We did it in a window.onload event, but you can do it anywhere (requireJS load, anonymous function, jQuery dom ready, - whatever floats your boat I'm familiar with the window onload event done it many times and it works. Idk much about requireJS load, anonymous function, jQuery dom . And so It all boils down to a stupid question. I wanted to try opening the bodyde
  5. So I'm currently following @rich 's Shoot-em-up tutorial from over here https://phaser.io/tutorials/coding-tips-007. Please have a look at the source code if you haven't already. From what I understand he create's a weapon array that holds all the weapon types (each of which are an object inside a Weapon object). Now my question is How do I access the current weapon bullets in game.physics.arcade.collide? I've used game.physics.arcade.collide(this.weapon[this.currentWeapon], this.enemies) and this works fine, the bullets and the enemy collide well. BUT what if I wan
  6. The website examples do not seem to be editable anymore. I used to tweak an example and hit the "run" button, but that seems to have been replaced with reload example - which does not seem to do anything. I have tried in different browsers to be sure. Example below. http://phaser.io/examples/v2/animation/animation-events Is there a keyboard combo which might run new edits? Sorry if this has been asked before but I could not find a match when searching.
  7. I have studied Yahtzee game which was found in Phaser Examples folder. I find it has been not finished. In other words, not playable yet. Has someone have finished the game somewhere? TIA
  8. Hi Enpu. I really like Panda.js and the example games. Thank you very much for creating it! I wanted to confirm that the code for the example games in https://github.com/ekelokorpi/panda.js-engine-games is also MIT licensed? The examples are a great starting point for new games.. I understand that the graphics and sound assets probably have different terms, and can be replaced. So I am only asking about the license for the code, not the license for the assets. Keep up the good work!
  9. While attempting to hand-transpile some Phaser examples to Typescript, Creature Phoenix example in Animation section failed to build. The creature() method does not exist on GameObjectFactory. I am using VS2015 with an advanced Typescript template and Phaser 2.4.8. I have finished transpiling over 20 examples (randomly selected) with success so far.
  10. I have started the blog in 2013 or so. I recently made more posts with code and am up to 30+ posts and almost all with code. I like to learn how to program 2d games and put the knowledge on the blog. I try to make everything I need to program games like platformers and rpg's ect. I have no idea how many posts I wil make on the blog. My other programming blogs have up to 200 posts most with code per blog so far. Here the link : there is a link on the page to the github page where the code is too. (download all code as a zip) http://html5gameprogrammingstepbystep.blogs
  11. When i try to use game.create.texture from the Phaser examples, I get an error: Cannot read property 'texture' of undefined. For example, if I copy the example code from the "Generate Sprite" example, or the "More Sprites" example and try to run them locally, I get the error. The "game" variable is declared globally, for example (from the "More Sprites" example): var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { create: create }); And then within the create function, game.create.texture is used, for example: game.create.texture('chick', chick, pixelWi
  12. The web IDE for Phaser Examples allows you to modify the code and then select the Run Code button (looks like a rocket ship). It only works once. Attempt to change code after pressing the Run Code button once and repeating the button press does not work. A look at the browser's console shows this message appears after pressing Run Code the second time. Uncaught ReferenceError: VERSION is not defined IDECallback @ embed.js:60
  13. I'm digging through the input tutorials. These don't work in my browser(Chrome). Tried with Edge - same thing. keyboard-justpressed << but works through localhost override-default-controls << doesn't work even through localhost Error: Uncaught TypeError: game.input.keyboard.justPressed is not a function. or other input stuff that are not a function. I tried this in my game: upKey = game.input.keyboard.addKey(Phaser.Keyboard.W);downKey = game.input.keyboard.addkey(Phaser.Keyboard.S);leftKey = game.input.keyboard.addKey(Phaser.Keyboard.A);ightKey = game.input.keyboard.addKey(Pha
  14. At least two examples on the official website failed to work. 1) http://phaser.io/examples/v2/input/override-default-controls 2)http://phaser.io/examples/v2/input/keyboard-justpressed Based on the info shown in Chrome console, both examples encountered the same error: justPressed is not a function. Does anyone have any ideas about it?
  15. I am trying to test some body data for a game I'm making by modifying the Body Debug example at http://phaser.io/examples/v2/p2-physics/body-debug. I'm getting a TypeError: Undefined is not a function message when I try to run the script, however, and it is happening at the call to game.load.physics. I am using the exact code from the example besides changing the filenames to match my filesystem, and the game.load.image calls work fine, just no body data can be loaded. I just updated my phaser version from GitHub, so it shouldn't be out of date, but I'm not sure if there's some other issue
  16. im new to game development and i began with phaser which seems to be a great framework but i can't understand it's documention very well. Lets talk about phaser groups. How you understand how to use groups based on the documention ? Examples are clearer but limited they dont cover everything.
  17. Hello, i'm new to phaser and i'm very excited to started coding games with it but I've encountered a problem when i was trying to load the examples provided locally. I can't run properly the basics examples, every other example runs apart from that ones and i don't know what to do, so if anyone could help me it would be nice. One more thing, since i'm new i'm having a hard time setting up my development environment... I've already tried brackets, sublime text, webstorm and netbeans and i still don't know which is better so if someone liked to share how they work with phaser or point me to
  18. I would like all we put links of things made with Phaser and other libraries here! Tween to animate a sprite and the background color in Phaser with GSAP TimelineLite (You can reverse all): http://codepen.io/jdnichollsc/pen/ZYeWEr Regards, Nicholls
  19. I wanted to take a look at the filters examples, specifically 'fire' to see if I could use it in a project, but it's not showing up... (along with a number of other filters examples), I tried all my browsers (chrome, firefox, safari, mac & windows) I know I've seen this working in the past... Here's the console: "Failed to load Phaser.js from github, falling back to local copy" phaser-viewer.js:49 "Phaser v2.1.0 | Pixi.js v1.6.1 | WebGL | WebAudio | http://phaser.io" jquery-2.0.3.min.js line 4 > eval:22715 SyntaxError: syntax error view_full.html TypeError: Phaser.Filter[filter]
  20. I am finally circling back around to learning Phaser and working my way through the Phaser examples one by one. I have to say a big thanks to Rich and anyone else who has been working on updating and creating new examples. I know how much effort documentation takes from a former life in software support for a large broadcast automation software suite. Thank you! I am learning so much, and I am just getting started. It's very motivating.
  21. Hi There, This weekend I spent some time on a new webpage with live code examples of panda.js. So far enpu has done a remarkable job on documentation already. (Documenting and writing tutorials for an engine is really time consuming). I wanted to contribute a bit so I wrote a small "panda.js fiddler. On the site you can view small code examples and in addition the resulting code is shown in a live canvas. Even better: You can actually make adjustments to the code example and see the result on the fly! (It works sort like jsfiddle). You can find the site at: http://vermeire.home.xs4all.nl
  22. Hi, I can't find in main page links to docs and examples. I think for new users, it looks very strange, and we lose them.
  23. I want to know what kind of games get licensed .I have heard about FGL but i have no Idea about what kind of games they approve? Want to see some approved games.
  24. I know hosting the examples locally is trivial but sometimes it is just easier to have a link than configure an additional site for local hosting... don't forget your mime type of .json ;-) anyways... feel free to reference here: http://phaserjs.g30rg3d.com/ Goes without saying but... I did not create these examples nor am I trying to take credit for such. I am merely hosting them for easy access.
  25. tmoore


    be kind just started using phaser i am using xammp apache host i installed all the phaser files and examples to my root directory the examples page opens fine but when I click on the examples all i get is the following what is wrong thanks for help in advanced !!! Phaser Version: 1.1.3New version: Back to examples Source code: View details & submit© 2013 Photon Storm Ltd. All rights reserved. Looking for a flash game framework? Try FlixelPhaser on Github@photonstormPhaser Forums
  • Create New...