01219245/cocos2d chrome setup
รุ่นแก้ไขเมื่อ 06:05, 5 กุมภาพันธ์ 2557 โดย Jittat (คุย | มีส่วนร่วม) (หน้าที่ถูกสร้างด้วย 'If you want to use Chrome to view local Cocos2d-html5 applications, follow these steps. : ''Many of these instructions are from Manat...')
If you want to use Chrome to view local Cocos2d-html5 applications, follow these steps.
- Many of these instructions are from Manatsawin. Thanks again.
Option 1: User Python build-in server for Linux, Mac and (Windows user with Python)
Most Linux and Mac comes with Python so this might be the easiest way. If you use Windows and have Python installed, this might be a good way for you too.
For Linux & Mac: You just open a terminal, change directory to the Cocos2d-html5 directory, and call
python -m SimpleHTTPServer
For Windows with Python installation, change python to python.ext.
The current directory will be available at http://localhost:8000/, so if you want to view the game try something like: http://localhost:8000/mygames/tutorial1/