Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - nayasis

Pages: [1]
1
Themes / Snes Mini Simple - WIP
« 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;
}
}
}


Pages: [1]