Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var logo_hd = new Actor("logo");
- var blur_hd = new Actor("blur");
- var footer_hd = new Actor("footer");
- var logo_sd = new Actor("logo_sd");
- var blur_sd = new Actor("blur_sd");
- var footer_sd = new Actor("footer_sd");
- var camera = new Camera("camera");
- var light = new Light("pointlight");
- var first_wait = 1.5;
- var appear_duration = 1.3;
- var appear_wait = -0.25;
- var blur_duration = 0.5;
- var blur_wait = 0.25;
- var whole_duration = 0.5;
- var whole_wait = 0.5;
- var fade_duration = 1.2;
- var appear_start_time = first_wait;
- var blur_start_time = appear_start_time + appear_duration + appear_wait;
- var whole_start_time = blur_start_time + blur_duration + blur_wait;
- var fade_start_time = whole_start_time + whole_duration + whole_wait;
- var logo = logo_hd;
- var blur = blur_hd;
- var footer = footer_hd;
- var logo_hide = logo_sd;
- var blur_hide = blur_sd;
- var footer_hide = footer_sd;
- var br = 1.0;
- if (System.resolution->0 == 720)
- {
- br = 0.8;
- logo = logo_sd;
- blur = blur_sd;
- footer = footer_sd;
- logo_hide = logo_hd;
- blur_hide = blur_hd;
- footer_hide = footer_hd;
- if (camera.aspect == 4.0 / 3.0)
- {
- var sd_offset_x = 1.25;
- sd_offset_x->2;
- sd_offset_x->2;
- sd_offset_x->2;
- var sd_scale = <1.0, 0.5, 0.5>;
- logo.scale = sd_scale;
- blur.scale = sd_scale;
- footer.scale = sd_scale;
- } else {
- sd_offset_x = 2.0;
- sd_offset_x->2;
- sd_offset_x->2;
- sd_offset_x->2;
- sd_scale = <1.0, 0.5, 0.5>;
- logo.scale = sd_scale;
- blur.scale = sd_scale;
- footer.scale = sd_scale;
- }
- }
- logo_hide.color = <0, 0, 0, 0>;
- blur_hide.color = <0, 0, 0, 0>;
- footer_hide.color = <0, 0, 0, 0>;
- logo.color = <br, br, br, 0>;
- logo.setColor(<br, br, br, 1>, appear_start_time);
- blur.color = <br, br, br, 0>;
- footer.color = <br, br, br, 0>;
- light.position = logo.position + <-3, 0.5, 0>;
- light.color = <0, 0, 0>;
- System.timer[0] = new OneShotTimer(appear_start_time, function()
- {
- light.setPosition(logo.position + <0.0, 0.5, 0>, appear_duration);
- light.setAttenuation(<0.1, 0.1, 0.1>, appear_duration);
- light.setColor(<1, 1, 1>, appear_duration);
- });
- System.timer[1] = new OneShotTimer(blur_start_time, function()
- {
- blur.setColor(<br, br, br, 1>, blur_duration, INTERPOLATION_BEZIER, <0.1, 0.0, 0.1, 1.0>);
- });
- System.timer[2] = new OneShotTimer(whole_start_time, function()
- {
- blur.setColor(<br, br, br, 0>, whole_duration, INTERPOLATION_BEZIER, <0.1, 0.0, 0.1, 1.0>);
- footer.setColor(<br, br, br, 1>, whole_duration);
- });
- System.timer[3] = new OneShotTimer(fade_start_time, function()
- {
- var localVar_1 = <0.8, 0.0, 0.8, 1.0>;
- footer.setColor(<br, br, br, 0>, fade_duration, INTERPOLATION_BEZIER, localVar_1);
- logo.setColor(<br, br, br, 0>, fade_duration, INTERPOLATION_BEZIER, localVar_1);
- light.setPosition(light.position + <1.5 * 1.5, 1 * 1.5, 0>, fade_duration, INTERPOLATION_BEZIER, localVar_1);
- light.setColor(<0, 0, 0>, fade_duration, INTERPOLATION_BEZIER, localVar_1);
- light.setAttenuation(<0, 1, 4>, fade_duration, INTERPOLATION_BEZIER, localVar_1);
- });
Advertisement
Add Comment
Please, Sign In to add comment