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

クラスを使う 3, 複数のオブジェクトを tab キーで巡廻する

-- 複数のオブジェクトを tab キーで巡廻する。 -- 参考: http://compasstech.com.au/TNS_Authoring/Scripting/script_tut14.html require "color" TrackedObject = nil Square = class() function Square:init(x, y, sideLen, color) self.x = x self.y = y…