Skip to content

Commit

Permalink
Release v1.0.0 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
benny-n committed Apr 10, 2023
1 parent 3a9a1ce commit 346cbde
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "side-swap"
version = "0.1.0"
version = "1.0.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -13,5 +13,9 @@ opt-level = 1

[dependencies]
bevy = {version = "0.10.1", features = ["wav"]}
bevy_rapier2d = { version = "0.21.0", features = ["debug-render-2d"] }
bevy_rapier2d = "0.21.0"
rand = "0.8.5"

[dev-dependencies.bevy_rapier2d]
version = "0.21.0"
features = ["debug-render-2d"]
4 changes: 2 additions & 2 deletions src/tiles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn spawn_obstacles(

// Walls
[0., wall_height].into_iter().for_each(|y| {
[(0., Wall::Left), (window.width(), Wall::Right)]
[(-5., Wall::Left), (5. + window.width(), Wall::Right)]
.into_iter()
.for_each(|(x, wall)| {
commands
Expand All @@ -91,7 +91,7 @@ fn spawn_obstacles(
transform: Transform::from_xyz(x, y + wall_height / 2., 500.),
..default()
})
.insert(Collider::cuboid(15., wall_height / 2.))
.insert(Collider::cuboid(10., wall_height / 2.))
.insert(ColliderMassProperties::Density(f32::INFINITY))
.insert(wall)
.insert(AnimationTimer(Timer::from_seconds(
Expand Down

0 comments on commit 346cbde

Please sign in to comment.