From e99176e14a5a5b8c46bba0591010f7e55c535981 Mon Sep 17 00:00:00 2001 From: realtradam Date: Tue, 4 May 2021 01:10:27 -0400 Subject: init --- lib/camera/camera.rb | 125 ++++++++++++++++++++++++++ lib/camera/wrappers/circle_wrapper.rb | 47 ++++++++++ lib/camera/wrappers/image_wrapper.rb | 73 ++++++++++++++++ lib/camera/wrappers/line_wrapper.rb | 91 +++++++++++++++++++ lib/camera/wrappers/quad_wrapper.rb | 108 +++++++++++++++++++++++ lib/camera/wrappers/rectangle_wrapper.rb | 138 +++++++++++++++++++++++++++++ lib/camera/wrappers/sprite_wrapper.rb | 86 ++++++++++++++++++ lib/camera/wrappers/square_wrapper.rb | 146 +++++++++++++++++++++++++++++++ lib/camera/wrappers/text_wrapper.rb | 84 ++++++++++++++++++ lib/camera/wrappers/triangle_wrapper.rb | 90 +++++++++++++++++++ 10 files changed, 988 insertions(+) create mode 100644 lib/camera/camera.rb create mode 100644 lib/camera/wrappers/circle_wrapper.rb create mode 100644 lib/camera/wrappers/image_wrapper.rb create mode 100644 lib/camera/wrappers/line_wrapper.rb create mode 100644 lib/camera/wrappers/quad_wrapper.rb create mode 100644 lib/camera/wrappers/rectangle_wrapper.rb create mode 100644 lib/camera/wrappers/sprite_wrapper.rb create mode 100644 lib/camera/wrappers/square_wrapper.rb create mode 100644 lib/camera/wrappers/text_wrapper.rb create mode 100644 lib/camera/wrappers/triangle_wrapper.rb (limited to 'lib/camera') diff --git a/lib/camera/camera.rb b/lib/camera/camera.rb new file mode 100644 index 0000000..64e2095 --- /dev/null +++ b/lib/camera/camera.rb @@ -0,0 +1,125 @@ +# frozen_string_literal: true + +Dir[File.join(__dir__, 'wrappers', '*.rb')].sort.each { |file| require file } + +# Handles rendering objects relative +# to a camera location +module Camera + class <