crazyDev

Members
  • Content count

    13
  • Joined

  • Last visited

About crazyDev

  • Rank
    Member

Recent Profile Visitors

562 profile views
  1. The Best Phaser Template

    I haven't used grunt before. Can you please elaborate on how to use this template? The instructions on github page are too short. How can use it with XDK as I want to package the result with crosswalk.
  2. Nice game. What did you use to make it? Now if you were to make it fully 3D it would be even better.
  3. Need feedback on my first proper game

    Thanks for your feedback @bruno_ and @TheHappyRock. I fixed the Firefox issue by changing the JSON files' encoding to ANSI. I also removed the ship's disappearance and movement. Now that only happens if you're killed. Also put a health bar with changing colors. Making the game easier(in the beginning) as well. For monetization I just want to put some ad in the menu or between some levels at most, nothing special. As this is only my first proper game I want to make at least 2 more full blown games, a platformer and a tile based one, before I decide to expand them, so that I have some knowledge to do that. I don't know how to make the menu navigate by keyboard, so will have check that out. Any more ideas on how to make the game more engaging are welcome.
  4. Hey everyone. I somehow managed to finish a somewhat proper game "Shoot the bastards!", thanks to this community's help. Edit: Now playable on firefox as well. Here's how it looks on mobile: Here's the link to play it: http://raiprographics.com/crazydev/shootEm/ Mild NSFW warning. Controls: Directional keys to move and space to shoot, and onscreen controls on mobile. So these are my queries: The performance on mobile still isn't satisfactory. How to improve performance? I will provide you with link to the main game state file if you need that to answer it. Can this game make any money? If so, how? How to properly package it for distribution? I know I need to minify and obfuscate the code but don't know how. Is the package created by Intel XDK fine or should I manually install SDKs and package it using them? Can I use the name "Shoot the bastards!" on play store, or do I need a more family friendly one? Should I also remove profanity from the game (the aliens call you a pu$$y once in a while)? Any feedback is appreciated, and thanks again for helping me make this far.
  5. Need help setting up tweens

    I have been trying to set up a chain of tweens for hours, without results. This is what I want to accomplish: Target is a group, located above the world Tween 1 Arrive: group comes down into x:48, y:96, then Tween 2 Swing: group starts moving back and forth (yoyo) between initial x value and given x value. Tween 3 Creep: In Tween2's onLoop.add a tween is called to move the group in y axis When stage ends, the group must go back its initial position, and its children sprites recreated, so in a restart function I stop Swing tween and to its onComplete add: Tween 4 Go back: group goes back to y, a large negative number which hides it again, on its onComplete I add a call to the function which will create Arrive, Swing and Creep tweens. The problem I'm facing is that in restart, the Swing tween doesn't seem to be stopping even though I call .stop() upon it and everything seems to be executing out of order. Here's the code: Tweens for aliens arriving, swinging and inching downward: //Aliens arrive! this.aliens.x = 96; this.movDat.ay = -(this.world.height/2); this.aliens.y = this.movDat.ay; this.movDat.aliensSwing = new Phaser.Tween(this.aliens,this,this.tweens); this.movDat.aliensSwing.to({x:256},2000,Phaser.Easing.Linear.None,false,0,-1,true); this.movDat.aliensSwing.onLoop.add(function(){ this.movDat.ay+=10; this.add.tween(this.aliens).to({y:this.movDat.ay},2000,Phaser.Easing.Linear.None,true,0); console.log('swung!! moving to y:'+this.movDat.ay); }, this); this.movDat.aliensArrive = new Phaser.Tween(this.aliens,this,this.tweens); this.movDat.aliensArrive.to({x:96, y:48},1000,Phaser.Easing.Cubic.Out,false); this.movDat.aliensArrive.onComplete.addOnce(function(){ console.log('arrived!! swinging from x:'+this.aliens.x+' y:'+this.aliens.y); this.movDat.ay=48; this.movDat.aliensSwing.start(); },this); this.movDat.aliensArrive.start(); Code in level restart function to tween aliens offscreen, and call the fn with code above: console.log('aliens going back...'); this.movDat.aliensSwing.stop(true); this.movDat.aliensSwing.onComplete.addOnce(function(){ this.movDat.aliensGoBack = new Phaser.Tween(this.aliens,this,this.tweens); this.movDat.aliensGoBack.to({y:-400},1000,Phaser.Easing.Linear.None,false);console.log('no more swinging...'+this.movDat.aliensSwing.isRunning); this.movDat.aliensGoBack.onComplete.addOnce(function(){console.log('aliens gone back'); this.aliens.removeAll(); this.createAliens();},this); this.movDat.aliensGoBack.start(); },this); I've had to already shelve another game because I haven't been able to understand the tween system. Any help is appreciated.
  6. In the invaders game example, when an invader is killed, an explosion sprite takes its place. There are 30 invaders and 30 explosions in 2 groups. Is this the optimal way to do explosions, or will something like .setTexture() (haven't used it yet) do a better job? alien.kill(); var explosion = explosions.getFirstExists(false); explosion.reset(alien.body.x, alien.body.y); explosion.play('kaboom', 30, false, true); The alien sprite is killed and an explosion one replaces it, until the animation plays. Is this the best way to handle explosions for resource limited devices?
  7. Is it possible to do free form image cropping in Phaser?

    My goal is to take an image and make a cartoon out of it like Saddam Hussein's character in the South Park movie. So the goal is to have the user select a person's face out of the image and then divide it into the lower jaw and rest of the face, and have them saved for use as resources. Here you can see what I'm trying to achieve: https://www.youtube.com/watch?v=yADrtfAmLTo
  8. I want to load an image, have the user crop a part of it as polygon or free form, and then have it saved for later use as a resource. Is it possible with Phaser or do I need something else to achieve that?
  9. I'm making a game where a function creates a group of "fish" with tweening, and the tween calls another function on completion to create a new tween with new parameters, and so on. When the player's character collides with the fish, I want them to reset, and swim using a new tween. All the code works except that the tween that was in action prior to collision isn't destroyed by .reset function, and most likely is the reason why the fish are jumping around the screen. Here it is: http://chetansharma.info/work/thefishking/v02/ How do I address or stop a tween when I can reference the object it was applied to? I tried creating a tween manager and added all tweens to it (inside a state's declaration) but keep getting errors (in game.js state file) An example on how to solve this would be nice.
  10. I'm making a game where a function creates a group of "fish" with tweening, and the tween calls another function on completion to create a new tween with new parameters. When the player's character collides with the fish, I want them to reset, and swim using a new tween. All the code works except that the tween that was in action prior to collision isn't destroyed by reset function, and makes the fish jump around the screen. How do I address or stop a tween when I can reference the object it was applied to? I tried creating a tween manager and added all tweens to it (inside a state's declaration) but keep getting errors.
  11. I'm trying to create a simple game involving a fish following the pointer by replicating and modifying this code: http://gamemechanicexplorer.com/#homingmissiles-1 (BTW great site for noobs.), but the entire missile/fish rotates towards the pointer in this example, while I don't want the sprite to rotate. How can I achieve this? Also how can I add animation to the missile while it is chasing and while it is turning by 180 degrees? Any help is appreciated.
  12. How can a noob become Phaser expert

    Thank you for such a comprehensive answer @Ninjadoodle
  13. How can a noob become Phaser expert

    Hello everyone. I have just completed Phaser's official "build your first game" tutorial, and also finished Lynda.com's tutorial on creating a Phaser game. I wish to become a Phaser expert and make games for a living with it. How should I go about learning the framework to become really good at it, to the point I can monetize my skills within 6 months? Additional Questions: Is it possible to make games for a living knowing just HTML, CSS, JS and Phaser? Is it possible to generate an income of $2000 p.m. or higher within 6 months of learning Phaser?