particles, and centred camera
This commit is contained in:
parent
e9cace85c6
commit
cdf16aca9d
5 changed files with 50 additions and 15 deletions
|
|
@ -7,7 +7,8 @@ const SHOW_BOUNDARIES: bool = false;
|
|||
|
||||
pub fn get_screen_bounds(ecs: &World, ctx: &mut Rltk) -> (i32, i32, i32, i32) {
|
||||
let player_pos = ecs.fetch::<Point>();
|
||||
let (x_chars, y_chars) = ctx.get_char_size();
|
||||
//let (x_chars, y_chars) = ctx.get_char_size();
|
||||
let (x_chars, y_chars) = (80, 43);
|
||||
|
||||
let centre_x = (x_chars / 2) as i32;
|
||||
let centre_y = (y_chars / 2) as i32;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue