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 - cherwilco

Pages: [1]
1
Themes / quick and dirty gameboy layout
« on: October 26, 2014, 05:43:22 PM »
this one just uses scrolling marquee art on the left boxart at the bottom center and video snaps on the gameboy screen

https://www.youtube.com/watch?v=T9FuXW6gwZc&feature=youtu.be
edit: wow that screenshot came out big!


needed artworks:

Marquee:  http://www.mediafire.com/download/vsor2k0nc2tkoxq/Wheel.zip
Boxart:   http://www.mediafire.com/download/b1o91p0306w883i/Boxart.zip
Snap:   http://www.mediafire.com/download/goa0a5bdpagguzr/Video.zip

2
Themes / ps2 layout
« on: October 21, 2014, 05:39:12 AM »
Just a little Ps2 layout with srolling marquee artwork on the left and video snap and box art that switches with your game  :D  (zip is attached)

preview video here:
https://www.youtube.com/watch?v=aY5KXdPbOfM&feature=youtu.be

needed artworks not included in zip:
flyer  http://www.mediafire.com/download/6z1fjacmb99syay/Wheel.zip   (1,081 marquees)
marquee   http://www.mediafire.com/download/4d71c9414kn0b1k/Boxart.zip   (1,238 ps2 boxarts)
snap   (the ones I have are over 7 gig for all, will only upload if someone is really interested)


code for layout.nut file:
Code: [Select]
//
// Attract-Mode Front-End - "mediaV" sample layout
//
fe.layout.width=800;
fe.layout.height=600;

fe.layout.font="coolvetica";

fe.add_image( "Background.jpg", 0, 0, 800, 600 );
fe.add_artwork( "snap", 470, 135, 295, 225 );
fe.add_image( "frame.png", 465, 130, 310, 235 );
fe.add_image("select.png", 18, 475, 220,9 );
fe.add_image("ps2box.png", 578, 377, 128, 212 );

// fill an entire surface with our snap at a resolution of 124x204
//
local surface = fe.add_surface( 124, 204 );
local snap = surface.add_artwork( "flyer", 0, 0, 124, 204 );
snap.preserve_aspect_ratio = false;

// position and pinch the surface
//
surface.set_pos( 588, 380, 115, 206 );
surface.pinch_y = 11;


local title = fe.add_text( "[Title]", 10, 660, 320, 20 );
title.set_rgb( 255, 255, 255 );
title.align = Align.Left;

local man = fe.add_text( " ([Category]) [Manufacturer] [Year] ", 10, 690, 320, 20 );
man.set_rgb( 255, 255, 255 );
man.align = Align.Left;

local name = fe.add_text( " [ListTitle] ", 02, 02, 320, 20 );
name.set_rgb( 255, 255, 255 );
name.align = Align.Left;

local entry = fe.add_text( "[ListEntry]/[ListSize]", 350, 610, 320, 18 );
entry.set_rgb( 255, 255, 255 );
entry.align = Align.Right;


// Create 10 artworks.
local title_p2 = fe.add_artwork( "marquee", 20, 00, 190, 75);
local title_p3 = fe.add_artwork( "marquee", 20, 80, 190, 75 );
local title_n1 = fe.add_artwork( "marquee", 20, 160, 190, 75 );
local title_n2 = fe.add_artwork( "marquee", 20, 240, 190, 75 );
local title_n3 = fe.add_artwork( "marquee", 20, 320, 190, 75 );
local title_n0 = fe.add_artwork( "marquee", 20, 400, 190, 75 );
local title_n5 = fe.add_artwork( "marquee", 20, 480, 190, 75 );
local title_n6 = fe.add_artwork( "marquee", 20, 560, 190, 75 );
local title_n7 = fe.add_artwork( "marquee", 20, 640, 190, 75 );
local title_n8 = fe.add_artwork( "marquee", 20, 720, 190, 75 );

