Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

bggd/mruby-minigame-bmfont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mruby-minigame-bmfont

mruby-minigame-bmfont is a mruby-minigame extention that supports draw a bitmap font.

The extention can import a text(.fnt) of angelcode's BMFont format with 32bit depth png.

Dependencies:

  • mruby-minigame
  • mruby-io
  • mruby-hs-regexp

Testing Platforms:

  • Ubuntu 13.10
  • Windows 7 + MinGW

Example

include Minigame

Display.create 640, 480

fnt = BMFont.load("bmfont.fnt")

Gameloop.draw do
  Display.clear
  
  fnt.draw(Display.w/2, Display.h/2, "Hello World", 'align' => :center)
end

Gameloop.run

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published