资源描述:
《html5游戏开发—cocos2d-x游戏暂停、继续游戏、重新开始界面的实现--之游戏开发《赵云要格斗》(10)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Cocos2d-x游戏暂停、继续游戏、重新开始界面的实现--之游戏开发《赵云要格斗》(10)Evankaka2015-01-2110:11:203020次阅读本文要实现游戏中的暂停、重新开始。将当前界面截图,然后用这张图去构造一个层(以这张图为背景),然后加个按钮,主界面点暂停时,pushScene(),然后转到游戏暂停界面,当在游戏暂停界面点继续游戏popScne()。在Cocos2d-x中推进(pushScene())暂停场景,之前运行的场景将会自动暂停,然后我们可以在暂停场景中操作,当我们不再需要暂停场景时,可以
2、popScene()将暂停场景弹出。重新开始游戏直接replaceScene()。Cocos2d-x版本:2.2.5工程环境:Windows7+VS2010打开方式:将工程放在Cocos2d-x安装目录下的project文件夹下用VS打开本文效果:upgradeandexpansion,wholesystemconstructionofguidelinefollowedfollowingprinciples:Advanced:fullreferencebothathomeandabroadadvanced,andmat
3、ureoftechnology,andmethodandmeans,Projectdesign,technicalproductleader,matureproductsaspossibleonthemainequipmentselection,technicalleadandalignedwithnationalstandardsofgeneral-purpose,standardequipment.Systematization:strictlyfollowtheviewofsystemengineeringand
4、construction,hasalwaysbeentopracticeengineeringintegrity,hierarchy,andadaptabilitytotheexternalenvironmentforconstructivepurposes.Maximizethebusinessintegration,functionalintegrationandavoiddifferentproducts,differentstandardsandspecificationsofpiecingtogetheran
5、dcombinationofthesystem.Opennessandstandardization:hardwaredeviceselectsthedomesticandforeignwell-knownproducts,systemarchitectureandprotocolstandardsareinaccordancewiththeITU-tinternationalindustrystandardsandISOstandardsofdesign,coresystemsanddevices,following
6、internationalstandards,harmonizationofstandards,ensuresystemscalabilityandcontinuityofthesystem.Practicality:ensurehighavailabilityofthesystemperformancewithhighreliabilityandflexibilityboth;firsttoensurestableandreliableoperationofthesystem,andusingredundancyde
7、signofkeycomponentsofthekeypositionthentosimple,technologicallyadvanced,economicalandpractical.Extensibleandmaintainable:withintheexpectedlifecycleofsystemsorequipment,canbeupgradedandmodifiedtomeettheneedsoftheuseractionsandapplicationrequirementschange.Andensu
8、resafter-salesserviceCocos2d-x游戏暂停、继续游戏、重新开始界面的实现--之游戏开发《赵云要格斗》(10)Evankaka2015-01-2110:11:203020次阅读本文要实现游戏中的暂停、重新开始。将当前界面截图,然后用这张图去构造一个层(以这张图为背景),然后加个按钮,主界面点暂停时,push