Example #1
0
        public Sprite(View context, Entity e, Vector2 drawSize, int frameWidth, int frameTime, string spriteStripName)
        {
            this.context = context;
            this.e = e;
            this.entityID = e.id;
            this.drawSize = drawSize;

            setAnimationSpriteStrip(frameWidth, frameTime, spriteStripName);
        }
 public DefaultLevelSprite(View context, DefaultLevel dl)
     : base(context,  dl, new Vector2(2400, 1000), 645, 10, "defaultlevel")
 {
 }
 public FinishLineEntitySprite(View context, FinishLineEntity finishLine)
     : base(context, finishLine, new Vector2(2, 1), 1, 10, "redsquare")
 {
 }
Example #4
0
 public TestWallSprite(View context, TestWall tm)
     : base(context, tm, new Vector2(2, 1), 1, 10, "blacksquare")
 {
 }
 public SpawnPointSprite(View context, SpawnPointEntity tm)
     : base(context,  tm, new Vector2(21, 21), 21, 10, "whitecrosshair")
 {
 }
Example #6
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public GameplayScreen(GameClient gb)
        {
            game = gb;

            context = new View(gb.GameState, gb.GetPlayerEntity());
        }