TizzyT

ColdbootDecompJSX2 -TizzyT

Apr 8th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var logo_hd = new Actor("logo");
  2. var blur_hd = new Actor("blur");
  3. var footer_hd = new Actor("footer");
  4. var logo_sd = new Actor("logo_sd");
  5. var blur_sd = new Actor("blur_sd");
  6. var footer_sd = new Actor("footer_sd");
  7. var camera = new Camera("camera");
  8. var light = new Light("pointlight");
  9. var first_wait = 1.5;
  10. var appear_duration = 1.3;
  11. var appear_wait = -0.25;
  12. var blur_duration = 0.5;
  13. var blur_wait = 0.25;
  14. var whole_duration = 0.5;
  15. var whole_wait = 0.5;
  16. var fade_duration = 1.2;
  17. var appear_start_time = first_wait;
  18. var blur_start_time = appear_start_time + appear_duration + appear_wait;
  19. var whole_start_time = blur_start_time + blur_duration + blur_wait;
  20. var fade_start_time = whole_start_time + whole_duration + whole_wait;
  21. var logo = logo_hd;
  22. var blur = blur_hd;
  23. var footer = footer_hd;
  24. var logo_hide = logo_sd;
  25. var blur_hide = blur_sd;
  26. var footer_hide = footer_sd;
  27. var br = 1.0;
  28. if (System.resolution->0 == 720)
  29. {
  30.     br = 0.8;
  31.     logo = logo_sd;
  32.     blur = blur_sd;
  33.     footer = footer_sd;
  34.     logo_hide = logo_hd;
  35.     blur_hide = blur_hd;
  36.     footer_hide = footer_hd;
  37.     if (camera.aspect == 4.0 / 3.0)
  38.     {
  39.         var sd_offset_x = 1.25;
  40.         sd_offset_x->2;
  41.         sd_offset_x->2;
  42.         sd_offset_x->2;
  43.         var sd_scale = <1.0, 0.5, 0.5>;
  44.         logo.scale = sd_scale;
  45.         blur.scale = sd_scale;
  46.         footer.scale = sd_scale;
  47.     } else {
  48.         sd_offset_x = 2.0;
  49.         sd_offset_x->2;
  50.         sd_offset_x->2;
  51.         sd_offset_x->2;
  52.         sd_scale = <1.0, 0.5, 0.5>;
  53.         logo.scale = sd_scale;
  54.         blur.scale = sd_scale;
  55.         footer.scale = sd_scale;
  56.     }
  57. }
  58. logo_hide.color = <0, 0, 0, 0>;
  59. blur_hide.color = <0, 0, 0, 0>;
  60. footer_hide.color = <0, 0, 0, 0>;
  61. logo.color = <br, br, br, 0>;
  62. logo.setColor(<br, br, br, 1>, appear_start_time);
  63. blur.color = <br, br, br, 0>;
  64. footer.color = <br, br, br, 0>;
  65. light.position = logo.position + <-3, 0.5, 0>;
  66. light.color = <0, 0, 0>;
  67. System.timer[0] = new OneShotTimer(appear_start_time, function()
  68. {
  69.     light.setPosition(logo.position + <0.0, 0.5, 0>, appear_duration);
  70.     light.setAttenuation(<0.1, 0.1, 0.1>, appear_duration);
  71.     light.setColor(<1, 1, 1>, appear_duration);
  72. });
  73. System.timer[1] = new OneShotTimer(blur_start_time, function()
  74. {
  75.     blur.setColor(<br, br, br, 1>, blur_duration, INTERPOLATION_BEZIER, <0.1, 0.0, 0.1, 1.0>);
  76. });
  77. System.timer[2] = new OneShotTimer(whole_start_time, function()
  78. {
  79.     blur.setColor(<br, br, br, 0>, whole_duration, INTERPOLATION_BEZIER, <0.1, 0.0, 0.1, 1.0>);
  80.     footer.setColor(<br, br, br, 1>, whole_duration);
  81. });
  82. System.timer[3] = new OneShotTimer(fade_start_time, function()
  83. {
  84.     var localVar_1 = <0.8, 0.0, 0.8, 1.0>;
  85.     footer.setColor(<br, br, br, 0>, fade_duration, INTERPOLATION_BEZIER, localVar_1);
  86.     logo.setColor(<br, br, br, 0>, fade_duration, INTERPOLATION_BEZIER, localVar_1);
  87.     light.setPosition(light.position + <1.5 * 1.5, 1 * 1.5, 0>, fade_duration, INTERPOLATION_BEZIER, localVar_1);
  88.     light.setColor(<0, 0, 0>, fade_duration, INTERPOLATION_BEZIER, localVar_1);
  89.     light.setAttenuation(<0, 1, 4>, fade_duration, INTERPOLATION_BEZIER, localVar_1);
  90. });
Advertisement
Add Comment
Please, Sign In to add comment