-
-
Save bil-bas/3147420 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
translate -@camera_x, -@camera_y do | |
@map.draw | |
@player.draw | |
end | |
translate 10, 10 do | |
score_text = "Collected: #{@player.items}" | |
score_width = @score_font.text_width score_text | |
draw_quad 0, 0, 0xaa000000, | |
score_width, 0, 0xaa000000, | |
0, @score_font.height, 0xaa000000, 2, | |
score_width, @score_font.height, 0xaa000000 | |
@score.draw score_text, 0, 0, 3, 1.0, 1.0, 0xff8F2121 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment