Skip to content

ongaeshi/rubykokuban-gem

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

RubyBasic installer and executer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages