サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
Pixel 9
mon-ouie.github.io
Introduction Ray is a library to write games in Ruby. It uses a DSL meant to be fun to use. Here’s, for example, a “Hello world” written using Ray: require 'ray' Ray.game "Hello world!" do register { add_hook :quit, method(:exit!) } scene :hello do @text = text "Hello world!", :angle => 30, :at => [100, 100], :size => 30 render { |win| win.draw @text } end scenes << :hello end And this is not all
このページを最初にブックマークしてみませんか?
『mon-ouie.github.io』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く