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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#heightInteger (readonly)

Returns height of image.

Returns:

  • (Integer)

    height of image



# File 'lib/yeah/_platform/image.rb', line 13

#sizeVector (readonly)

Returns size of image.

Returns:



# File 'lib/yeah/_platform/image.rb', line 7

#widthInteger (readonly)

Returns width of image.

Returns:

  • (Integer)

    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)

Yields:

  • (config)

    configuration block

Yield Parameters:

  • configuration (Struct)

Returns:

  • (nil)


# File 'lib/yeah/_platform/class_methods.rb', line 2

Instance Method Details

#playObject

Play sound.



# File 'lib/yeah/_platform/sound.rb', line 9

#stopObject

Stop all playback.



# File 'lib/yeah/_platform/sound.rb', line 12

#to_nNative

Returns native reference.

Returns:

  • (Native)

    native reference



# File 'lib/yeah/_platform/image.rb', line 16