New program that will be similar to rouge.

This commit is contained in:
Able 2025-02-28 12:23:56 -06:00
parent 601d4aaf8b
commit 9d382a3608
4 changed files with 35 additions and 2 deletions
sysdata

View file

@ -0,0 +1 @@
# ascii_game

View file

@ -0,0 +1,11 @@
[package]
name = "ascii_game"
authors = [""]
[dependants.libraries]
[dependants.binaries]
hblang.version = "1.0.0"
[build]
command = "hblang src/main.hb"

View file

@ -0,0 +1,21 @@
.{log} := @use("stn")
sunset := @use("lib:sunset_proto")
render := @use("lib:render")
main := fn(): int {
sunset.client.find_server()
window := sunset.client.new(.(.(400, 400), .(200, 200), "Ascii Game"))
if window == null {
log.error("got no window")
return 0
}
loop {
window.surface.clear(render.BLACK)
_ = sunset.client.send_frame(window)
}
return 0
}

View file

@ -41,8 +41,8 @@ path = "boot:///ps2_mouse_driver.hbf"
# [boot.limine.ableos.modules.sunset_client]
# path = "boot:///sunset_client.hbf"
[boot.limine.ableos.modules.adit]
path = "boot:///adit.hbf"
[boot.limine.ableos.modules.ablefetch]
path = "boot:///ablefetch.hbf"
# [boot.limine.ableos.modules.ablefetch]
# path = "boot:///ablefetch.hbf"