new bullets more visible in other maps
This commit is contained in:
		
							parent
							
								
									da84ad04fe
								
							
						
					
					
						commit
						45df158980
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		
							
								
								
									
										
											BIN
										
									
								
								public_html/assets/bullet2.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								public_html/assets/bullet2.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 1.6 KiB | 
|  | @ -14,7 +14,7 @@ const map3 = new Image(); | ||||||
| const orange_portal = new Image(); | const orange_portal = new Image(); | ||||||
| const blue_portal = new Image(); | const blue_portal = new Image(); | ||||||
| imgPlayer.src = "./assets/body.png"; | imgPlayer.src = "./assets/body.png"; | ||||||
| imgBullet.src = "./assets/bullet.png"; | imgBullet.src = "./assets/bullet2.png"; | ||||||
| imgCar.src = "./assets/car.png"; | imgCar.src = "./assets/car.png"; | ||||||
| imgPnj.src = "./assets/pnj.png"; | imgPnj.src = "./assets/pnj.png"; | ||||||
| imgPnj2.src = "./assets/pnj1.png"; | imgPnj2.src = "./assets/pnj1.png"; | ||||||
|  | @ -75,7 +75,7 @@ class Render { | ||||||
| 	    { | 	    { | ||||||
| 			this.ctx.save(); | 			this.ctx.save(); | ||||||
| 	    	this.ctx.translate(x, y); | 	    	this.ctx.translate(x, y); | ||||||
| 	    	this.ctx.drawImage(imgBullet, -20 / 2, -20 / 2, 20, 20); | 	    	this.ctx.drawImage(imgBullet, -10 / 2, -10 / 2, 10, 10); | ||||||
| 	    	this.ctx.restore(); | 	    	this.ctx.restore(); | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  | @ -138,7 +138,7 @@ class Render { | ||||||
|                 this.ctx.fillRect(s.x,s.y,s.w,s.h); |                 this.ctx.fillRect(s.x,s.y,s.w,s.h); | ||||||
|             }); |             }); | ||||||
|         } |         } | ||||||
|          | 
 | ||||||
|         cars.forEach((car) => { |         cars.forEach((car) => { | ||||||
|             this.RenderCar(car.x,car.y,0,car.angle+(car.drift>0?car.drift/150:0)); // lerp(f(t))
 |             this.RenderCar(car.x,car.y,0,car.angle+(car.drift>0?car.drift/150:0)); // lerp(f(t))
 | ||||||
|         }); |         }); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue