Eizch

Members
  • Content Count

    5
  • Joined

  • Last visited

About Eizch

  • Rank
    Newbie

Contact Methods

  • Twitter
    Eizch
  1. I had no intentions in trying Babylon.js in the near future, but since your tutorial is so nice I can't not try it. Thanks!
  2. Not directly that I know of. Using bootstrap's media queries you coul use something like (in .less) @media (max-width: @screen-xs-max) and (orientation:landscape) { // Put your conditional css here}And then if you need to do things with javascript maybe you could try this "hack" https://www.fourfront.us/blog/jquery-window-width-and-media-queries This should work on a page web, but I have no idea how to deploy an app yet, so I don't know if it can work in the final product.
  3. I don't know with panda.js, but I would try using something like boostrap's conditional styling to show a div over the game when the screen is not in the side you want it.
  4. Probably changed I guess, look at the doc. http://ekelokorpi.github.io/panda.js-site/engine/docs/classes/Scene.html#method_mousedown So now it will look like game.createScene('Main', { mousedown: function(x, y) { console.log(x, y); }, mousemove: function(x, y) { console.log(x, y); }});
  5. Hello First of, I simply love the design and the logo (a panda, who doesn't love pandas ?) of the engine, good work ! But, (as a new PandaJS developer anyway) there is something that bothers me. How are "modules" intended to be used ? In the examples there are 2 custom modules - objects and assets. But since I would prefer having 1 class per file, should I make 1 module per class ? Like having a "game.objects" whos only job is to extend something like "game.objects.character", "game.objects.projectile", and so on. Or should I just stick to only one module (ex. "game.objects") and use something like RequireJS to import my classes inside this specific module ? In fact, I'm just not really sure what modules really do and I'm afraid it's something I won't learn while programming if I don't ask. A short explanation or a link to one would be nice. Thanks in advance and sorry for my english !