Esempio n. 1
0
        public Spike(Vector2 _position, bool used = true, int _Width = 32, int _Height = 32)
        {
            m_size     = new Vector2(_Width, _Height);
            m_position = _position;

            m_texture = SpritePack.GetSingleton().GetTexture("Spike");
        }
Esempio n. 2
0
 public SpritePack(GraphicsDevice _graphics, ContentManager _contents)
 {
     m_Instance         = this;
     m_Textures         = new Dictionary <string, Texture2D>();
     m_RegisteredDevice = _graphics;
     m_ContentManager   = _contents;
 }
Esempio n. 3
0
 protected override void Initialize()
 {
     spritePack = new SpritePack(GraphicsDevice, Content);
     base.Initialize();
 }