Skip to content

Commit

Permalink
Added second player
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus-Mussmaecher committed Apr 11, 2024
1 parent 4335c5b commit 8e4de80
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,25 @@ impl Game for OrbitsInstance {
],
}),
},
// Ship
SpaceObject {
position: Point::from([-256.0, 0.0]),
velocity: Vector::from([0.0, -0.6]),
angle: 0.0,
mass: 1.0,
sprite: ship.clone(),
size: 16.0,
ship: Some(ShipInfo {
shot_cd: 0.0,
fuel: 1.0,
keymap: [
keyboard::KeyCode::I,
keyboard::KeyCode::J,
keyboard::KeyCode::L,
keyboard::KeyCode::K,
],
}),
},
// Sun
SpaceObject {
position: Point::from([0.0, 0.0]),
Expand Down

0 comments on commit 8e4de80

Please sign in to comment.