Skip to content
bggd edited this page Nov 16, 2013 · 24 revisions

API

Getting Started

Allegro 5 install

Ubuntu:

sudo apt-get install liballegro5.0 liballegro5-dev

Windows:

download binary from https://www.allegro.cc/files or http://targonski.nazwa.pl/thedmd/allegro

Build mruby-minigame

Ubuntu:

Edit your build_config.rb

  conf.gem :github => 'bggd/mruby-minigame'

Build mruby

rake

Windows

Edit your build_config.rb

  conf.gem :github => 'bggd/mruby-minigame'

  conf.cc.include_paths << 'allegro 5 include folder'
  conf.linker.library_paths << 'allegro 5 lib folder'
  conf.linker.libraries << %w(allegro-5.0.10-monolith-md)

We recommend a release build on a your game distributing. example:

  conf.cc.cflags = [ENV['CFLAGS'] || %w(/c /nologo /W3 /MD /O2 /DHAVE_STRING_H /DNO_GETTIMEOFDAY /D_CRT_SECURE_NO_WARNINGS)]

Build mruby

rake

Make sure add allegro 5 dll to bin folder.

Clone this wiki locally