Created
December 21, 2016 22:47
-
-
Save narumitukasa/32b2a1565e1b5e722aec6fe1f60c6e17 to your computer and use it in GitHub Desktop.
領域を広げて表示をシフトする
This file contains 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
#文字用のimageを作成 | |
@entity.dispose if @entity and !(@entity.disposed?) | |
@entity = DXRuby::Image.new(@width+64, @height+64, [0, 0, 0, 0]) | |
self.offset_sync = true | |
self.center_x = 32 | |
self.center_y = 32 | |
#フォントを描画 | |
@entity.draw_font_ex( offset_x+32, | |
offset_y+32, | |
@char, | |
@font_obj, | |
@font_draw_option) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment