Skip to content

bggd/mruby-minigame

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
 
 
 
 
src
 
 
 
 
 
 
 
 

mruby-minigame

mruby-minigame is a 2D game framework for rapid prototyping.

example:

include MiniGame

Display.create 640, 480

img = Image.load 'hero.png'

GameLoop.key_pressed do |key|
  if key == Key::ESCAPE
    GameLoop.quit
  end
end

GameLoop.draw do
  Display.clear [32, 64, 128] # or Display.clear(Color.rgb(32, 64, 128))
  
  img.draw Mouse.x, Mouse.y
  
  Graphics.rect 100, 100, 32, 32, Color.hsv(360.0, 1.0, 0.5)
end

# start game loop.
GameLoop.run

This mruby extension(mrbgem) require Allegro 5.1.12 or higher(currently tested in Windows 10 with visual studio 2015).

For more information at Wiki.

About

2D game framework for rapid prototyping

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published