Class: GamePlay::CreditScene

Inherits:
BaseCleanUpdate show all
Defined in:
scripts/01450 Systems/00002 Credits/00002 Credit Scene.rb

Overview

Scene responsive of showing credits

Constant Summary

Constants inherited from BaseCleanUpdate

BaseCleanUpdate::AIU_KEY2METHOD

Constants inherited from Base

Base::DEFAULT_TRANSITION, Base::DEFAULT_TRANSITION_PARAMETER

Constants included from Input

Input::ALIAS_KEYS, Input::AXIS_MAPPING, Input::AXIS_SENSITIVITY, Input::DEAD_ZONE, Input::Keyboard, Input::Keys, Input::NON_TRIGGER_ZONE, Input::REPEAT_COOLDOWN, Input::REPEAT_SPACE

Constants included from DisplayMessage

DisplayMessage::MESSAGE_ERROR, DisplayMessage::MESSAGE_PROCESS_ERROR

Instance Attribute Summary

Attributes inherited from Base

#__last_scene, #__result_process, #running, #viewport

Attributes included from DisplayMessage

#message_window

Instance Method Summary collapse

Methods inherited from BaseCleanUpdate

#automatic_input_update, #update

Methods inherited from Base

#add_disposable, #call_scene, #dispose, #find_parent, #main, #return_to_scene, #snap_to_bitmap, #update, #visible, #visible=

Methods included from Input

dir4, dir8, get_text, joy_axis_position, press?, register_events, released?, repeat?, swap_states, trigger?

Methods included from DisplayMessage

#can_display_message_be_called?, #close_message_window, #display_message, #display_message_and_wait, #message_class, #message_processing?, #message_visible, #message_visible=

Constructor Details

#initializeCreditScene

Returns a new instance of CreditScene.



4
5
6
7
# File 'scripts/01450 Systems/00002 Credits/00002 Credit Scene.rb', line 4

def initialize
  super(true)
  @config = Configs.credits_config
end

Instance Method Details

#main_end



27
28
29
30
# File 'scripts/01450 Systems/00002 Credits/00002 Credit Scene.rb', line 27

def main_end
  super
  $scene = Scheduler.get_boot_scene
end

#update_graphics



19
20
21
22
23
24
25
# File 'scripts/01450 Systems/00002 Credits/00002 Credit Scene.rb', line 19

def update_graphics
  return @animation.update if @animation && !@animation.done?

  @animation &&= nil
  @scroller.update
  @running = false if @scroller.done?
end

#update_inputs



9
10
11
12
13
# File 'scripts/01450 Systems/00002 Credits/00002 Credit Scene.rb', line 9

def update_inputs
  return false unless @animation && !@animation.done?

  @running = false if Input.trigger?(:A)
end

#update_mouse



15
16
17
# File 'scripts/01450 Systems/00002 Credits/00002 Credit Scene.rb', line 15

def update_mouse(*)
  @running = false if Mouse.trigger?(:LEFT)
end