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

#initializeGame_Screen

天候 画像の最大数default initializer



274
275
# File 'docs/4_Systems_003_Map_Engine.rb', line 274

def initialize
end

Instance Attribute Details

#flash_color (readonly)

色調



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

def flash_color
  @flash_color
end

#pictures (readonly)

シェイク位置



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

def pictures
  @pictures
end

#shake (readonly)

フラッシュ色



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

def shake
  @shake
end

#tone (readonly)

Returns the value of attribute tone.



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

def tone
  @tone
end

#weather_max (readonly)

天候 タイプ



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

def weather_max
  @weather_max
end

#weather_type (readonly)

ピクチャ



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

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



284
285
# File 'docs/4_Systems_003_Map_Engine.rb', line 284

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



290
291
# File 'docs/4_Systems_003_Map_Engine.rb', line 290

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



279
280
# File 'docs/4_Systems_003_Map_Engine.rb', line 279

def start_tone_change(tone, duration)
end

#update

Update every process and picture



300
301
# File 'docs/4_Systems_003_Map_Engine.rb', line 300

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



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

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