Production of baby dress-up games
By emilmatthew 06/04/15
First, the Friendly reminder: This article is suitable for beginners.
Recently, some netizens emailed me to ask me how to do a game such as the MM game. I thought about it. Let's simply do it.
I am going to create a demo program for the baby dress-up.
First, you need to take a Q-a photo of your baby.
Then, you need to process a hat and make sure it has different colors (very simple ).
Name the hats of different colors cap1 and cap2.
The rest is to write code like this.
_ Root. cap1.onpress = function (): void
{
This. startdrag (true );
}
_ Root. cap1.onrelease = function (): void
{
This. stopdrag ();
}
_ Root. cap2.onpress = function (): void
{
This. startdrag (true );
}
_ Root. cap2.onrelease = function (): void
{
This. stopdrag ();
}
When you change a lot of clothes, you only need to copy-paste.
I personally think that the key to this kind of game is the art, especially to attract the eyes of MM people ~~~~
Source File Download:
Http://emilmatthew.51.net/EmilPapers/06_13baobao/code.rar
If you cannot directly click to download (or browse), paste the downloaded (or browsed) hyperlink to the address bar of the browser (myie or greenbor.pdf is recommended) and press Enter. in case of any exceptions, you should be able to download it now.
For details, refer:
Http://blog.csdn.net/EmilMatthew/archive/2006/04/08/655612.aspx