let rocket fly
This commit is contained in:
		
							parent
							
								
									3ae1491083
								
							
						
					
					
						commit
						fef37df811
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -51,6 +51,11 @@ Q.Sprite.extend("Player",{ | |||
| 
 | ||||
|       // Check the collision, if it's the rocket, you win!
 | ||||
|       if(collision.obj.isA("Rocket")) { | ||||
|         var rocket = collision.obj; | ||||
| 
 | ||||
|         rocket.add("tween"); | ||||
|         rocket.animate({ x: 100, y: -500, angle: 360 }); | ||||
| 
 | ||||
|         this.destroy(); | ||||
|          $("#einladung").center(); | ||||
|          $("#einladung").show("slow"); | ||||
|  |  | |||
		Reference in a new issue