Class: Game_Screen

Inherits:
Object show all
Defined in:
docs/4_Systems_003_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

#initialize ⇒ Game_Screen

天候 画像の最大数 default initializer



272
273
# File 'docs/4_Systems_003_Map_Engine.rb', line 272

def initialize
end

Instance Attribute Details

#flash_color (readonly)

色調



261
262
263
# File 'docs/4_Systems_003_Map_Engine.rb', line 261

def flash_color
  @flash_color
end

#pictures (readonly)

シェイク位置



265
266
267
# File 'docs/4_Systems_003_Map_Engine.rb', line 265

def pictures
  @pictures
end

#shake (readonly)

フラッシュ色



263
264
265
# File 'docs/4_Systems_003_Map_Engine.rb', line 263

def shake
  @shake
end

#tone (readonly)

Returns the value of attribute tone.



259
260
261
# File 'docs/4_Systems_003_Map_Engine.rb', line 259

def tone
  @tone
end

#weather_max (readonly)

天候 タイプ



269
270
271
# File 'docs/4_Systems_003_Map_Engine.rb', line 269

def weather_max
  @weather_max
end

#weather_type (readonly)

ピクチャ



267
268
269
# File 'docs/4_Systems_003_Map_Engine.rb', line 267

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



282
283
# File 'docs/4_Systems_003_Map_Engine.rb', line 282

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



288
289
# File 'docs/4_Systems_003_Map_Engine.rb', line 288

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



277
278
# File 'docs/4_Systems_003_Map_Engine.rb', line 277

def start_tone_change(tone, duration)
end

#update

Update every process and picture



298
299
# File 'docs/4_Systems_003_Map_Engine.rb', line 298

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



295
296
# File 'docs/4_Systems_003_Map_Engine.rb', line 295

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