Method: FailLevel#draw

Defined in:
lib/escape_to_rubyconf/fail_level.rb

#drawObject



49
50
51
52
53
54
55
56
57
58
59
# File 'lib/escape_to_rubyconf/fail_level.rb', line 49

def draw
  c = Math.cos(@window.time*4)
  @fail.draw_rot(((@window.width)/2), ((@window.height)/2 - 80), 1, 0,
                0.5, 0.5, 1.0+c*0.25, 1.0+c*0.25)
  s = Math.sin @window.time
  @msg.draw_rot( ((@window.width)/2 + (100*(s)).to_i),
                  ((@window.height)/2 + 160 + s*s*s.abs*50),
                  1, s*5, 0.5, 0.5,
                  1.0+(0.1*s*s*s.abs), 1.0+(0.1*s*s*s.abs),
                  Gosu::Color::RED )
end