rubykokuban-gem
RubyKokuban installer and executer.
RubyKokuban?
You can write interactive applications be simplified by RubyKokuban.
def draw
text 'Hello, rubykokuban!', 100, 100
circle 300, 100, 50
end
To move the circle is very simple.
def setup
@x = 0
end
def update
@x += 1
end
def draw
text 'Hello, rubykokuban!', 100, 100
circle @x, 100, 50
end
Sample code of drawing and shooting.
Installation
$ gem install kokuban
Usage
Install RubyKokuban.app
$ kokuban install --latest
Installed?
$ kokuban list
osx (0.0.3)
Write a code
def draw
text 'Hello, rubykokuban!', 100, 100
circle 300, 100, 50
end
Execute script
$ kokuban exec hello.rb
Very, Very, Useful Hotkey
- Ctrl+R (Be careful, not ⌘+R) - Reload script
Sample Code
$ git clone https://github.com/ongaeshi/rubykokuban-sample
$ cd rubykokuban-sample
$ kokuban exec mouse-shooting.rb
Platform
- osx
- win
- linux
- ios
- android
Features
- It's made width mruby + openFrameworks.
- Not a library. It's an application that move independently.
- Benefits that can be expected.
- Run on multiple platforms the same code
- Run in the mobile device as well as PC
- Hide the code together in the binary file