2016-02-24から1日間の記事一覧

クラスを使う 2, 包含判定をする

-- 包含判定をする。 -- 参考: http://compasstech.com.au/TNS_Authoring/Scripting/script_tut11.html require "color" Square = class() -- Square クラスを作る。 function Square:init(x, y, width, height) self.x = x self.y = y self.width = width s…