WPF controls needed to build chess application

前端 未结 4 1145
野的像风
野的像风 2020-11-30 06:19

I am trying to build a chess application. I have the backend logic in place (almost). But I havent worked much on UIs. I plan to use C# and I hear WPF is the way to go.

4条回答
  •  我在风中等你
    2020-11-30 07:04

    1. Design the canvas and decide how much size you will give to the board or how much to the scoring area or players name or any other additional information you want to show during the game.

    2. Design coin's images, and board background image

    3. Now set up the scene, you should have an individual class for graphics. It would be easier to update it and handle it (Its up to you that how you write it).

    4. Create a class for animation, that how an image will move on a particular action.

    5. Create an individual class for sounds if you plan to use.

    6. Create another class containing the game logic

    7. One more class you will need for the player

    After doing them, its all up to your logic that how you handle them all.

    A link is here, its on vb.net but you can get an idea of designing the UI.

提交回复
热议问题