-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fa61a3
commit 316aacc
Showing
7 changed files
with
66 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,65 @@ | ||
After cloning this repository, `cd` into the root directory and run | ||
the following two commands: | ||
Learn PixiJS | ||
============ | ||
|
||
This is the code repository for the book [Learn | ||
PixiJS](http://www.springer.com/us/book/9781484210956). | ||
|
||
There are two ways to access the source code: by downloading the ZIP file or by | ||
cloning this repository. | ||
|
||
The ZIP file | ||
----------- | ||
|
||
The easiest way is just to download the ZIP file. It contains a | ||
frozen snapshot of all the source code for *Learn PixiJS* as it was on the | ||
day the book was published. That means it's guaranteed to work with code in the book. | ||
|
||
Clone this repository | ||
--------------------- | ||
|
||
Alternatively, you can use git to clone this repository. (If you don't | ||
know how to use git (you can find out | ||
here)[https://github.com/kittykatattack/learningGit].) Cloning the | ||
repository will | ||
give you the latest version of the submodules, including the latest | ||
version of Pixi. (Be aware that the source code in the book was tested | ||
with Pixi 3.0.7. If you are using a later version of | ||
Pixi you may encounter incompatibilities.) | ||
|
||
To clone this repository, run the following in the command line: | ||
``` | ||
git clone [email protected]:kittykatattack/learningGit.git | ||
``` | ||
When it's finished run the following two commands: | ||
``` | ||
git submodule init | ||
git submodule update | ||
``` | ||
To optionally update the submodules to the very latest versions, run this | ||
command: | ||
``` | ||
git submodule foreach git pull origin master | ||
``` | ||
This will pull the latest versions of the submodules from their | ||
repositories. | ||
|
||
Launching a web server | ||
------------------ | ||
|
||
You'll need to launch a web server in the root repository directory. A | ||
modern text editor like (Light Table)[http://lighttable.com], | ||
(Brackets)[http://brackets.io] or (Atom)[https://atom.io] will | ||
launch one for you automatically, directly from the editor, when you | ||
open and view an HTML file in the browser. | ||
|
||
Or you could launch a web server directly from the command line using | ||
(http-server)[https://github.com/indexzero/http-server]. After the server starts, navigate to | ||
`http://localhost:8080/` in your browser and you'll be able to | ||
interact with working | ||
versions of all the example files in the book. | ||
|
||
Keeping up with Pixi | ||
-------------------- | ||
|
||
Pixi is an actively developed library, so make sure you (keep an eye on | ||
Pixi's code repository)[https://github.com/pixijs/pixi.js] for any changes to the API. |
Binary file not shown.
Submodule spriteUtilities
updated
4 files
+260 −0 | README.md | |
+350 −3 | bin/spriteUtilities.js | |
+1 −1 | bin/spriteUtilities.js.map | |
+319 −3 | src/spriteUtilities.js |
Submodule tink
updated
6 files
+331 −0 | README.md | |
+ − | images/1.png | |
+ − | images/2.png | |
+ − | images/3.png | |
+ − | images/4.png | |
+1 −1 | src/tink.js |