Game Dev Show 15 - Building a Windows 10 (or Xbox) Game with Win2D, C# and XAML

Play Game Dev Show 15 - Building a Windows 10 (or Xbox) Game with Win2D, C# and XAML

The Discussion

  • User profile image

    Great video!

    I would like to ask for a bit of help though. I have a problem that I'm dealing with here, while building a 2D game. I'm fairly new to Win2D, only been using it for a month or so, so with that in mind, is there any way to animate a single sprite based on the png stripe image of different positions of the sprite? When my sprite moves forward, I want to use let's say a stripe of 8 graphical positions of that player. I have the Canvas_AnimatedControl up and running and I have loaded the asset in the async createresources method, but I have no clue how to proceed in order to "play" that single animation which I need. I am only able to draw a single "new Rect" based static 2D image.

    Any help would be greatly appreciated! :)

  • User profile image

    @Vito: The best place to ask questions and raise issues is on GitHub. This is where the team and other community members are actively helping developers. I encourage you to submit your question there:

    In the meantime, the spritesheet demo in the example gallery would be your best bet as to how to animate via spritesheets. The wizard in that sample has two spritesheet-based animations (walking & idle), and there is also a spritesheet for the environment. You can get the source code at, and this example is in the UAP project (not the shared project).

Add Your 2 Cents