Skip to content

Instantly share code, notes, and snippets.

Created July 19, 2012 20:49
Show Gist options
  • Save anonymous/3146716 to your computer and use it in GitHub Desktop.
Save anonymous/3146716 to your computer and use it in GitHub Desktop.
translate(-@camera_x, -@camera_y) do
draw_quad(
@camera_x + 10, @camera_y + 10, 0xaa000000,
@score_font.text_width("Collected: #{@player.items}") + 10, @camera_y + 10, 0xaa000000,
@camera_x + 10, @score_font.height + 10, 0xaa000000, 2,
@score_font.text_width("Collected: #{@player.items}") + 10, @score_font.height + 10, 0xaa000000
)
@map.draw
@player.draw
@score.draw("Collected: #{@player.items}", @camera_x + 10, @camera_y + 10, 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