new music on color-square
This commit is contained in:
@@ -2,7 +2,15 @@ import {do_init_gfx, print_orange} from "./my_gfx";
|
||||
import {do_pad, do_touch} from "./my_input";
|
||||
import {do_fs} from "./my_fs";
|
||||
|
||||
let music_started = false;
|
||||
|
||||
export function frame(): void {
|
||||
if (!music_started) {
|
||||
// bank_id=0, sample_id=0, voice_id=0, volume=255, pan=127, pitch=1.0, loop_mode=1
|
||||
audio.play(0, 0, 0, 128, 127, 1.0, 1);
|
||||
music_started = true;
|
||||
}
|
||||
|
||||
do_init_gfx();
|
||||
do_pad();
|
||||
do_touch();
|
||||
|
||||
Reference in New Issue
Block a user