Dual screen game clock now working

This commit is contained in:
2021-09-29 13:41:44 -05:00
parent 44523b0bf2
commit 2948b02f12
8 changed files with 36 additions and 58 deletions

View File

@@ -4,13 +4,13 @@ module TAC
CLOCK_SIZE = Gosu.screen_height
TITLE_SIZE = 128
attr_reader :title
attr_reader :title, :controller
def initialize
@title = CyberarmEngine::Text.new("FIRST TECH CHALLENGE", size: TITLE_SIZE, text_shadow: true, y: 10, color: Gosu::Color::GRAY)
@title.x = $window.width / 2 - @title.width / 2
@text = CyberarmEngine::Text.new(":1234567890", size: CLOCK_SIZE, text_shadow: true, shadow_size: 2, shadow_color: Gosu::Color::GRAY)
@text = CyberarmEngine::Text.new(":1234567890", size: CLOCK_SIZE, text_border: true, border_size: 2, border_color: Gosu::Color::GRAY)
@text.width # trigger font-eager loading
@title.z, @text.z = -1, -1