Attract-Mode Support Forum
Attract-Mode Support => Themes => Topic started by: nayasis on April 16, 2019, 10:37:24 AM
-
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/LSsmhDS9GsQ
ps... 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;
}
}
}
-
Good job and welcome to Am forums!
-
A master piece theme, i like the snes mini graphics look
-
If you need me to test on a pi 3b and 3b+, I would be happy to.
-
wooow!! great job, you still work in this theme?