particles, and centred camera

This commit is contained in:
Llywelwyn 2023-07-24 23:01:34 +01:00
parent e9cace85c6
commit cdf16aca9d
5 changed files with 50 additions and 15 deletions

View file

@ -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;