Skip to content

Instantly share code, notes, and snippets.

@narumitukasa
Created December 21, 2016 22:47
Show Gist options
  • Save narumitukasa/32b2a1565e1b5e722aec6fe1f60c6e17 to your computer and use it in GitHub Desktop.
Save narumitukasa/32b2a1565e1b5e722aec6fe1f60c6e17 to your computer and use it in GitHub Desktop.
領域を広げて表示をシフトする
#文字用の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