Skip to content

Instantly share code, notes, and snippets.

@vivit-jc
Created June 15, 2017 09:09
Show Gist options
  • Save vivit-jc/e760e7fd4e5c14974b4e2ab2c85080d0 to your computer and use it in GitHub Desktop.
Save vivit-jc/e760e7fd4e5c14974b4e2ab2c85080d0 to your computer and use it in GitHub Desktop.
DXRuby draw_tileサンプル
map = [
[0,0,0,0,0],
[0,0,0,0,0],
[0,0,0,2,0],
[0,0,2,2,2],
[1,1,1,1,1]
]
image_array = [
Image.load( "aa.png" ),
Image.load( "bb.png" ),
Image.load( "cc.png" )
]
Window.draw_tile(base_x, base_y, map, image_array, start_x, start_y, size_x, size_y, z=0)
#参考 http://mirichi.github.io/dxruby-doc/api/Window_draw_tile.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment