Generalize tiles per chunk row

This commit is contained in:
2022-10-23 03:40:14 +02:00
parent 0694b1ef92
commit 9f64ebc0f9
2 changed files with 14 additions and 12 deletions
+2 -2
View File
@@ -13,6 +13,8 @@ pub struct CameraState {
rotate_right: bool,
}
const SPEED: f32 = 1.0; //1.0;
impl CameraState {
pub fn new() -> CameraState {
CameraState {
@@ -118,8 +120,6 @@ impl CameraState {
s.0 * f.1 - s.1 * f.0,
);
const SPEED: f32 = 100.0; //1.0;
if self.moving_up {
self.position.0 += u.0 * SPEED;
self.position.1 += u.1 * SPEED;