From 2d641c89a3b45941eca5ec1eac9be282c0f028ac Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Wed, 8 Mar 2023 19:55:07 -0500 Subject: [PATCH] [F] Fix layer order --- tngame-rs/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tngame-rs/src/main.rs b/tngame-rs/src/main.rs index b771217..ecf14e3 100644 --- a/tngame-rs/src/main.rs +++ b/tngame-rs/src/main.rs @@ -312,9 +312,6 @@ impl Mutes { } fn draw_ascii_frame(mt: &mut Mutes, cn: &Consts) { - // Draw the cat - mt.print_ascii(&cn.asc_cat, mt.x, mt.h - cn.asc_cat.h, "\x1b[38;2;255;231;151m"); - // Draw the tree mt.print_ascii(&cn.asc_tree, (mt.w - 2 * cn.asc_tree.w) / 4, mt.h - cn.asc_tree.h, "\x1b[38;2;204;255;88m"); @@ -329,6 +326,9 @@ fn draw_ascii_frame(mt: &mut Mutes, cn: &Consts) { mt.print_ascii(&cn.asc_title, (mt.w - cn.asc_title.w) / 2, (mt.h - cn.asc_title.h) / 2, "\x1b[38;2;255;231;151m"); + // Draw the cat + mt.print_ascii(&cn.asc_cat, mt.x, mt.h - cn.asc_cat.h, "\x1b[38;2;255;231;151m"); + // Draw chat bubble let bubble = gen_bubble_ascii("I wish I could\nlive on that tree."); mt.print_ascii(&bubble, mt.x + 5, mt.h - cn.asc_cat.h - bubble.h, "\x1b[38;2;255;231;151m");