Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/23/14 in all areas

  1. Hey guys, since we have a few beginners here on board, trying to make their first steps in the world of HTML5 games, I thought it might be good to point you to a few resources about how to learn to write good javascript code. JavaScript is a language where you have to be a bit careful about your syntax and code style if you want to write maintainable and readable code in the long run. The advice I give to most newcomers is: DONT dive right into developing a complex game! First learn how to handle the language properly. Spending a week or two with reading through a good JavaScript book and
    2 points
  2. There's your problem... is this a fresh download of the demos or have you made changes? Would be good if you post your directory layout structure as well.
    1 point
  3. If you open chrome developer toolbar and view the console tab, are you getting any errors?
    1 point
  4. Use a Phaser timer. https://github.com/photonstorm/phaser/blob/master/examples/time/basic%20timed%20event.js
    1 point
  5. jpdev

    Multi File Game

    You don't actually need anything phaser specific for this. Just create your own objects in separate flies and call them from the main game phaser functions. For example, you want to manage your hero (or even multiple heros later on) in hero.js you could do this: to the html file you add this: <script src="hero.js" type="text/javascript>Add it before the main-game script tag (or if you are just using a index.html with the main game in it, then add this hero scirpt-tag before the actual game script). Now in the hero.js you can do just anything, it's part of the websites script.
    1 point
  6. Hey guys, I have a weird collision in my 1.1.5 game, sprite VS sprite. I've read on this forum about similar stuff, but not sure it's the same issue that was in 1.1.3 and fixed in 1.1.4. Tried it with 1.1.3, works the same. I made a quick ugly sketch to demonstrate the behavior. The collision works from left and right and top/bottom of the rectangle. But when it "cuts " the edge of it, it just goes through. Here's the code: if (this.game.physics.collide (this.player, this.obBot)) { this.player.kill(); game.state.start('Over'); } if (this.game.physics.collide (this.
    1 point
  7. cubiq

    2D Shmup like DODONPACHI

    very nice library... just a bit hard to follow in Japanese.
    1 point
  8. Another week and a huge amount of progress across all core areas. The headliners include: Contact Materials and material management added and working nicely. The start of the collision events are in too. Tilemaps now load, render and collide. I need to check performance on mobile, but on desktop it's pretty sweet. We've started updating all of the examples to work under the new version and created a few more labs demos. Lots and lots of github issues closed, merged or added as features. Things like being able to load json files directly from the loader, States having 'paused and resume'
    1 point
  9. Hi Richard, Thank you so much for your work. The new Phaser (be it named 1.2 or 2.x) looks very cool and opens up alot of really cool game possibilities that just were not possible with 1.1.x. From what I have seen now (labs) I changed my mind about wanting arcade physics back. It just closes off too many cool options and doubles not only your work, but also the work the developer has to do, to learn phaser. In my optionen there should instead be presets / setup examples for the new engine to resemble pretty closely what the old arcade physics did. (I think with porting the old example
    1 point
  10. angelkom

    Feature requests

    enpu your engine is really good but to people to be able to learn it fast you need to make better docs, I mean give explanation for every object, module, property, method in the engine and also please add an example for every of object, module, property, method.
    1 point
  11. Yes, you can read the Archive page where all the older newsletter issues are.
    1 point
  12. /* Crockford rocks. He's a JavaScript god. */ He has some great talks on youtube as well: www.teamtreehouse.com Learn to make websites and mobile apps, etc. I'm a member...great site! Also check out http://eloquentjavascript.net/ Eloquent JavaScript is a book providing an introduction to the JavaScript programming language and programming in general. A concise and balanced mix of principles and pragmatics. I loved the tutorial-style game-like program development. This book rekindled my earliest joys of programming. Plus, JavaScript! —Brendan Eich, the man who gave us JavaScrip
    1 point
×
×
  • Create New...