From 3a5718d4ab0d9f726686c601579a4c586a65e269 Mon Sep 17 00:00:00 2001 From: Andy Date: Fri, 30 Aug 2019 11:01:15 -0400 Subject: Added IdleFunc components to entities, this will be assigned to all entities no matter what, even if the idle func is empty --- Scripts/init.lua | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'Scripts') diff --git a/Scripts/init.lua b/Scripts/init.lua index 3ec4618..851c180 100644 --- a/Scripts/init.lua +++ b/Scripts/init.lua @@ -1,15 +1,3 @@ ---Player = entityx.manager:new() ---function Player:init(o) --- o = o or {} --- self.position = self:component("Position", o.position or {0, 0}) ---end --- ---p = Player:instance({position = {10, 20}}) ---p.position.x(5) ---print(p.position.x(), p.position.y()) - ---p = comp:Position(6.5, 2.3) - bird = { Position = { x = 1.2, -- cgit v1.2.3