Nagging
Before the school's WP course big homework need to make several WP applications, so handy to write a few games.
Now available, share it with everyone.
"Small Game Directory"
Crazydodge
Paperplane
Sudoku
"Crazydodge"
0. Source code
Https://github.com/shahdza/Cocos_CrazyDodge
1. Development environment
> Language: C + +
> Engine version: Cocos2d-x v3.2
> UI Editor: Cocos Studio 1.6.0
> Physics Engine: Cocos Package
2. WP app has been sent to the App Store
http://www.windowsphone.com/zh-cn/store/app/crazydodge/3c4cf129-209f-4bb6-8a82-8bb85668a698
3. Code structure
Game code Amount: About 1000 lines.
The class tries as follows:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/81/wKiom1UKab7xVVg_AACRESGOXpQ792.jpg "title=" 1.png " alt= "Wkiom1ukab7xvvg_aacresgoxpq792.jpg"/>
(1) Aboutscene: Game Help Interface class
(2) Appdelegate: Game Main Entrance class
(3) Gameoverscene: Game End Interface Class
(4) Gamescene: Game Interface class
(5) Helloscene: Game Boot Interface class
(6) Menuscene: Game Main Menu Interface class
(7) Optionsscene: Game Settings Interface class
4. Function description
This is a classic game to test the speed of reaction, there will be some objects in the space to move randomly, hit the wall and bounce back, and faster and faster. You need to be quick enough to move the ball so that it doesn't collide with other objects. How long can you hold on?
PS: The physical engine of the Cocos package is used in the game.
5.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/7B/wKioL1UKcALTVxrRAABfQDsS3cA863.jpg "title=" 11.png "alt=" wkiol1ukcaltvxrraabfqdss3ca863.jpg "/> 650" this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/81/ Wkiom1ukbxkw7uxlaabbd7zkaw8990.jpg "title=" 12.png "style=" Float:none; "alt=" wkiom1ukbxkw7uxlaabbd7zkaw8990.jpg "/ >
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/7B/wKioL1UKcD2wx2r6AABjA0RtrK8293.jpg "style=" float: none; "title=" 13.png "alt=" wkiol1ukcd2wx2r6aabja0rtrk8293.jpg "/> 650" this.width=650; "src=" http://s3.51cto.com/ Wyfs02/m01/5b/81/wkiom1ukbxpwrjwtaab4i90navy664.jpg "title=" 14.png "style=" Float:none; "alt=" Wkiom1ukbxpwrjwtaab4i90navy664.jpg "/>
"Paperplane"
0. Source code
Https://github.com/shahdza/Cocos_PaperPlane
1. Development environment
> Language: C + +
> Engine version: Cocos2d-x v3.2
> UI Editor: Cocos Studio 1.6.0
> Physics Engine: Cocos Package
2. WP app has been sent to the App Store
Http://www.windowsphone.com/zh-cn/store/app/paperplanes/0ee13ee4-7338-4876-ba30-e3913932e7e0
3. Code structure
Game Code Amount: about 800 rows or so.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/7B/wKioL1UKbITSaQUyAACPsT26ETI418.jpg "title=" 2.png " alt= "Wkiol1ukbitsaquyaacpst26eti418.jpg"/>
(1) Aboutlayer: Game Help Layer Class
(2) Appdelegate: Game Main Entrance class
(3) Gameoverlayer: Game End Layer Class
(4) Gamescene: Game Interface class
(5) Helloscene: Game Boot Interface class
(6) Menuscene: Game Main Menu Interface class
(7) Optionsscene: Game Settings Interface class
4. Function description
Touch the left half of the screen with your hand and the paper plane toward the left.
Touch the right half of the screen with your hand, and the paper plane is flying to the right.
PS: The physical engine of the Cocos package is used in the game.
5.
650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M02/5B/7B/ Wkiol1ukcowgzd9eaabyitf3gvu725.jpg "style=" Float:none; "title=" 11.png "alt=" wkiol1ukcowgzd9eaabyitf3gvu725.jpg "/ > 650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M01/5B/7C/ Wkiol1ukcoxy6gp7aaclrduqda0996.jpg "title=" 15.png "style=" Float:none; "alt=" wkiol1ukcoxy6gp7aaclrduqda0996.jpg "/
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/81/wKiom1UKb7rAcSRVAABbgVSdxho526.jpg "style=" float: none; "title=" 12.png "alt=" wkiom1ukb7racsrvaabbgvsdxho526.jpg "/> 650" this.width=650; "src=" http://s3.51cto.com/ Wyfs02/m00/5b/7c/wkiol1ukcoxalolsaab436fwszq410.jpg "title=" 13.png "style=" Float:none; "alt=" Wkiol1ukcoxalolsaab436fwszq410.jpg "/> 650) this.width=650; src=" http://s3.51cto.com/wyfs02/M00/5B/81/ Wkiom1ukb7vaaabuaabqekcqlhg960.jpg "title=" 14.png "style=" Float:none; "alt=" wkiom1ukb7vaaabuaabqekcqlhg960.jpg "/ >
"Sudoku"
0. Source code
Https://github.com/shahdza/Cocos_Sudoku
1. Development environment
> Language: C + +
> Engine version: Cocos2d-x v3.2
2. WP app has been sent to the App Store
http://www.windowsphone.com/zh-cn/store/app/sudokupuzzle/89392fa0-df7a-49df-86e6-9eb930006633
3. Code structure
Game code Amount: About 3500 line.
The class tries as follows:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/7B/wKioL1UKbrODy7tIAADGQRQwyKI658.jpg "title=" 3.png " alt= "Wkiol1ukbrody7tiaadgqrqwyki658.jpg"/>
(1) About: Game Help Interface Class
(2) Appdelegate: Game main Entrance class
(3) CHANGEBG: Replace the game background interface class
(4) Dancinglinks: algorithm classes for generating and processing Sudoku
(5)Game: Games Interface Class
(6) Gamemenu: Main Menu Interface class for game selection difficulty
(7) Gameover: Game End Interface Class
(8) Gamepause: Game Pause Interface Class
(9)Global: World Data class for games
(Ten) Hello: Game Boot Animation interface class
(one) menu: Game Main Menu Interface class
Rank: Game Leaderboard Interface Class
Shop: Game Store Interface class
4. Function Description
The classic Sudoku game, added props, so Sudoku is no longer tedious. Come and play!
5.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/7C/wKioL1UKcq7BIcBkAADTPjP6Up8462.jpg "style=" float: none; "title=" 1.png "alt=" wkiol1ukcq7bicbkaadtpjp6up8462.jpg "/> 650" this.width=650; "src=" http://s3.51cto.com/ Wyfs02/m00/5b/81/wkiom1ukcytzxkyaaadsefvbrw4753.jpg "title=" 2.png "style=" Float:none; "alt=" Wkiom1ukcytzxkyaaadsefvbrw4753.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/7C/wKioL1UKcq7RKspNAAEGC3TvwSk133.jpg "style=" float: none; "title=" 3.png "alt=" wkiol1ukcq7rkspnaaegc3tvwsk133.jpg "/> 650" this.width=650; "src=" http://s3.51cto.com/ Wyfs02/m01/5b/81/wkiom1ukcysjgrkyaads9wirxti155.jpg "title=" 4.png "style=" Float:none; "alt=" Wkiom1ukcysjgrkyaads9wirxti155.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/7C/wKioL1UKcq_iIDUIAACyeenj22Q801.jpg "style=" float: none; "title=" 5.png "alt=" wkiol1ukcq_iiduiaacyeenj22q801.jpg "/> 650" this.width=650; "src=" http://s3.51cto.com/ Wyfs02/m02/5b/81/wkiom1ukcysqk6gtaad-qaohhew101.jpg "title=" 6.png "style=" Float:none; "alt=" Wkiom1ukcysqk6gtaad-qaohhew101.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/7C/wKioL1UKcq_iC4xtAAEJaK4GM7c456.jpg "style=" float: none; "title=" 7.png "alt=" wkiol1ukcq_ic4xtaaejak4gm7c456.jpg "/> 650" this.width=650; "src=" http://s3.51cto.com/ Wyfs02/m00/5b/81/wkiom1ukcyxb_qgoaaenwy-deo0598.jpg "title=" 8.png "style=" Float:none; "alt=" wKiom1UKcYXB_ Qgoaaenwy-deo0598.jpg "/>
This article is from the "Summer Wind" blog, please be sure to keep this source http://shahdza.blog.51cto.com/2410787/1622207
Cocos actual combat--folio