Cocos2dx,Windows
学习 Cocos2dx 的笔记

Cocos2dx Create Script

78c8c35c545986bd.png

@echo off
title Cocos2dx Create Script 
color 3F
:ProjectNameBreak
set/p ProjectName=请输入项目名称(例:MyProject):
if "%ProjectName%"=="" (goto ProjectNameBreak)
:PackageNameBreak
set/p PackageName=请输入包名称(例:com.android.package):
if "%PackageName%"=="" (goto PackageNameBreak)
:ProjectTypesBreak
set/p ProjectTypes=请输入项目源码类型(例:CPP):
if "%ProjectTypes%"=="" (goto ProjectTypesBreak)
:SavePathBreak
set/p SavePath=请输入项目存储路径(例:C:\MyPath):
if "%SavePath%"=="" (goto SavePathBreak)
cocos new %ProjectName% -p %PackageName% -l %ProjectTypes% -d %SavePath%
echo 项目创建完成。
pause>nul