Skip to content

Commit

Permalink
switch level positions and fix physics of level 7
Browse files Browse the repository at this point in the history
  • Loading branch information
dkter committed Jan 28, 2024
1 parent 8e8b3c1 commit 5fbe2bc
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,50 +247,50 @@ I can't afford to change my shape. I won't be able to fit into my caves anymore.
blocks: vec![
// frame
Block { x: -600.0, y: 400.0, w: 50.0, h: 800.0 },
Block { x: -600.0, y: -250.0, w: 1200.0, h: 150.0 },
Block { x: -600.0, y: -350.0, w: 1200.0, h: 50.0 },
Block { x: -600.0, y: 400.0, w: 1200.0, h: 50.0 },
Block { x: 550.0, y: 400.0, w: 50.0, h: 800.0 },
// wall
Block { x: 250.0, y: -100.0, w: 50.0, h: 200.0 },
// small blocks
Block { x: -400.0, y: -150.0, w: 50.0, h: 50.0 },
Block { x: -250.0, y: -150.0, w: 50.0, h: 50.0 },
Block { x: -50.0, y: -50.0, w: 100.0, h: 50.0 },
// big blocks
Block { x: -600.0, y: 150.0, w: 475.0, h: 300.0 },
Block { x: -50.0, y: 150.0, w: 600.0, h: 300.0 },
],
transformers: vec![
(-225.0, -125.0, Transformation::AddRight, Vec2::new(100.0, 400.0)),
(25.0, -25.0, Transformation::RotateCw, Vec2::new(-300.0, 300.0)),
(200.0, 175.0, Transformation::AddRight, Vec2::new(100.0, 200.0)),
(500.0, 175.0, Transformation::RotateCw, Vec2::new(-100.0, 200.0)),
],
cave: Cave {
position: Vec2::new(475.0, -125.0),
squares: vec![SquarePos(0, 0), SquarePos(0, 1), SquarePos(1, 1)],
position: Vec2::new(500.0, -225.0),
squares: vec![SquarePos(0, 0), SquarePos(0, 1)],
},
background: Some(String::from("backgrounds/level5.png")),
spawn_point: (-550.0, -100.0),
background: Some(String::from("backgrounds/level6.png")),
spawn_point: (-550.0, 300.0),
button_pos: None,
text_blocks: vec![],
},
LevelData {
blocks: vec![
// frame
Block { x: -600.0, y: 400.0, w: 50.0, h: 800.0 },
Block { x: -600.0, y: -350.0, w: 1200.0, h: 50.0 },
Block { x: -600.0, y: -250.0, w: 1200.0, h: 150.0 },
Block { x: -600.0, y: 400.0, w: 1200.0, h: 50.0 },
Block { x: 550.0, y: 400.0, w: 50.0, h: 800.0 },
// big blocks
Block { x: -600.0, y: 150.0, w: 475.0, h: 300.0 },
Block { x: -50.0, y: 150.0, w: 600.0, h: 300.0 },
// wall
Block { x: 250.0, y: -100.0, w: 50.0, h: 200.0 },
// small blocks
Block { x: -400.0, y: -150.0, w: 50.0, h: 50.0 },
Block { x: -250.0, y: -150.0, w: 50.0, h: 50.0 },
Block { x: -50.0, y: -50.0, w: 100.0, h: 50.0 },
],
transformers: vec![
(200.0, 175.0, Transformation::AddRight, Vec2::new(100.0, 200.0)),
(500.0, 175.0, Transformation::RotateCw, Vec2::new(-100.0, 200.0)),
(-225.0, -125.0, Transformation::AddRight, Vec2::new(100.0, 400.0)),
(25.0, -25.0, Transformation::RotateCw, Vec2::new(-300.0, 300.0)),
],
cave: Cave {
position: Vec2::new(500.0, -225.0),
squares: vec![SquarePos(0, 0), SquarePos(0, 1)],
position: Vec2::new(475.0, -125.0),
squares: vec![SquarePos(0, 0), SquarePos(0, 1), SquarePos(1, 1)],
},
background: Some(String::from("backgrounds/level6.png")),
spawn_point: (-550.0, 300.0),
background: Some(String::from("backgrounds/level5.png")),
spawn_point: (-550.0, -100.0),
button_pos: None,
text_blocks: vec![],
},
Expand Down Expand Up @@ -328,8 +328,8 @@ I can't afford to change my shape. I won't be able to fit into my caves anymore.
(-425.0, -75.0, Transformation::RotateCw, Vec2::new(200.0, 200.0)),
(-25.0, 25.0, Transformation::RotateCw, Vec2::new(-100.0, -100.0)),
(300.0, -75.0, Transformation::RotateCw, Vec2::new(-100.0, 200.0)),
(300.0, -175.0, Transformation::RotateCw, Vec2::new(0.0, -100.0)),
(50.0, -175.0, Transformation::RotateCw, Vec2::new(0.0, -100.0)),
(300.0, -175.0, Transformation::RotateCw, Vec2::new(0.0, -200.0)),
(50.0, -175.0, Transformation::RotateCw, Vec2::new(0.0, -200.0)),
],
cave: Cave {
position: Vec2::new(500.0, -225.0),
Expand Down

0 comments on commit 5fbe2bc

Please sign in to comment.