a little bit of gfx
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user