123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- sector.keep_looping <- true
- function init() {
- ss1.set_enabled(false)
- ss2.set_enabled(false)
- ss3.set_enabled(false)
- ss4.set_enabled(false)
- ss5.set_enabled(false)
- ss6.set_enabled(false)
- }
- function dance_floor() {
- while(true) {
- df6.tint_fade(0, 1, 0, 0.14, 1)
- df5.tint_fade(0, 0.86, 0, 1, 1)
- df4.tint_fade(0, 1, 0.35, 0, 1)
- df3.tint_fade(0, 0, 1, 0.87, 1)
- df2.tint_fade(0, 0, 0.6, 1, 1)
- df1.tint_fade(0, 0.8, 1, 0, 1)
- wait(1, true)
- if(!sector.keep_looping) return
- df6.tint_fade(0, 0.86, 0, 1, 1)
- df5.tint_fade(0, 1, 0.35, 0, 1)
- df4.tint_fade(0, 0, 1, 0.87, 1)
- df3.tint_fade(0, 0, 0.6, 1, 1)
- df2.tint_fade(0, 0.8, 1, 0, 1)
- df1.tint_fade(0, 1, 0, 0.14, 1)
- wait(1, true)
- if(!sector.keep_looping) return
- df6.tint_fade(0, 1, 0.35, 0, 1)
- df5.tint_fade(0, 0, 1, 0.87, 1)
- df4.tint_fade(0, 0, 0.6, 1, 1)
- df3.tint_fade(0, 0.8, 1, 0, 1)
- df2.tint_fade(0, 1, 0, 0.14, 1)
- df1.tint_fade(0, 0.86, 0, 1, 1)
- wait(1, true)
- if(!sector.keep_looping) return
- df6.tint_fade(0, 0, 1, 0.87, 1)
- df5.tint_fade(0, 0, 0.6, 1, 1)
- df4.tint_fade(0, 0.8, 1, 0, 1)
- df3.tint_fade(0, 1, 0, 0.14, 1)
- df2.tint_fade(0, 0.86, 0, 1, 1)
- df1.tint_fade(0, 1, 0.35, 0, 1)
- wait(1, true)
- if(!sector.keep_looping) return
- df6.tint_fade(0, 0, 0.6, 1, 1)
- df5.tint_fade(0, 0.8, 1, 0, 1)
- df4.tint_fade(0, 1, 0, 0.14, 1)
- df3.tint_fade(0, 0.86, 0, 1, 1)
- df2.tint_fade(0, 1, 0.35, 0, 1)
- df1.tint_fade(0, 0, 1, 0.87, 1)
- wait(1, true)
- if(!sector.keep_looping) return
- df6.tint_fade(0, 0.8, 1, 0, 1)
- df5.tint_fade(0, 1, 0, 0.14, 1)
- df4.tint_fade(0, 0.86, 0, 1, 1)
- df3.tint_fade(0, 1, 0.35, 0, 1)
- df2.tint_fade(0, 0, 1, 0.87, 1)
- df1.tint_fade(0, 0, 0.6, 1, 1)
- wait(1, true)
- if(!sector.keep_looping) return
- }
- }
- function tuxrap() {
- start_cutscene()
- Effect.sixteen_to_nine(1)
- Tux.deactivate()
- Tux.walk(160)
- wait(1)
- stop_music(1)
- wait(0.5)
- Tux.walk(0)
- wait(1)
- play_sound("speech/tux_rap.ogg")
-
- dancefloor.set_pos(Tux.get_x(), Tux.get_y())
- ss1.set_enabled(true)
- ss2.set_enabled(true)
- ss3.set_enabled(true)
- ss4.set_enabled(true)
- ss5.set_enabled(true)
- ss6.set_enabled(true)
-
- wait(6)
- Tux.do_duck()
- Tux.set_dir(false)
- wait(0.40625)
- Tux.do_standup()
- Tux.kick()
- wait(0.40625)
- Tux.set_dir(true)
- wait(0.203125)
- Tux.set_dir(false)
- wait(0.203125)
- Tux.set_dir(true)
- wait(0.09375)
- Tux.do_duck()
- wait(0.5)
- Tux.set_dir(false)
- wait(0.203125)
- Tux.set_dir(true)
- wait(0.203125)
- Tux.set_dir(false)
- wait(0.203125)
- Tux.set_dir(true)
- wait(0.203125)
- Tux.set_dir(false)
- wait(0.203125)
- Tux.set_dir(true)
- Tux.do_standup()
- wait(0.203125)
- Tux.set_dir(false)
- wait(0.203125)
- Tux.kick()
- wait(0.40625)
- Tux.set_dir(true)
- Tux.do_jump(-300)
- wait(0.703125)
- Tux.do_duck()
- wait(0.296875)
- Tux.set_dir(false)
- wait(0.59375)
- Tux.set_dir(true)
- wait(0.703125)
- Tux.do_standup()
- Tux.kick()
- wait(0.5)
- Tux.do_duck()
- wait(0.5)
- Tux.do_backflip()
- wait(79.0/64)
- Tux.walk(200)
- wait(38.0/64)
- Tux.walk(0)
- wait(184.0/64)
- Tux.set_dir(false)
- wait(0.3)
- Tux.kick()
- wait(0.40625)
- Tux.do_duck()
- Tux.set_dir(true)
- wait(0.296875)
- Tux.set_dir(false)
- wait(0.5)
- Tux.do_standup()
- Tux.do_jump(-350)
- wait(1.5)
- Tux.kick()
- wait(0.5)
- Tux.do_duck()
- wait(0.5)
- Tux.do_jump(-400)
- wait(1.0)
- Tux.do_standup()
- wait(0.796875)
- Tux.set_dir(true)
- Tux.do_jump(-520)
- wait(1.5)
- sector.keep_looping = false
- df6.tint_fade(0, 0, 0, 0, 1)
- df5.tint_fade(0, 0, 0, 0, 1)
- df4.tint_fade(0, 0, 0, 0, 1)
- df3.tint_fade(0, 0, 0, 0, 1)
- df2.tint_fade(0, 0, 0, 0, 1)
- df1.tint_fade(0, 0, 0, 0, 1)
- ss1.set_enabled(false)
- ss2.set_enabled(false)
- ss3.set_enabled(false)
- ss4.set_enabled(false)
- ss5.set_enabled(false)
- ss6.set_enabled(false)
- end_cutscene()
- fade_in_music("castle/fortress.music", 1)
- Effect.four_to_three(1)
- wait(0.5)
- Tux.activate()
- }
|