• Content Count

  • Joined

  • Last visited

About rfzahid

  • Rank
  • Birthday May 21

Profile Information

  • Gender
  1. Hey guys I have designed a theme for Brackets code editor You can install it by searching for "Plasma Light Theme" in Brackets extension manager. Love any feedback
  2. Hey its working finally I had some parts of code cluttered so it was difficult to find out the mistake. I formatted the code and found out some lines of code were not at the right place. Thanks for the help
  3. cursor1 = game.input.keyboard.createCursorKeys(); //cursor2 key settings... upButton = game.input.keyboard.addKey(Phaser.Keyboard.W); downButton = game.input.keyboard.addKey(Phaser.Keyboard.S); leftButton = game.input.keyboard.addKey(Phaser.Keyboard.A); rightButton = game.input.keyboard.addKey(Phaser.Keyboard.D); // Player1 controls... if (cursor1.left.isDown) { player1.body.velocity.x = -150; player1.animations.play('left'); } else if (cursor1.right.isDown) { player1.body.velocity.x = 150; player1.animations.play('right'); } else { player1.animations.stop(); player1.frame = 4; } if (cursor1.up.isDown && player1.body.touching.down) { player1.body.velocity.y = -350; } if (!player1.body.touching.down) { if (cursor1.left.isDown) { player1.frame = 3; } else if (cursor1.right.isDown) { player1.frame = 6; } } // Player2 controls... if (leftButton.isDown) { player2.body.velocity.x = -150; player2.animations.play('left'); } else if (rightButton.isDown) { player2.body.velocity.x = 150; player2.animations.play('right'); } else { player2.animations.stop(); player2.frame = 4; } if (upButton.isDown && player2.body.touching.down) { player2.body.velocity.y = -350; } if (!player2.body.touching.down) { if (leftButton.isDown) { player2.frame = 3; } else if (rightButton.isDown) { player2.frame = 6; } }
  4. As i said super mario type of arcade game With little different features which I am thinking of implementing.... If you have time, you can go through some parts of source code and give your insights whether till now I have done ok or not
  5. Yes you can create pull request Btw I haven't added functionalities to my game yet. More of a placeholder type allowing the game to boot with menu system and then the actual game. Lots of UI needs to be added as well.
  6. Hello hpohl Quake is my favourite fps game. I am currently learning phaser.js and guess what I am thinking of making such type of fps games using phaser.js library(little ambitious i know). Can you share your source code on github if you are ok with it?
  7. Hello guys I have started learning Phaser.js javascript library and need help/contributions to my game that I have started to make few days back. A sort of Super Mario type of game. I am struggling to design such games alone so I need help from you guys. What I want from you guys is... 1) Suggestions on what type of assets I should use in different phases of the game. 2) Generate your code to extend the functionalities of the game. 3) Also ideas on how to improve performance issues as my game is lagging quite a bit. In short I want a group of programmers working as team on this project. Of course if you have time, then contribute, otherwise its also ok You can view my project on github here.... https://github.com/rfzahid/BattleArena
  8. Hello guys, I am a newbie and still learning Phaser.js framework and want to clarify a doubt. I am trying to make a game where two players can play together from the same keyboard to fight it out. One from WASD keys and another from default arrow keys. I have created two players and binded them to their respective keys, but I am not able to control players from their respective keys How can I achieve such?