Jump to content


  • Content Count

  • Joined

  • Last visited

About skywalker

  • Rank

Contact Methods

  • Twitter

Recent Profile Visitors

1003 profile views
  1. intel xdk now support cordova CLI you can now use plugins to encrypt your code
  2. Hi i want to share with you a game that i made with phaser couple years ago on codecanyon i want to update it and add new futures so your feedback is welcome Play the game screenshots
  3. thanks guys for feedback i think you are all right it is very hard i thought hardness make the game challenging i would like to say that i fiend feedback from others is the most useful thing in game dev journey , i learn alot from feedback more than tuts , courses thanks again <3 love Phaser
  4. Hi i would like to share with you my last game i made with phaser framework it is cross platform mobile ready game the source code is available on codecanyon codecanyon : https://goo.gl/H2nvea play the game : https://goo.gl/MojVRz video : https://goo.gl/gnl2fq
  5. i made a simple on game controller for a game when test it with coconjs it sometimes freezes and not responding to touch specially on slow devices then it works and so on this.sprite.events.onInputDown.add(function(){ console.log("down") if (GAME.paused == false) { this.sprite.alpha = 1; this.pressed = true; }; }, this); this.sprite.events.onInputUp.add(function(){ if (GAME.paused == false) { this.sprite.alpha = 0.35;
  6. stile black screen it work fine on firfox but not chrome
  7. hello everyone im making a game with phaser and i want to take a screenshot from one scene and draw it to another by using game.canvas.toDataURL(); this is what i have tried so far in the first scene GAME.cc = game.canvas.toDataURL(); second one var img = new Image(); img.onload = function(){ var base = new PIXI.BaseTexture(this), texture = new PIXI.Texture(base); var sp = game.add.sprite(0,0); sp.setTexture(texture); }; img.src = GAME.cc; there is no error in console but the sprite is completely black !! so ... what is the problem . on stackoverflow http://stackoverflow.com/questions/29
  8. im trying to make a circle button with tap event i used hitArea property from sprite class and using pixi Circle class i did that this.sprite = game.add.sprite(50,50,"cursors"); this.sprite.anchor.set(0.5,0.5); this.sprite.hitArea = new PIXI.Circle(50,50,84); this.sprite.inputEnabled = true; this.sprite.events.onInputDown.add(function(){ console.log("clicked"); }); }; it is not working at all so i tried removing this.sprite.anchor.set(0.5,0.5); input is work fine when there is no hit Area so what should i do note : phaser version is 2.2.2
  9. i created 2 sprites and added p2 body for each of them first on is the player it is , second is static and when i checkd for collision for each of them it works but only if the second one is not moving when i move the second sprite around the world for example this.update = function(){ block.body.x = block.body.x -1; }; it is not collide with the other sprite what is the problem :/ !
  10. im a beginner in Phaser.js game development and i want to create static body to group , with p2 physic system i created the group and then started the physic system. var block_group = game.add.group(); var Y = 20; for (var i = 0; i < numberOfBlocks; i++) { block_group.create(400,Y,'block'); Y = Y +15; }; game.physics.startSystem(Phaser.Physics.P2JS); block_group.enableBody = true; block_group.physicsBodyType = Phaser.Physics.P2JS; when i print block_group.body it gives me undefined so i tried using forEachAlive and it stile the same however it works fine for single sprite , but with a group
  11. box2d support it is crazy idea but if there is scene editor for framework will be better
  12. hi i made a game with phaser last version it works fine in web but in mobile devices its become very slow the game is about cars and racing something like that i package it to APK with crosswalk i tried coconjs it is not working only black screen show up and then nothing please help me to solve my problem
  13. i tried all the ways in the topic nothing work correctly
  14. function create(){ game.stage.disableVisibilityChange = true; if (game.device.desktop) { game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; game.scale.maxWidth = 1440; game.scale.maxHeight = 960; game.scale.pageAlignHorizontally = true; game.scale.pageAlignVertically = true; game.scale.setScreenSize(true); var ow = parseInt(this.game.canvas.style.width,10); var oh = parseInt(this.game.canvas.style.height,10); var r = Math.max(window.innerWidth/ow,window.innerHeight/oh); var nw = ow*r; var nh = oh*r; ga
  15. hi im building car game , i want my car move around with no limits look to attached file the code is this.preload = function(){ game.load.image('redCar', 'assets/images/redCar.png'); game.load.image('picture2', 'assets/images/policCar.png'); game.load.image('land','assets/images/scorched_earth.png') }; this.create = function(){ game.world.setBounds(-3000, -3000, 4000, 4000); land = game.add.tileSprite(-3000, -3000, 4000, 4000, 'land'); //land.fixedToCamera = true; redCar = game.add.sprite(300, 500, 'redCar'); game.camera.follow(redCar);
  • Create New...