pixelfont

This commit is contained in:
Llywelwyn 2023-09-25 00:05:26 +01:00
parent 7f9ba34afa
commit 627d33b2d9
4 changed files with 7 additions and 6 deletions

View file

@ -3,7 +3,7 @@ use bracket_lib::prelude::*;
use notan::prelude::*;
use notan::draw::DrawTextSection;
use std::collections::HashMap;
use crate::consts::TILESIZE;
use crate::consts::{ TILESIZE, FONTSIZE };
#[derive(PartialEq, Copy, Clone)]
pub enum CheatMenuResult {
@ -59,7 +59,7 @@ pub fn draw_cheat_menu(
m - MAGIC MAP REVEAL
g - GOD MODE"#;
draw.text(&font, DEBUG_MENU)
.position(3.0 + (offsets.x as f32) * TILESIZE, 3.0 + (offsets.y as f32) * TILESIZE)
.position((1.0 + (offsets.x as f32)) * TILESIZE, (1.0 + (offsets.y as f32)) * TILESIZE)
.color(Color::RED)
.size(TILESIZE);
.size(FONTSIZE);
}