Module: GamesAndRpgParadise::GUI::Memory
- Includes:
- Memory
- Included in:
- GameEnded
- Defined in:
- lib/games_and_rpg_paradise/gui/gosu/memory/constants.rb,
lib/games_and_rpg_paradise/gui/gosu/memory/game.rb,
lib/games_and_rpg_paradise/gui/gosu/memory/play_game.rb,
lib/games_and_rpg_paradise/gui/gosu/memory/game_ended.rb
Overview
GamesAndRpgParadise::GUI::Memory::PlayGame
Defined Under Namespace
Classes: Game, GameEnded, PlayGame
Constant Summary
collapse
- GOSU_USE_THIS_FONT =
Gosu::Font.new(20, {name: USE_THIS_FONT_FAMILY})
Constants included
from Memory
Memory::ARRAY_IMAGES_FOR_THE_MEMORY_GAME, Memory::FILE_BLACK_BACKGROUND, Memory::FILE_CAMEL_HEAD, Memory::FILE_CARD_RANDOM, Memory::FILE_DONKEY, Memory::FILE_FROG, Memory::FILE_LION, Memory::FILE_NEW_GAME, Memory::FILE_OCTOPUS, Memory::FILE_SAD_CRAB, Memory::FILE_SHEEP, Memory::FILE_SNAIL, Memory::FILE_SPERM_WHALE, Memory::FILE_UNICORN, Memory::GAME_MESSAGE_YOU_WON, Memory::IMAGES_DIRECTORY, Memory::SCREENHEIGHT, Memory::SCREENWIDTH, Memory::TITLE, Memory::USE_THIS_FONT_FAMILY
Class Method Summary
collapse
-
.available_images? ⇒ Boolean
# === GamesAndRpgParadise::GUI::Memory.available_images? =========================================================================== #.
-
.current_game=(i) ⇒ Object
# === GamesAndRpgParadise::GUI::Memory.current_game= ========================================================================= #.
-
.current_game? ⇒ Boolean
# === GamesAndRpgParadise::GUI::Memory.current_game? ========================================================================= #.
-
.load_images ⇒ Object
# === GamesAndRpgParadise::GUI::Memory.load_images =========================================================================== #.
Class Method Details
.available_images? ⇒ Boolean
#
GamesAndRpgParadise::GUI::Memory.available_images?
#
25
26
27
|
# File 'lib/games_and_rpg_paradise/gui/gosu/memory/play_game.rb', line 25
def self.available_images?
@available_images
end
|
.current_game=(i) ⇒ Object
#
GamesAndRpgParadise::GUI::Memory.current_game=
#
41
42
43
|
# File 'lib/games_and_rpg_paradise/gui/gosu/memory/constants.rb', line 41
def self.current_game=(i)
@current_game = i
end
|
.current_game? ⇒ Boolean
#
GamesAndRpgParadise::GUI::Memory.current_game?
#
34
35
36
|
# File 'lib/games_and_rpg_paradise/gui/gosu/memory/constants.rb', line 34
def self.current_game?
@current_game
end
|
.load_images ⇒ Object
#
GamesAndRpgParadise::GUI::Memory.load_images
#
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# File 'lib/games_and_rpg_paradise/gui/gosu/memory/play_game.rb', line 32
def self.load_images
@available_images = {}
@available_images[1] = Gosu::Image.new(FILE_CAMEL_HEAD, {retro: true})
@available_images[2] = Gosu::Image.new(FILE_DONKEY, {retro: true})
@available_images[3] = Gosu::Image.new(FILE_FROG, {retro: true})
@available_images[4] = Gosu::Image.new(FILE_LION, {retro: true})
@available_images[5] = Gosu::Image.new(FILE_OCTOPUS, {retro: true})
@available_images[6] = Gosu::Image.new(FILE_SAD_CRAB, {retro: true})
@available_images[7] = Gosu::Image.new(FILE_SPERM_WHALE, {retro: true})
@available_images[8] = Gosu::Image.new(FILE_SHEEP, {retro: true})
@available_images[9] = Gosu::Image.new(FILE_UNICORN, {retro: true})
@available_images[10] = Gosu::Image.new(FILE_SNAIL, {retro: true})
@available_images['card_back'] = Gosu::Image.new(FILE_CARD_RANDOM, {retro: true})
@available_images['button_play_again'] = Gosu::Image.new(FILE_NEW_GAME, {retro: true})
end
|