add borders around panels
This commit is contained in:
parent
74d146242b
commit
12f48497ae
6 changed files with 368 additions and 197 deletions
|
|
@ -6,7 +6,9 @@ use servicepoint::{
|
|||
use std::{net::UdpSocket, thread::sleep, time::Instant};
|
||||
|
||||
mod bar;
|
||||
mod border_panel;
|
||||
mod game;
|
||||
mod row;
|
||||
mod unlocks;
|
||||
|
||||
type Currency = f64;
|
||||
|
|
@ -35,13 +37,13 @@ fn main() {
|
|||
chars.fill(' ');
|
||||
pixels.fill(false);
|
||||
|
||||
let mut chars_view = chars
|
||||
let chars_view = chars
|
||||
.window_mut(0, 0, chars.width(), chars.height())
|
||||
.unwrap();
|
||||
let mut pixels_view = pixels
|
||||
let pixels_view = pixels
|
||||
.window_mut(0, 0, pixels.width(), pixels.height())
|
||||
.unwrap();
|
||||
state.draw(&mut chars_view, &mut pixels_view);
|
||||
state.draw(chars_view, pixels_view);
|
||||
|
||||
connection
|
||||
.send_command(CharGridCommand::from(chars.clone()))
|
||||
|
|
|
|||
Loading…
Reference in a new issue