class UI
prints text on screen
Attributes
text[RW]
Public Class Methods
new(window)
click to toggle source
# File lib/ruby-ai/ui.rb, line 6 def initialize(window) @font = Gosu::Font.new(window, Gosu::default_font_name, 15) @text = 'Press <enter> to begin.' @width = window.width @height = window.height end
Public Instance Methods
draw()
click to toggle source
# File lib/ruby-ai/ui.rb, line 13 def draw @font.draw_rel(@text, @width / 2, @height - 20, 3, 0.5, 0.0, 1.0, 1.0, 0xffffff00) end