// Set index_offset for these 5 artworks.
title_p2.index_offset = -5;
title_p3.index_offset = -4;
title_n1.index_offset = -3;
title_n2.index_offset = -2;
title_n3.index_offset = -1;
title_n0.index_offset = 0;
title_n5.index_offset = 1;
title_n6.index_offset = 2;
title_n7.index_offset = 3;
title_n8.index_offset = 4;
// Add transition callback function.
fe.add_transition_callback( "orbit_transition" );
// Fill in orbit_transition function, as below:
local SPIN_MS=160; // Duration of transition effect (in msec)
function orbit_transition( ttype, var, ttime ) {
switch ( ttype )
{
case Transition.ToNewSelection:
if ( ttime < SPIN_MS ) {
local direction = -1;
if (var < 0) direction = 1;
local increment = (ttime * direction * 80) / SPIN_MS;
title_p2.y = 00 + increment;
title_p3.y = 80 + increment;
title_n1.y = 160 + increment;
title_n2.y = 240 + increment;
title_n3.y = 320 + increment;
title_n0.y = 400 + increment;
title_n5.y = 480 + increment;
title_n6.y = 560 + increment;
title_n7.y = 640 + increment;
title_n8.y = 720 + increment;

return true;
}

else {
title_p2.y = 00;
title_p3.y = 80;
title_n1.y = 160;
title_n2.y = 240;
title_n3.y = 320;
title_n0.y = 400;
title_n5.y = 480;
title_n6.y = 560;
title_n7.y = 640;
title_n8.y = 720;
return false;
}
}
return false;
}

// Gives us a nice high random number for the RGB levels
function brightrand() {
 return 255-(rand()/255);
}

local red = brightrand();
local green = brightrand();
local blue = brightrand();

// Transitions
fe.add_transition_callback( "fancy_transitions" );

function fancy_transitions( ttype, var, ttime ) {
 switch ( ttype )
 {
 case Transition.StartLayout:
 case Transition.ToNewList:
 case Transition.ToNewSelection:
 case Transition.EndLayout:
  //gametitleshadow.msg = trimmed_title( var );
  //gametitle.msg = trimmed_title( var );
  //man.msg = trimmed_man ( var );
  red = brightrand();
  green = brightrand();
  blue = brightrand();
  //year.set_rgb (red,green,blue);
  //copy.set_rgb (red,green,blue);
  //man.set_rgb (red,green,blue);
  //romlist.set_rgb (red,green,blue);
  //screen.set_rgb (red,green,blue);
  //frame3.set_rgb (red,green,blue);
  //cat.set_rgb (red,green,blue);
  //title.set_rgb (red,green,blue);
  break;

 case Transition.FromGame:
  if ( ttime < 255 )
  {
   foreach (o in fe.obj)
    o.alpha = ttime;
   //message.alpha = 0;     
   return true;
  }
  else
  {
   foreach (o in fe.obj)
    o.alpha = 255;
   //message.alpha = 0;
  }
  break;
   
 case Transition.EndLayout:
  if ( ttime < 255 )
  {
   foreach (o in fe.obj)
    o.alpha = 255 - ttime;
   //message.alpha = 0;
   return true;
  }
  else
  {
   foreach (o in fe.obj)
    o.alpha = 255;
   //message.alpha = 0;
  }
  break;
     
 case Transition.ToGame:
  if ( ttime < 255 )
  {
   foreach (o in fe.obj)
    o.alpha = 255 - ttime;
   message.alpha = ttime;
   return true;
  }   
  break;
 }
 return false;
}

3
Scripting / orbit style marquee scrolling but.....
« on: October 18, 2014, 03:56:22 PM »
I'm having trouble making a custom ps2 layout. I have my graphics and video snaps all sorted for where I would like them to appear on screen but I cant find any layout.nut files that I can modify (I suck at creating my own) that handle the marquee graphic the way I want. I like the orbit one where the marquee graphics scroll left and right in an arc (think smiley face) where the art resizes based on how close to center it is.... thats pretty damn awesome but I would like to reconfigure that marquee scroll to appear on the left hand side top to bottom. kind of like this:

game one

game two

game three

game four

game five


like this but with marquee art and smooth scroll like the orbit one does. I cant for the life of me figure out the transitions or how to modify. I attached a copy of the orbit layout that I am referring too

4
General / one place to preview/ download themes?
« on: October 12, 2014, 02:28:48 PM »
can we get a forum category just for theme sharing?

5
General / Feature requests?
« on: June 07, 2014, 06:43:43 PM »
Hi, I was wondering if devs would be open to feature requests/ ideas? if so I have a few.

1: a simple layout editor would rock
2: the ability to have per game layouts (if this is already implemented sorry I just couldn't figure out how to do it)
3: maybe have an "on launch" or "on exit" command available to we can include other exe files or bat files to help emu's open and close cleaner or include scripting to edit close commands for emulators. (launch arguments seem to work fine)

I think thats about it, I've been using hyperspin for a few years now and after playing around with attact mode for about an hour I decided to scavange all of my emu's/roms/and art from my HS setup and dive right into attract mode..... its that much better already!

please keep up the incredible work!

Pages: [1]