views:

58

answers:

2

I want to create a game. Backgammon. i used to design my nuts and board in photoshop. i saved nut as png. and board as jpg. for per that i have in game i created a picture box , and i bound png picture to that. i know that this way is not correct. please give me tips and guidelines.


seems my question is too general. i change my question. What element do I replace instead of pictureboxes? what is the way for moving nuts? for good performance and memory usage. i putted my board in a panel and panel's Dock is fill in my form. but i know its not correct to put 30 picture boxes in form and moving them. my game is 2d. my challenge is to keeping nuts and moving them. better way that using pictureboxes

+1  A: 

Moving PictureBoxes around does work, especially for a game like backgammon where things aren't moving all the time or moving very quickly.

The other "simple" way to do it is to make one big canvas, and override the onPaint event to manually draw in the images using the Graphics object (or something like that, it's been a while).

Otherwise, for more complex games, you'd want to get into having a 3D canvas to take advantage of hardware acceleration for graphics and such.

erjiang
thank you.i putted my board in a panel and panel's Dock is fill in my form.but i know its not correct to put 30 picture boxes in form and moving them.my game is 2d.my challenge is to keeping nuts and moving them.better way that using pictureboxes.
shaahin
+1  A: 

I Created Nice photoshop Template. i did import the template to Expression Blend. and now i am going to Make Usercontrol for NUT and Dice. thanks all.

shaahin