Fonts refactor

pull/1/head
E. Almqvist 3 years ago
parent df1ed6d07b
commit d39127dea2
  1. 13
      src/app.rb

@ -25,18 +25,13 @@ class Window < Gosu::Window
@ui = []
@mainmenu = nil
@font = Gosu::Font.new(self, MAIN_FONT, 18)
@font2 = Gosu::Font.new(self, MAIN_FONT, 20)
@font_title = Gosu::Font.new(self, MAIN_FONT, 64)
@font_button = Gosu::Font.new(self, MAIN_FONT, 48)
@fonts = {
normal: @font,
big: @font2,
title: @font_title,
button: @font_button
normal: Gosu::Font.new(self, MAIN_FONT, 18)
big: Gosu::Font.new(self, MAIN_FONT, 20)
title: Gosu::Font.new(self, MAIN_FONT, 64)
button: Gosu::Font.new(self, MAIN_FONT, 48)
}
end
def start_game

Loading…
Cancel
Save