ผลต่างระหว่างรุ่นของ "01219245/cocos2d-html5/Sprites"
Jittat (คุย | มีส่วนร่วม) |
Jittat (คุย | มีส่วนร่วม) |
||
แถว 34: | แถว 34: | ||
\- mygames | \- mygames | ||
− | A Cocos2d-html5 application needs a few boiler-plate codes; we shall provide a simple template for that. | + | A Cocos2d-html5 application needs a few boiler-plate codes; we shall provide a simple template for that: [http://theory.cpe.ku.ac.th/wiki/images/219245-template.zip 219245-template.zip]. Download '''<tt>219245-template.zip</tt>''' and unzip it into <tt>mygames</tt>. Rename directory '''<tt>219245-template</tt>''' to '''<tt>tutorial1</tt>''' and create a Git repository there. |
− | |||
− | |||
== Sprites == | == Sprites == |
รุ่นแก้ไขเมื่อ 11:21, 3 กุมภาพันธ์ 2557
- This is part of 01219245.
In this tutorial, we will create a simple html5 program with Cocos2d-x.
In what follows, you should use Firefox as a browser. Chrome has stricter permission so if you want to view Cocos2d-html5 game, you'll have to install a web server software in your laptop.
Getting started
- This tutorial is based on Cocos2d-html5 version 2.2.2, however, it should work for other versions as well.
Download the library Cocos2d-html5 from here.
Find a location for the library and unzip the library there. In that directory, it should look like this:
\- Cocos2d-html5-v2.2.2 |- AUTHORS.txt |- CHANGELOG.txt |- cocos2d |- extensions |- external |- HelloHTML5World |- index.html |- lib |- licenses |- README.mdown |- samples |- template \- tools
Let's create directory mygames inside Cocos2d-html5-v2.x.x and we will put all our games there.
\- Cocos2d-html5-v2.2.2 |- .. \- mygames
A Cocos2d-html5 application needs a few boiler-plate codes; we shall provide a simple template for that: 219245-template.zip. Download 219245-template.zip and unzip it into mygames. Rename directory 219245-template to tutorial1 and create a Git repository there.