forked from AbleOS/ableos
21 lines
373 B
Plaintext
21 lines
373 B
Plaintext
.{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
|
|
} |