mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
Added a capped frame rate at 100 to demonstrate that the library also supports ruby-style methods.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1650 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
07dd3de1d2
commit
53621f0726
@ -2,6 +2,7 @@ require 'sfml/system'
|
|||||||
require 'sfml/window'
|
require 'sfml/window'
|
||||||
|
|
||||||
app = SFML::Window.new( SFML::VideoMode.new( 800, 600 ), "My Ruby SFML" )
|
app = SFML::Window.new( SFML::VideoMode.new( 800, 600 ), "My Ruby SFML" )
|
||||||
|
app.framerate = 100
|
||||||
input = app.input
|
input = app.input
|
||||||
|
|
||||||
while app.open?
|
while app.open?
|
||||||
|
Loading…
Reference in New Issue
Block a user