Esempio n. 1
0
        public static GameEntity CreateOreVein(GameContext context, Vector2 pos)
        {
            var e = context.CreateEntity();

            e.AddPrefab("Prefabs/Ore/ore_vein");
            e.AddPosition(pos);

            e.isOre      = true;
            e.isOreVein  = true;
            e.isKillable = true;

            e.isOnGround      = true;
            e.isMouseListener = true;
            e.isCollideable   = true;

            var pieces = StatCalculator.CalculateAsInt(OrePieces, 1);

            e.AddHealth(pieces, pieces);
            return(e);
        }