2014-10-22から1日間の記事一覧

Luaレッスン「オブジェクト・クラス」(番外編)

-- http://inspired-lua.org/index.php/2011/05/5-object-classes/ に紹介されているスクリプトを実行してみた Shape = class() --Shapeクラスを作成function Shape:init(x, y, image) -- 初期化。(左上角の座標, 画像ハンドル)。 self.xpos = x self.ypos…