Skip to content

Instantly share code, notes, and snippets.

@bil-bas
Forked from anonymous/gist:3146716
Created July 19, 2012 22:50
Show Gist options
  • Save bil-bas/3147420 to your computer and use it in GitHub Desktop.
Save bil-bas/3147420 to your computer and use it in GitHub Desktop.
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