dev/asset-management (#6)

Co-authored-by: Nilton Constantino <nilton.constantino@visma.com>
Reviewed-on: #6
This commit was merged in pull request #6.
This commit is contained in:
2026-01-22 15:22:13 +00:00
co-authored by Nilton Constantino
parent 0e6da1433b
commit db338d0c4e
44 changed files with 2697 additions and 865 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import {do_init_gfx, print_orange} from "./my_gfx";
import {do_pad, do_touch} from "./my_input";
import {do_fs} from "./my_fs";
export function tick(): void {
export function frame(): void {
do_init_gfx();
do_pad();
do_touch();
+3 -2
View File
@@ -4,12 +4,13 @@ export function do_pad(): void {
}
if (pad.a.pressed) {
audio.playSample(1, 0, 255, 128, 1.0);
audio.play("bgm_music", 0, 0, 128, 127, 1.0, 1);
}
}
export function do_touch(): void {
gfx.setSprite("mouse_cursor", 0, touch.x, touch.y, 0, 0, true, false, false, 4);
if (touch.button.down) {
gfx.drawCircle(touch.x, touch.y, 5, color.white);
gfx.drawCircle(touch.x, touch.y, 10, color.white);
}
}