I have been learning silverlight1.0 these days.
I learned about the basic development environment and configuration of silverlight1.0. It seems quite interesting.
After reading the SDK documentation for four days, I decided to create a Chinese chess game by myself, so I had the following development flowchart.
First day: Barely adapted to blend, this tool is still very useful. Let's see if I have a three-dimensional design of the pawns. This is not an image of others, but an image described by Xmal.
This is the next day. All the pawns are placed on the chessboard. These pawns do not exist in the original Xmal file, but start thisProgramLater, use JSCodeDynamically added. In this way, the original Xmal file can be much simpler and more compact. More importantly, it saves more trouble :)
In the third day, it is worthwhile to spend two days designing the UI. At least I think it is pretty. On the third day, I started to write the program logic with JS Code. As you can see, the green point indicates that the "gun" can go through the grid.
I am not used to writing JS Code for the first time. Especially, it is quite awkward to use js to implement the rule judgment process designed according to the idea of C. So far, I have not understood how to use polymorphism to dynamically bind code, and finally implement it with enough code.
The following are v0.1 versions:
The program is relatively simple, that isTwo players play chess in turn. To move a pawn, You need to click the mouse and drag it to the desired position and then open the mouse..
During this development process, I learned a lot. What impressed me the most is the design of the program interface and the writing of the Program Logic JS Code.
If you are interested, you can download the program and install silverlight2.0 runtime(betatime). You can also click default.html (to run in IE ).
There are two more questions:
- After the silverlight1.0 Program (based on JS) is released, it is basically equal to open source. Is there a way to protect it?
- The silverlight1.0 program does not seem to support Chinese display, but it is enough to install the 2.0 runtime. Is this a 1.0 bug?
Hope you can get answers from audience members. Thank you.