Created
June 15, 2017 09:09
-
-
Save vivit-jc/e760e7fd4e5c14974b4e2ab2c85080d0 to your computer and use it in GitHub Desktop.
DXRuby draw_tileサンプル
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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