Carbuncle Logo

Carbunclebeta

Game Engine

A Game library build with MRubyRaylib and more as a base for developing games while having fun across multiple platforms.

Downloads

Windows Builds

Loading...

OS X Builds

Loading...

Linux Builds

Loading...

Web Builds

Loading...

 An Open Source Framework

Completeley Open Source, and free to use.

 Out of the Box

Contains many features including graphics, audio, input, networking and GUI!

 Cross Platform

Works on Windows, Mac OSX and Linux with planned iOS and Android support.

 Web Support

Deploy it as a website without much effort thanks to Emscripten.

Quick examples

Hello World

include Carbuncle

class Example < Game
  def load
    @text = Text.new
    @text.value = 'Hello World'
    self << @text # 'add_child @text' also works
  end
end

Drawing an Image

include Carbuncle

class Example < Game
  def load
    texture = Texture.new('img/carbuncle.png')
    @sprite = Sprite.new(texture)
    @sprite.position.set(center)
    @sprite.pivot.set(0.5, 0.5)
  end

  def draw
    @sprite.draw
  end

  def center
    Point.new(
      screen.width / 2,
      screen.height / 2
    )
  end
end

Playing music and sound

include Carbuncle

class Example < Game
  def load
    Audio.music_play 'bgm/awesome.ogg'
    @sound = Sound.new('sfx/click.wav')
    @music.play
  end

  def update(dt)
    super(dt)
    @sound.play if Keyboard.press?(:space)
  end
end

Check out more examples in the Examples subdirectory