use sdl2::rect::{Point, Rect}; | use sdl2::rect::{Point, Rect}; | ||||
use std::time::Duration; | use std::time::Duration; | ||||
const PLAYER_MOVEMENT_SPEED: i32 = 10; | |||||
const PLAYER_MOVEMENT_SPEED: i32 = 5; | |||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)] | #[derive(Debug, Clone, Copy, PartialEq, Eq)] | ||||
enum Direction { | enum Direction { |