From d849cddc3e063fab6c3140a29e734dd067aad46b Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Wed, 8 Mar 2023 11:34:53 -0500 Subject: [PATCH] [+] Draw demo chat bubble --- tngame-rs/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tngame-rs/src/main.rs b/tngame-rs/src/main.rs index 16e6850..0e3f151 100644 --- a/tngame-rs/src/main.rs +++ b/tngame-rs/src/main.rs @@ -302,6 +302,10 @@ fn draw_ascii_frame(mt: &mut Mutes, cn: &Consts) { // Draw the house mt.print_ascii(&cn.asc_house, (mt.w + cn.asc_house.w) / 2, mt.h - cn.asc_house.h, "\x1b[38;2;251;194;110m"); + + // 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"); } fn start_loop(mt: &mut Mutes, cn: &Consts) {