New program that will be similar to rouge.
This commit is contained in:
parent
601d4aaf8b
commit
9d382a3608
sysdata
1
sysdata/programs/ascii_game/README.md
Normal file
1
sysdata/programs/ascii_game/README.md
Normal file
|
@ -0,0 +1 @@
|
|||
# ascii_game
|
11
sysdata/programs/ascii_game/meta.toml
Normal file
11
sysdata/programs/ascii_game/meta.toml
Normal 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"
|
21
sysdata/programs/ascii_game/src/main.hb
Normal file
21
sysdata/programs/ascii_game/src/main.hb
Normal 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
|
||||
}
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue