1
0
Fork 0
forked from AbleOS/ableos

obliterate redundant code

This commit is contained in:
koniifer 2025-02-09 01:29:31 +00:00
parent 89e5e2c0ad
commit 507704234f

View file

@ -5,7 +5,6 @@ stn := @use("stn")
example := fn(): void {
screen := render.init(true)
mouse_pos := stn.math.Vec2(int).(0, 0)
prev_pos := mouse_pos
bg_colour := render.BLACK
pen_colour := render.WHITE
loop {
@ -14,8 +13,6 @@ example := fn(): void {
mouse_pos.x = stn.math.clamp(int, mouse_pos.x + mouse.x_change, 10, @bitcast(screen.width) - 10)
mouse_pos.y = stn.math.clamp(int, mouse_pos.y - mouse.y_change, 10, @bitcast(screen.height) - 10)
prev_pos = mouse_pos
if mouse.left {
screen.put_filled_circle(@bitcast(mouse_pos), 10, pen_colour)
} else if mouse.right {