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 = [] @ui = []
@mainmenu = nil @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 = { @fonts = {
normal: @font, normal: Gosu::Font.new(self, MAIN_FONT, 18)
big: @font2, big: Gosu::Font.new(self, MAIN_FONT, 20)
title: @font_title, title: Gosu::Font.new(self, MAIN_FONT, 64)
button: @font_button button: Gosu::Font.new(self, MAIN_FONT, 48)
} }
end end
def start_game def start_game

Loading…
Cancel
Save