Class: GamePlay::MiningGame
- Inherits:
-
BaseCleanUpdate::FrameBalanced
- Object
- Base
- BaseCleanUpdate
- BaseCleanUpdate::FrameBalanced
- GamePlay::MiningGame
- Includes:
- UI::MiningGame
- Defined in:
- docs/01450_Systems_08001_Mining_Game.rb
Overview
Class that describes the functionment of the scene
Constant Summary collapse
- DATA =
Constant that stock the Database of the Mining Game
GameData::MiningGame::DATA_ITEM
- DEFAULT_MUSIC =
The base music of the scene
'audio/bgm/mining_game'
- NB_X_TILES =
The number of tiles per lines in the table
16
- NB_Y_TILES =
The number of tiles per columns in the table
13
- FIRST_TIME_TEXT =
IDs of the text displayed when playing for the first time
[[9005, 6], [9005, 7], [9005, 8], [9005, 10], [9005, 11], [9005, 12]]
- FIRST_TIME_TEXT_ALTERNATIVE =
IDs of the text displayed when playing for the first time (dynamite mode)
[9005, 9]
- TOOLS =
List of the usable tools
%i[pickaxe mace dynamite]
- SE_PATH =
Pathname of the SE folder
'audio/se/mining_game'
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 collapse
Attributes inherited from Base
#__last_scene, #__result_process, #running, #viewport
Attributes included from DisplayMessage
Instance Method Summary collapse
-
#initialize(param = nil, music_filename = DEFAULT_MUSIC, grid_handler: nil) ⇒ MiningGame
constructor
Initialize the UI.
Methods inherited from BaseCleanUpdate::FrameBalanced
Methods included from Graphics::FPSBalancer::Marker
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
#initialize(item_count, music_filename = DEFAULT_MUSIC) ⇒ MiningGame #initialize(wanted_item_db_symbols, music_filename = DEFAULT_MUSIC) ⇒ MiningGame
Initialize the UI
700 701 |
# File 'docs/01450_Systems_08001_Mining_Game.rb', line 700 def initialize(param = nil, music_filename = DEFAULT_MUSIC, grid_handler: nil) end |
Instance Attribute Details
#arr_items_won ⇒ Array<PFM::MiningGame::Diggable>
690 691 692 |
# File 'docs/01450_Systems_08001_Mining_Game.rb', line 690 def arr_items_won @arr_items_won end |
#tiles_stack ⇒ UI::MiningGame::Tiles_Stack
688 689 690 |
# File 'docs/01450_Systems_08001_Mining_Game.rb', line 688 def tiles_stack @tiles_stack end |