Search code examples
c#soundplayer

Create an array images to make movement in C#


How to create movement in C# with images? Now I am creating a snake game. Snake is made by 3 parts: head, body and tail. How to link three parts and make movement smoth? Thank you so much


Solution

  • You can use standard .NET System.IO method File.Exists(path) as explained in MSDN documentation online: https://msdn.microsoft.com/en-us/library/system.io.file.exists%28v=vs.110%29.aspx .

    Also useful can be multiple System.IO Path methods (re: https://msdn.microsoft.com/en-us/library/system.io.path_methods%28v=vs.110%29.aspx).

    Hope this may help. Kind regards,