summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib/ruby2d/text.rb4
-rw-r--r--lib/ruby2d/window.rb3
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/ruby2d/text.rb b/lib/ruby2d/text.rb
index 8466af6..22325ff 100644
--- a/lib/ruby2d/text.rb
+++ b/lib/ruby2d/text.rb
@@ -3,8 +3,8 @@
module Ruby2D
class Text
- attr_accessor :x, :y, :size, :data
- attr_reader :color
+ attr_accessor :x, :y, :data
+ attr_reader :text, :size, :font, :color
def initialize(x=0, y=0, text="Hello World!", size=20, font=nil, c="white")
diff --git a/lib/ruby2d/window.rb b/lib/ruby2d/window.rb
index f6b7887..e2b7c88 100644
--- a/lib/ruby2d/window.rb
+++ b/lib/ruby2d/window.rb
@@ -2,9 +2,8 @@
module Ruby2D
class Window
- attr_reader :title, :width, :height,
- :objects, :diagnostics
+ attr_reader :objects
attr_accessor :mouse_x, :mouse_y, :frames, :fps
def initialize(args = {})