• 0

[C#] Fill it! game type problem


Question

Hi,

I'm new on your forum and quite new in C#, and I have problem with my little game project.

I must make a simple game where you move a little object, which draws a line on the route it moves. After it touches a border of game board it must fill this shape which was draw.

My problem is that I don't have any idea in what should I do my board, how can I fill up random shapes made by lines + board of game board.

Idea of game is from this LINK

I need your ideas of:

-how make a board - it should be Picturebox or something else?

-how to make shapes from lines draw and connected to it existing lines of board or another existing and filled up shapes on board - it's some kind of vectors?

Sorry for my English mistakes in my post.

Thanks in advance

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

If you want to program games in C#, while you could do it with Windows Forms, C# has its own dedicated game framework, called XNA. It's a separate download, it adds itself to Visual Studio and then you can create projects of type "Windows Game". There are lots of good tutorials for XNA, for instance riemers.net. Once you get the hang of it, it's a lot more convenient for game programming than trying to do it using WinForms.

The problem you describe is certainly not trivial to do even with XNA. There are no facilities for drawing lines and filling arbitrary shapes with colors, you'd have to implement that yourself using textures. I suggest you ask these questions on the XNA forums if you get stuck.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.