changed sprites and added instructions in ReadMe
This commit is contained in:
+2
-1
@@ -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")?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user