Module: Yeah
- Extended by:
- Web::ClassMethods
- Includes:
- Web
- Defined in:
- lib/yeah.rb,
lib/yeah/_web.rb,
lib/yeah/game.rb,
lib/yeah/color.rb,
lib/yeah/vector.rb,
lib/yeah/version.rb,
lib/yeah/constants.rb,
lib/yeah/web/setup.rb,
lib/yeah/web/server.rb,
lib/yeah/web/builder.rb,
lib/yeah/_platform/font.rb,
lib/yeah/_platform/asset.rb,
lib/yeah/_platform/image.rb,
lib/yeah/_platform/mouse.rb,
lib/yeah/_platform/sound.rb,
lib/yeah/_platform/ticker.rb,
lib/yeah/_platform/display.rb,
lib/yeah/_platform/keyboard.rb,
lib/yeah/_platform/class_methods.rb
Defined Under Namespace
Modules: Web Classes: Asset, Color, Display, Font, Game, Image, Keyboard, Mouse, Sound, Ticker, Vector
Constant Summary collapse
- C =
Yeah::Color
- V =
Yeah::Vector
- VERSION =
'0.4.2'- DEFAULT_DISPLAY_SIZE =
V[1280, 720]
- DEFAULT_DISPLAY_TEXT_SIZE =
36- DEFAULT_TICKER_RATE =
60
Instance Attribute Summary collapse
-
#height ⇒ Integer
readonly
Height of image.
-
#size ⇒ Vector
readonly
Size of image.
-
#width ⇒ Integer
readonly
Width of image.
Class Method Summary collapse
- .configure {|config| ... } ⇒ nil abstract
Instance Method Summary collapse
-
#play ⇒ Object
Play sound.
-
#stop ⇒ Object
Stop all playback.
-
#to_n ⇒ Native
Native reference.
Instance Attribute Details
#height ⇒ Integer (readonly)
Returns height of image.
|
|
# File 'lib/yeah/_platform/image.rb', line 13
|
#width ⇒ Integer (readonly)
Returns width of image.
|
|
# File 'lib/yeah/_platform/image.rb', line 10
|
Class Method Details
.configure {|config| ... } ⇒ nil
This method is abstract.
Provided by a Platform.
Note:
Configuration struct attributes: title (String), factorial_scaling (Boolean)
|
|
# File 'lib/yeah/_platform/class_methods.rb', line 2
|
Instance Method Details
#play ⇒ Object
Play sound.
|
|
# File 'lib/yeah/_platform/sound.rb', line 9
|
#stop ⇒ Object
Stop all playback.
|
|
# File 'lib/yeah/_platform/sound.rb', line 12
|
#to_n ⇒ Native
Returns native reference.
|
|
# File 'lib/yeah/_platform/image.rb', line 16
|