Just some small fixes for my convenience.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1698 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
groogy 2010-11-23 15:00:23 +00:00
parent 7178d7bfcf
commit dbd8795df8
4 changed files with 20 additions and 42 deletions

View file

@ -2,7 +2,8 @@ require 'sfml/system'
require 'sfml/window'
require 'sfml/graphics'
app = SFML::RenderWindow.new( [800, 600], "My Ruby SFML" )
app = SFML::RenderWindow.new
app.create( [800, 600], "My Ruby SFML" )
app.framerate = 100
app.position = [300, 300]
input = app.input
@ -16,9 +17,8 @@ while app.open?
end
end
app.clear
shape.position = [input.mouseX, input.mouseY]
app.draw shape
app.draw shape
app.display
end