changed sprites and added instructions in ReadMe

This commit is contained in:
2022-05-09 14:06:44 +02:00
parent 6b82cb8e92
commit fe52b3dfc6
5 changed files with 9 additions and 1 deletions
+2 -1
View File
@@ -9,7 +9,7 @@ use tetra::{Context, ContextBuilder, State};
const WINDOW_WIDTH:f32 = 640.0;
const WINDOW_HEIGHT:f32 = 480.0;
const PADDLE_SPEED:f32 = 8.0;
const BALL_SPEED:f32 = 5.0;
const BALL_SPEED:f32 = 5.0;
const PADDLE_SPIN: f32 = 4.0;
const BALL_ACC:f32 = 0.05;
@@ -61,6 +61,7 @@ struct GameState {
impl GameState{
fn new(ctx: &mut Context) -> tetra::Result<GameState>{
let player1_texture:Texture = Texture::new(ctx,"./resources/player1.png")?;
//player1_texture
let player2_texture:Texture = Texture::new(ctx,"./resources/player2.png")?;
let ball_texture:Texture = Texture::new(ctx,"./resources/ball.png")?;