summaryrefslogtreecommitdiffhomepage
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
parent89b3262292a673c819935d6eae78cfaa642bb6f6 (diff)
downloadruby2d-aa41134d58b16b1fb88482865a80bb44eb9e1052.tar.gz
ruby2d-aa41134d58b16b1fb88482865a80bb44eb9e1052.zip
General tidying up
-rw-r--r--README.md2
-rw-r--r--ext/ruby2d/extconf.rb2
-rw-r--r--lib/ruby2d/dsl.rb4
-rw-r--r--lib/ruby2d/window.rb22
4 files changed, 9 insertions, 21 deletions
diff --git a/README.md b/README.md
index ee012a8..13009fa 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@ Ruby 2D uses a combination of automated tests via [RSpec](http://rspec.info) and
## Preparing a Release
-1. Update the minimum Simple 2D version required in [extconf.rb](ext/ruby2d/extconf.rb)
+1. Update the Simple 2D minimum version required in [extconf.rb](ext/ruby2d/extconf.rb)
2. Run tests on all supported platforms
3. Update the version number in [`version.rb`](lib/ruby2d/version.rb), commit changes
4. Create a [new release](https://github.com/ruby2d/ruby2d/releases) in GitHub, with tag in the form `v#.#.#`
diff --git a/ext/ruby2d/extconf.rb b/ext/ruby2d/extconf.rb
index d4c620f..ac9d521 100644
--- a/ext/ruby2d/extconf.rb
+++ b/ext/ruby2d/extconf.rb
@@ -1,6 +1,6 @@
require 'mkmf'
-S2D_VERSION = '0.2.1' # Simple 2D version required
+S2D_VERSION = '0.2.1' # Simple 2D minimum version required
$errors = []
class String
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