public void Draw2DModel(Thing2D c)
        {
            spriteBatch.Begin();

            spriteBatch.Draw(c.objectTexture, c.objectPosition, Color.White);
            spriteBatch.End();
        }
 public SpatialTrigger(BoundingBox on, BoundingBox off, bool useBoxOff, Thing2D trigger)
 {
     m_onBox = on;
     m_offBox = off;
     m_useBoxOff = useBoxOff;
     Trigger = trigger;
 }
        public void DrawScaled2DModel(Thing2D c)
        {
            spriteBatch.Begin();

            spriteBatch.Draw(c.objectTexture, c.objectPosition, null, Color.White, 0f, Vector2.Zero,
                             c.scale, SpriteEffects.None, 0f);
            spriteBatch.End();
        }
Exemple #4
0
 public void SetCameraSubject(Thing2D _subject)
 {
     m_camera.CameraSubject = _subject;
 }
 public SpatialTrigger(BoundingBox box, Thing2D trigger)
     : this(box, null, false, trigger)
 {
 }