Skip to content

Instantly share code, notes, and snippets.

@unaunagi
Last active December 22, 2015 11:39
Show Gist options
  • Save unaunagi/6467162 to your computer and use it in GitHub Desktop.
Save unaunagi/6467162 to your computer and use it in GitHub Desktop.
豆腐プログラミング Code on Rmake編
game.on_init do
scene_change :start_scene
end
scene :start_scene do |s|
s.on_init do
sp = s.sprite :position => [100, 100] #スプライトの作成と、表示位置の指定
sp.set_color 255, 255, 255, 255 #スプライトの色を白(不透明)に設定
sp.set_dest_size 50, 50 #スプライトの大きさを縦横50ピクセルに指定
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment