Class: Game_Screen

Inherits:
Object show all
Defined in:
docs/01450_Systems_00003_Map_Engine.rb

Overview

Update every component that affect the screen

Constant Summary collapse

NEUTRAL_TONE =

Tone that is considered neutral (to let interpreter know how to handle tone & TJN)

Tone.new(0, 0, 0, 0)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGame_Screen

天候 画像の最大数default initializer



153
154
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 153

def initialize
end

Instance Attribute Details

#flash_color (readonly)

色調



142
143
144
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 142

def flash_color
  @flash_color
end

#pictures (readonly)

シェイク位置



146
147
148
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 146

def pictures
  @pictures
end

#shake (readonly)

フラッシュ色



144
145
146
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 144

def shake
  @shake
end

#tone (readonly)

Returns the value of attribute tone.



140
141
142
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 140

def tone
  @tone
end

#weather_max (readonly)

天候 タイプ



150
151
152
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 150

def weather_max
  @weather_max
end

#weather_type (readonly)

ピクチャ



148
149
150
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 148

def weather_type
  @weather_type
end

Instance Method Details

#start_flash(color, duration)

start a flash process

Parameters:

  • color (Color)

    a color

  • duration (Integer)

    the time it takes in frame



163
164
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 163

def start_flash(color, duration)
end

#start_shake(power, speed, duration)

start a screen shake process

Parameters:

  • power (Integer)

    the power of the shake (distance between normal position and shake limit position)

  • speed (Integer)

    the speed of the shake (10 = 4 frame to get one shake period)

  • duration (Integer)

    the time the shake lasts



169
170
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 169

def start_shake(power, speed, duration)
end

#start_tone_change(tone, duration)

start a tone change process

Parameters:

  • tone (Tone)

    the new tone

  • duration (Integer)

    the time it takes in frame



158
159
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 158

def start_tone_change(tone, duration)
end

#update

Update every process and picture



179
180
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 179

def update
end

#weather(type, power, duration, psdk_weather: nil)

starts a weather change process

Parameters:

  • type (Integer)

    the type of the weather

  • power (Numeric)

    The power of the weather

  • duration (Integer)

    the time it takes to change the weather

  • psdk_weather (Integer, nil) (defaults to: nil)

    the PSDK weather type



176
177
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 176

def weather(type, power, duration, psdk_weather: nil)
end