Jump to content

Panda.js screencasts


enpu
 Share

Recommended Posts

Hey enpu, what about a quick screencast showing how you are doing the "Please rotate your device" in the showcase games, as well as scaling up the canvas to fill up the the browser window after you rotate to the expect orientation?  This might be outside of the scope of the engine, but as a new html5 developer, these things would be key to getting started using the new engine.

 

Thanks in advance!

Brian

Link to comment
Share on other sites

Hi enpu, how about a quick screencast  showing how to use the game.Vector class?  I am specifically looking to use the 'angle', 'distance' and 'length' methods, but I am having trouble even creating a new vector instance.

var vector = new game.Vector(100, 100);

Is giving me:

Uncaught TypeError: undefined is not a function

Thanks!

Link to comment
Share on other sites

Hi,

 

Physics module is not loaded in core, so you need to load it first:

game.module(    'game.main').require(    'engine.core',    'engine.physics').body(function() {

Keep in mind that the physics module is still pretty simple, so if you need more advanced physics in your game, you can use p2.js plugin:

https://github.com/ekelokorpi/panda.js-plugins/tree/master/p2

Link to comment
Share on other sites

So the vector angle method was not working as I was expecting.  I had to change it from:

Math.atan2(vector.y, vector.x) - Math.atan2(this.y, this.x);

to:

Math.atan2(vector.y - this.y, vector.x - this.x); 

This new version is returning the angle in radians.  My math is fairly amateur when it comes to games, so I am not sure if this is a bug or a version on the angle that works with the physics engine or whatever.  Just figured it was worth pointing out.

Link to comment
Share on other sites

I would like to see how could you animate a player from a spritesheet with all the frames in one image liek this one http://i.imgur.com/SIT25vx.png maybe flip the player x on left or right

 

And loading a tileset http://i.imgur.com/ahJidCr.png with a json map http://pastebin.com/pYuC32cn

 

I'm looking at making a platformer, and I'm new to games in general, and i'm looking at an html5 engine, I was looking at using quintus(among others), but I stumbled upon yours, and I like it better... but there isnt a tutorial with commented sections so i can understand it better

 

Is there a like a full platformer, with keyboard support, enemies, coins and all that so i can look at and try and learn?

 

Thanks

Link to comment
Share on other sites

Just stumbled onto pandajs and love what I see already.  Curious if you had thought about posting the screencasts to vimeo as well so they are easier to download?  I ask only because I want to watch the screencasts while I'm commuting (NYC) and I lose streaming capabilities when underground.

 

I've never ripped videos from youtube but after a quick google I see it is possible.  But vimeo offers solutions on the page that make it easier.

 

Thanks Enu your project looks incredible and I can't wait to dig in and help out.

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...