bullets
This commit is contained in:
		
							parent
							
								
									ccb763b0df
								
							
						
					
					
						commit
						b910476caf
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -22,7 +22,7 @@ class Input { | |||
|             let dx = this.mouseX-this.player.x; | ||||
|             let dy = this.mouseY-this.player.y; | ||||
|             let norm = Math.sqrt(dx*dx+dy*dy); | ||||
|             let b = new Bullet(this.player.x,this.player.x,dx/norm,dy/norm); | ||||
|             let b = new Bullet(this.player.x,this.player.y,dx/norm,dy/norm); | ||||
|             this.bullets.push(b); | ||||
|             this.renderer.addBullet(b); | ||||
|             this.network.newBullet(this.player.x,this.player.y,dx/norm,dy/norm); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue