RubyBasic installer and executer
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib/kokuban
test
.gitignore
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
kokuban.gemspec

README.md

rubykokuban-gem

RubyKokuban installer and executer.

RubyKokuban?

You can write interactive applications be simplified by RubyKokuban.

def draw
  text 'Hello, rubykokuban!', 100, 100
  circle 350, 100, 50
end

hello-demo

To move the circle is very simple.

def setup
  set_window_size 480, 240
  @x = 0
end

def update
  @x += 1
end

def draw
  text 'Hello, rubykokuban!', 100, 100
  circle @x, 100, 50
end

move-demo

Sample code of drawing and shooting.

drawing-demo

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 350, 100, 50
end

Execute script

$ kokuban exec hello.rb

Very, Very, Useful Hotkey

  • Ctrl+R (Be careful, not ⌘+R) - Reload script

Sample Code

rubykokuban-sample

$ 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 with 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

Special Thanks