suppression des textures .bmp
This commit is contained in:
		
							parent
							
								
									a8aa8a4ee2
								
							
						
					
					
						commit
						6fc705c2d9
					
				
							
								
								
									
										
											BIN
										
									
								
								res/ball.bmp
								
								
								
								
							
							
						
						
									
										
											BIN
										
									
								
								res/ball.bmp
								
								
								
								
							
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 1.4 KiB | 
							
								
								
									
										
											BIN
										
									
								
								res/block.bmp
								
								
								
								
							
							
						
						
									
										
											BIN
										
									
								
								res/block.bmp
								
								
								
								
							
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 2.1 KiB | 
|  | @ -16,7 +16,7 @@ void Block::draw(sf::RenderWindow& window, ResourceManager& resources) { | ||||||
|     Object::draw(window, resources); |     Object::draw(window, resources); | ||||||
| 
 | 
 | ||||||
|     // utilisation de la texture
 |     // utilisation de la texture
 | ||||||
|     sprite.setTexture(resources.getTexture("block.bmp")); |     sprite.setTexture(resources.getTexture("block.png")); | ||||||
| 
 | 
 | ||||||
|     // coloration du bloc en fonction de sa charge
 |     // coloration du bloc en fonction de sa charge
 | ||||||
|     if (getCharge() > 0) { |     if (getCharge() > 0) { | ||||||
|  |  | ||||||
|  | @ -40,7 +40,7 @@ void Player::draw(sf::RenderWindow& window, ResourceManager& resources) { | ||||||
|     Object::draw(window, resources); |     Object::draw(window, resources); | ||||||
| 
 | 
 | ||||||
|     // utilisation de la texture
 |     // utilisation de la texture
 | ||||||
| 	sprite.setTexture(resources.getTexture("ball.bmp")); | 	sprite.setTexture(resources.getTexture("ball.png")); | ||||||
| 
 | 
 | ||||||
|     // déplacement du sprite à la position de la balle
 |     // déplacement du sprite à la position de la balle
 | ||||||
|     sprite.rotate(getVelocity().x * .1f); |     sprite.rotate(getVelocity().x * .1f); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue