Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dxruby_sdl

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dxruby_sdl

  • 0.0.17
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

dxruby_sdl

Gem Version Build Status Coverage Status Dependency Status Code Climate

dxruby_sdl is a ruby library for 2D graphics and game. It has same DXRuby API. It use SDL/Ruby.

Installation

SDL, SGE, etc...

Mac OS X

(1) SDL

with MacPorts.

$ sudo port install libsdl libsdl_image libsdl_mixer libsdl_sound libsdl_ttf

with Homebrew

# update homebrew
$ brew update
$ brew upgrade
$ brew doctor

# install sdl etc.
$ brew install sdl
$ brew install sdl_image
$ brew install sdl_mixer
$ brew install sdl_ttf

(2) SGE

$ curl -O http://www.digitalfanatics.org/cal/sge/files/sge030809.tar.gz
$ tar xvzf sge030809.tar.gz
$ cd sge030809
$ curl https://gist.github.com/steved555/963525/raw/7b638e4100f9dd1a9d00560b98ea2ddd4375b2b0/sge_030809_freetype.patch | patch
$ curl https://gist.github.com/steved555/963524/raw/c03396e1fb8bb87e9f4ba92597d087f730c6c48b/sge_030809_cmap.patch | patch
$ curl https://gist.github.com/steved555/963522/raw/5b277a0a6b08a1c077fbe2c96eead4ef1d761856/sge-030809-build.patch | patch
$ sed -i -e 's/-soname/-install_name/g' Makefile
$ make
$ sudo make install

with Homebrew

$ brew install https://gist.githubusercontent.com/ymmtmdk/5b15f2b06aef5549eb5a/raw/ebf4c9758b1f772f0f6073e7b2bdbb5e9665ee74/libsge.rb

(3) Ume-font

DXRuby's default font is MS P Gothic, so if you want to same look on windows, you should install MS P Gothic. However MS-font is not free.

Ume-font is same width MS-font (MS P Gothic, MS P Mincho, etc.) and it's free.

Download from https://ja.osdn.net/projects/ume-font/wiki/FrontPage and install.

Linux
$ sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev timidity libsdl-ttf2.0-dev libsdl-sge-dev fonts-horai-umefont fonts-ipafont

dxruby_sdl

Add this line to your application's Gemfile:

gem 'dxruby_sdl'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dxruby_sdl

Usage

see http://dxruby.sourceforge.jp/ (in Japanese).

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 29 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc