Skip to content

icela/FriceEngine-Ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published