I'm afraid if anyone is interested. but I've been working
AM Snes mini theme on RasberryPI.
It only support game selection but very light and quick so maybe works well on RasberryPI. (not tested yet.)
Code is based on CONVEYOUR_HELPER by ArcadeBliss and DAVBARC MINI NES LAYOUT by caminiti45. ( thanks all sincerely )
I'll release soon after refactoring code.
let me know what you think.
https://youtu.be/LSsmhDS9GsQps... following function maybe helpful for some AMT developers. thank you.
function printf( ... ) {
local iCnt = vargv.len();
if( iCnt == 0 ) return;
local param = [];
param.append( this );
for( local i = 0; i < iCnt; i++ ) {
param.append( vargv[i] );
}
print( format.acall(param) );
}
printf( "src:%s, min : %d, hour : %d\n",fe.game_info( Info.PlayedTime ), 1, 2 );
// [fe.sound.loop = true;] cause AM crash. I don't know the reason exactly. but, It works well as Plan B.
function playSound( path, loop=false ) {
local sound = fe.add_sound( path, true );
if( ! loop && ! sound.playing ) {
sound.playing = true;
}
if( loop ) {
fe.add_ticks_callback( this, "loopSound" )
}
function loopSound( ttime ) {
if( ! sound.playing ) {
sound.playing = true;
}
}
}