Пример #1
0
 public SnakeHead(Game game, IRenderItemFactory factory)
     : base(game, factory, new Vector2I(0, 0))
 {
     Direction = Game.Rules.SnakeStartDirection;
     direction = Direction;
     Position = Game.Rules.SnakeStartPosition;
     RenderItem = factory.CreateRenderItem(RenderItemType.SnakeHead);
 }
Пример #2
0
 public Treat(Game game, IRenderItemFactory factory, Vector2I position)
     : base(game, factory, position)
 {
     RenderItem = factory.CreateRenderItem(RenderItemType.Treat);
 }
Пример #3
0
 public SnakeBody(Game game, IRenderItemFactory factory, Vector2I position)
     : base(game, factory, position)
 {
     RenderItem = factory.CreateRenderItem(RenderItemType.SnakeBody);
 }
Пример #4
0
 public SpeedPowerup(Game game, IRenderItemFactory factory, Vector2I position)
     : base(game, factory, position)
 {
     RenderItem = factory.CreateRenderItem(RenderItemType.SpeedPowerup);
 }