[docs] better words
This commit is contained in:
parent
2f479ba30a
commit
0a723777ed
2 changed files with 49 additions and 25 deletions
|
@ -12,14 +12,35 @@ You may also download the sourcecode as a `zip
|
|||
<http://github.com/vrld/SUIT/zipball/master>`_ or `tar
|
||||
<http://github.com/vrld/SUIT/tarball/master>`_ file.
|
||||
|
||||
Using `Git <http://git-scm.com>`_, you can clone the project by running::
|
||||
Otherwise, use `Git <http://git-scm.com>`_::
|
||||
|
||||
git clone git://github.com/vrld/SUIT
|
||||
|
||||
Once done, you can check for updates by running::
|
||||
Update::
|
||||
|
||||
git pull
|
||||
|
||||
Hello, Suit::
|
||||
|
||||
suit = require 'suit'
|
||||
|
||||
local show_message = false
|
||||
function love.update(dt)
|
||||
-- Put a button on the screen. If hit, show a message.
|
||||
if suit.Button("Hello, World!", 100,100, 300,30).hit then
|
||||
show_message = true
|
||||
end
|
||||
|
||||
-- if the button was pressed at least one time, but a label below
|
||||
if show_message then
|
||||
suit.Label("How are you today?", 100,150, 300,30)
|
||||
end
|
||||
end
|
||||
|
||||
function love.draw()
|
||||
suit.draw()
|
||||
end
|
||||
|
||||
|
||||
Read on
|
||||
-------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue