summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorTom Black <[email protected]>2016-04-25 17:20:21 -0400
committerTom Black <[email protected]>2016-04-25 17:20:21 -0400
commitaa41134d58b16b1fb88482865a80bb44eb9e1052 (patch)
treeab6b74cfab4a618ca558d2eeb1904a0934dd31dd /lib
parent89b3262292a673c819935d6eae78cfaa642bb6f6 (diff)
downloadruby2d-aa41134d58b16b1fb88482865a80bb44eb9e1052.tar.gz
ruby2d-aa41134d58b16b1fb88482865a80bb44eb9e1052.zip
General tidying up
Diffstat (limited to 'lib')
-rw-r--r--lib/ruby2d/dsl.rb4
-rw-r--r--lib/ruby2d/window.rb22
2 files changed, 7 insertions, 19 deletions
diff --git a/lib/ruby2d/dsl.rb b/lib/ruby2d/dsl.rb
index ef8f384..93fedb3 100644
--- a/lib/ruby2d/dsl.rb
+++ b/lib/ruby2d/dsl.rb
@@ -1,10 +1,6 @@
# dsl.rb
module Ruby2D::DSL
- def hello
- puts "hi"
- end
-
def get(sym)
Ruby2D::Application.get(sym)
end
diff --git a/lib/ruby2d/window.rb b/lib/ruby2d/window.rb
index 299a1dd..5889c5d 100644
--- a/lib/ruby2d/window.rb
+++ b/lib/ruby2d/window.rb
@@ -10,7 +10,6 @@ module Ruby2D
@fps_cap = fps
@fps = 60
@vsync = vsync
-
@objects = []
@keys = {}
@keys_down = {}
@@ -20,20 +19,13 @@ module Ruby2D
def get(sym)
case sym
- when :window
- return self
- when :title
- return @title
- when :width
- return @width
- when :height
- return @height
- when :fps
- return @fps
- when :mouse_x
- return @mouse_x
- when :mouse_y
- return @mouse_y
+ when :window; self
+ when :title; @title
+ when :width; @width
+ when :height; @height
+ when :fps; @fps
+ when :mouse_x; @mouse_x
+ when :mouse_y; @mouse_y
end
end