mirror of
https://github.com/pcvolkmer/winelounge.git
synced 2025-04-19 18:36:50 +00:00
Remove spawning of remote player for now
This commit is contained in:
parent
b59b6d62a7
commit
b9db177399
@ -41,8 +41,6 @@ fn main() {
|
||||
|
||||
let mut world = World::init();
|
||||
|
||||
world.spawn_player("Test".to_string(), 100, 100);
|
||||
|
||||
'running: loop {
|
||||
for event in event_pump.poll_iter() {
|
||||
match event {
|
||||
|
@ -45,10 +45,6 @@ impl World {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn spawn_player(&mut self, player_id: String, x: u32, y: u32) {
|
||||
self.remote_player = Some(Player::spawn(player_id.as_str(), x, y));
|
||||
}
|
||||
|
||||
pub fn get_player(&mut self, _: String) -> &mut Player {
|
||||
&mut self.player
|
||||
}
|
||||
@ -231,11 +227,6 @@ impl World {
|
||||
// Player
|
||||
self.player.render(canvas, texture);
|
||||
|
||||
// Remote/other player
|
||||
if let Some(remote_player) = &self.remote_player {
|
||||
remote_player.render(canvas, texture);
|
||||
}
|
||||
|
||||
// Points
|
||||
let x = font
|
||||
.render(format!("Score: {:#04}", self.player.points).as_str())
|
||||
|
Loading…
x
Reference in New Issue
Block a user