• Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Phempt

  1. Phempt

    Panda.js demos

    Enpu did a great job with panda!
  2. Oh my god, I really hate android, this code will works: HEAD: var ua = navigator.userAgent.toLowerCase(); isAndroid = ua.indexOf("android") > -1; $(document).ready(function(){ //alert(window.orientation); if(window.orientation == -90){ orientationValue = 1; }else if(window.orientation == 90){ orientationValue = 0; } $(window).on("orientationchange",function(){ if(window.orientation == -90){ orientationValue = 1; }else if(window.orientation == 90){ orientationValue = 0; } });});player.js: if (game.accelerometer) { if (game.accelerometer.y < -0.2 || game.accelerometer.y > 0.2){ if(orientationValue === 1){ if(isAndroid) { player.velocity.x -= game.accelerometer.y * * 100; }else{ player.velocity.x += game.accelerometer.y * * 100; } }else if(orientationValue === 0){ if(isAndroid) { player.velocity.x += game.accelerometer.y * * 100; }else{ player.velocity.x -= game.accelerometer.y * * 100; } } }else { player.velocity.x = 0; } }
  3. damn that code slowdown performance on Android (works perfectly on iOS)
  4. at the moment I used jQuery: $(document).ready(function(){ $(window).on("orientationchange",function(){ if(window.orientation == -90){ orientationValue = 1; }else if(window.orientation == 90){ orientationValue = 0; } });});but if there's a pandaJS function I'll change my code.
  5. is there a way to detect if landscape mode is with home button to the right or left? Because the accelerometer effect on sprite, it change based on this difference.
  6. probably it depends on PandaJS version. have a great day
  7. Hello mirage29, first of all: Welcome in order to debug your game add ?debugdraw to the end of the url. Example: Than, is it possible to see the source? Can you upload it somewhere?
  8. Phempt


    I used this: floorSprite = new game.Sprite('env/black.png'); floorSprite.width = floorShape.width; floorSprite.height = floorShape.height; floorSprite.position.x = floorBody.position.x; floorSprite.position.y = floorBody.position.y; floorSprite.anchor.set(0.5,0.5); floorSprite.addTo(game.scene.bgContainer); game.scene.addObject(floorSprite);is there a better way? because this method stretch a sprite to fill a shape, but it's not a repeatable texture.
  9. Phempt


    Hello guys, is it possible to color a body shape with a repeatable texture? Something like: var floorBody = new game.Body({ position: { x: game.system.width / 2, y: game.system.height - 35 }, collisionGroup: 1 }); /* GAME STANDARD SHAPES & BODIES */ var floorShape = new game.Rectangle(game.system.width, 70); floorShape.TEXTURE = new game.sprite('env/black.jpg'); //something like this floorBody.addShape(floorShape);;
  10. Can I offer you a beer? Do you have a paypal account?!
  11. Hello guys, I want to move my sprite to left/right using the gyroscope/accelerometer. Is there something on panda to do this? Edit: Unfortunately the link here: is offline.
  12. Good luck with your game
  13. Can I suggest to try a couple of framework than take a decision? I tried 2-3 framework, than I choose Panda.js.
  14. it seems smooth, I created a games for iOS that is really smooth, than I tried to package it for android and half of the tested devices encountered a strange latency problem on touchstart event.
  15. When I saw the arts, I said "mmm I don't like this game", but than I tried and, it's really nice (sometimes too difficult). I really like it, maybe improve the graphic because also the initial feeling is important. What framework did you use? regards
  16. Nice Good job What framework did you use?
  17. I'm searching some track for my next games can you suggest me something about cartoons/demons?
  18. Hello Ham, I tried the game, and: - The bunny can hit also behind him. But at the moment there's not an animation that make sense. You can disallow the touch behind the bunny or add an animation for this. - Is it possible to add some simple physics to the game? If you click on every bird, you'll kill all of them. If you add some physics to the bullet, you can improve the trajectory calculation. - add more enemies and reduce the wave. I played from lvl 1 to 10 and only at 9 I found a new enemy. have a great day
  19. Nice website, and nice documentation/examples. It's also a really good idea create a market place for plugins/effects.
  20. yes, touchstart. Tomorrow I'll be back at home, I'll send you the small example used.
  21. Tried, there is the latency, about ~300ms.