예제 #1
0
        private SpikeBlock CreateSpikeBlock(XElement node)
        {
            SpikeBlock newSpikeBlock = new SpikeBlock();

            newSpikeBlock.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y")) +
                                          (new Vector2(Definitions.Grid_Cell_Pixel_Size) / 2.0f);

            return(newSpikeBlock);
        }
예제 #2
0
        private SpikeBlock CreateSpikeBlock(XElement node)
        {
            SpikeBlock newSpikeBlock = new SpikeBlock();
            newSpikeBlock.WorldPosition = new Vector2((float)node.Attribute("x"), (float)node.Attribute("y")) +
                (new Vector2(Definitions.Grid_Cell_Pixel_Size) / 2.0f);

            return newSpikeBlock;
        }