Make Ruby/Tk terrible again!
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.
doc
src
test
.gitignore
LICENSE
README.md
run_demo.cmd

README.md

FriceEngine on Ruby/tk

Ruby edition of frice engine is a little different from others(JVM/CLR).

It's based on Tk, so it might be a little sluggish 😂.

Double buffer implemented.

Use

require_relative '../src/engine'

class Demo < Game
	def on_init
		# initialize
	end

	def on_last_init
		shape = ShapeObject.new 'rect', 1, 1, 100, 100
		shape.color = 'red'
		text = SimpleText.new 10, 10, 'The deep dark fantasy'
		image = ImageResource.from_file 'fork_you.gif'
		image_o = ImageObject.new image, 300, 300
		add_object shape text image_o
	end
	def on_refresh
	end
end

Demo.new

Contributors