Sha256: 1cd9401e54ee6fc33be45f41a93492cdbb4b982a70839b00bfe953b25276b2e8

Contents?: true

Size: 312 Bytes

Versions: 16

Compression:

Stored size: 312 Bytes

Contents

# -*- coding: utf-8 -*-
# http://dxruby.sourceforge.jp/DXRubyReference/2009610612281.htm
require 'dxruby'

image = Image.load('data.png')  # data.pngを読み込む

Window.loop do
  Window.draw(100, 100, image)  # data.pngを描画する
  if Input.keyPush?(K_ESCAPE)   # Escキーで終了
    break
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dxruby_sdl-0.0.17 samples/tutorial-2-08.rb
dxruby_sdl-0.0.16 samples/tutorial-2-08.rb
dxruby_sdl-0.0.15 samples/tutorial-2-08.rb
dxruby_sdl-0.0.14 samples/tutorial-2-08.rb
dxruby_sdl-0.0.13 samples/tutorial-2-08.rb
dxruby_sdl-0.0.12 samples/tutorial-2-08.rb
dxruby_sdl-0.0.11 samples/tutorial-2-08.rb
dxruby_sdl-0.0.10 samples/tutorial-2-08.rb
dxruby_sdl-0.0.9 samples/tutorial-2-08.rb
dxruby_sdl-0.0.8 samples/tutorial-2-08.rb
dxruby_sdl-0.0.7 samples/tutorial-2-08.rb
dxruby_sdl-0.0.6 samples/tutorial-2-08.rb
dxruby_sdl-0.0.5 samples/tutorial-2-08.rb
dxruby_sdl-0.0.4 samples/tutorial-2-08.rb
dxruby_sdl-0.0.3 samples/tutorial-2-08.rb
dxruby_sdl-0.0.2 samples/tutorial-2-08.rb