From fac573837fdc5751bf044aeab9e55bc9103e0906 Mon Sep 17 00:00:00 2001 From: Able Date: Wed, 16 Oct 2024 07:34:19 -0500 Subject: [PATCH] Work --- sysdata/programs/horizon/src/main.hb | 5 +++-- .../programs/render_example/src/examples/tactical_screen.hb | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sysdata/programs/horizon/src/main.hb b/sysdata/programs/horizon/src/main.hb index 171606b8..7722ef4e 100644 --- a/sysdata/programs/horizon/src/main.hb +++ b/sysdata/programs/horizon/src/main.hb @@ -50,7 +50,7 @@ main := fn(): int { vel_inner.x = -vel_inner.x color = random.range(render.Color, render.black, render.white) } - if pos_inner.y == 0 | pos_inner.y == window.height - side { + if pos_inner.y == 20 | pos_inner.y == window.height - side { vel_inner.y = -vel_inner.y color = random.range(render.Color, render.black, render.white) } @@ -59,11 +59,12 @@ main := fn(): int { window_count := 0 loop { render.clear(window, render.black) + render.put_rect(screen, .(0, 0), .(screen.width - 1, screen.height - 1), render.white) // Draw the decorators { render.put_rect(window, .(0, 0), .(window.width - 1, window.height - 1), render.white) - // render.put_rect(window, .(0, 0), .(window.width - 1, 20), render.white) + render.put_rect(window, .(0, 0), .(window.width - 1, 20), render.white) } render.put_filled_rect(window, pos_inner, .(side, side), color) diff --git a/sysdata/programs/render_example/src/examples/tactical_screen.hb b/sysdata/programs/render_example/src/examples/tactical_screen.hb index bbbaed2b..3fc1f164 100644 --- a/sysdata/programs/render_example/src/examples/tactical_screen.hb +++ b/sysdata/programs/render_example/src/examples/tactical_screen.hb @@ -55,8 +55,8 @@ example := fn(): void { y += cell_size } - render.put_hline(screen, seeker.y * cell_size + halfcell + scroll, 0, width, render.light_green) - render.put_vline(screen, seeker.x * cell_size + halfcell + scroll, 0, height, render.light_green) + render.put_hline(screen, seeker.y * cell_size + halfcell + scroll, 0, width, render.blue) + render.put_vline(screen, seeker.x * cell_size + halfcell + scroll, 0, height, render.blue) render.sync(screen)