Attract-Mode Support Forum

Attract-Mode Support => Themes => Topic started by: nayasis on April 16, 2019, 10:37:24 AM

Title: Snes Mini Simple - WIP
Post 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.

Code: [Select]
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 );

Code: [Select]
// [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;
}
}
}

Title: Re: Snes Mini Simple - WIP
Post by: rand0m on April 16, 2019, 01:39:55 PM
Good job and welcome to Am forums!
Title: Re: Snes Mini Simple - WIP
Post by: maikolik on April 23, 2019, 09:06:27 AM
A master piece theme, i like the snes mini graphics look
Title: Re: Snes Mini Simple - WIP
Post by: spaffley on April 30, 2019, 04:36:43 AM
If you need me to test on a pi 3b and 3b+, I would be happy to.
Title: Re: Snes Mini Simple - WIP
Post by: maikolik on May 22, 2019, 10:14:24 AM
wooow!! great job, you still work in this theme?