dev/asset-management (#6)
Co-authored-by: Nilton Constantino <nilton.constantino@visma.com> Reviewed-on: #6
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user