a little bit of gfx

This commit is contained in:
2026-03-24 13:42:37 +00:00
parent 079db44cd1
commit 59e33d6639
16 changed files with 378 additions and 35 deletions
+1 -1
View File
@@ -6,5 +6,5 @@
"app_version": "0.1.0",
"app_mode": "Game",
"entrypoint": "0",
"capabilities": ["log"]
"capabilities": ["log", "gfx"]
}
Binary file not shown.
+8
View File
@@ -1,8 +1,16 @@
import { Color } from @core:color;
import { Log } from @sdk:log;
import { Input } from @sdk:input;
import { Gfx } from @sdk:gfx;
fn frame() -> void
{
let touch = Input.touch();
Gfx.clear(new Color(6577));
Gfx.draw_square(touch.x() - 8, touch.y() - 8, 16, 16, new Color(65535), new Color(13271));
let a = 10;
let b = 15;
let total = a + b;