summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ruby2d/window.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ruby2d/window.rb b/lib/ruby2d/window.rb
index a56e8d5..3f5dd1a 100644
--- a/lib/ruby2d/window.rb
+++ b/lib/ruby2d/window.rb
@@ -8,6 +8,7 @@ module Ruby2D
@width, @height, @title = width, height, title
@mouse_x = @mouse_y = 0
@fps_cap = fps
+ @fps = 0
@vsync = vsync
@objects = []
@@ -27,6 +28,8 @@ module Ruby2D
return @width
when :height
return @height
+ when :fps
+ return @fps
when :mouse_x
return @mouse_x
when :mouse_y