Пример #1
0
        public static Entity Create()
        {
            var e   = GameFactory.CreateThing(ThingType.HERO, true);
            var tc  = e.GetComponent <ThingComp>();
            var tcc = e.GetComponent <ThingControlComp>();

            tc.IsCollisionFree = false;
            tc.Velocity        = 1.5f;
            tcc.PushingForce   = 10f; // force higher than companions.
            e.AddComponent(GameFactory.CreateColorCycling(4f, Color.DarkGoldenrod, new Color(230, 210, 10)));
            return(e);
        }