Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Last active November 18, 2017 08:44
Show Gist options
  • Save ongaeshi/43d1f73898666f1f85d29aa9c52aba50 to your computer and use it in GitHub Desktop.
Save ongaeshi/43d1f73898666f1f85d29aa9c52aba50 to your computer and use it in GitHub Desktop.
font = Font.new(30)
camera = Camera2D.new
while System.update do
camera.update
camera.transform do
font["Camera2D Test"].draw_at(320, 200)
Circle.new(320, 240, 50).draw([255, 0, 0, 127])
end
camera.draw(Palette::Orange)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment