Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
upgrade to version 2 of examples
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodBoyDigital committed Aug 24, 2016
1 parent bf5dd8a commit 5ddff68
Show file tree
Hide file tree
Showing 1,496 changed files with 191,188 additions and 27,720 deletions.
14 changes: 0 additions & 14 deletions LICENSE

This file was deleted.

Binary file removed Pixi_examples.jpg
Binary file not shown.
39 changes: 18 additions & 21 deletions README.md
@@ -1,32 +1,29 @@
# pixi-examples
# Pixi examples guidelines: #

Repository for the pixi.js v3 examples, available online [here](ghio).
<<<<<<< HEAD
This is the new repository for the pixi examples.
In the previous one, each example was a JavaScript file, we moved away from this and it is now an HTML file that can be opened on its own.
=======
Repository for the pixi.js v3 examples, available online [here](https://pixijs.github.io/examples/).
>>>>>>> origin/master
## Running
The iframe that displays the examples is **800 * 600**, consequently please avoid creating a renderer that is larger than these dimensions.

You can view the examples online [here][ghio]. If you want to run it locally you can clone the repository
or download the zip file. Then just run a server pointing to the root of this repo.

For example using the node [http-server][httpserver] module:
## How to run the project ##

```js
git clone git@github.com:pixijs/examples.git
cd examples/
This micro-site is built using HTML and jQuery and can be run on your local server without additional requirements.

npm i && npm start
```
## Project structure ##

## Contributing
All the examples are stored in the ``` required/examples ``` folder and loaded via the ``` manifest.json ``` file.

Ideally you will need to have [node][node] setup on your machine.
All the assets are stored in ``` required/examples/assets ```.

Then you can add a new example, modify the section's `_details.json`, and rebuild the manifest file:
Every sub-folder in the examples folder corresponds to a sub-menu in the website's sidebar.

```js
node generateManifest.js
```
Your local copy of the website should then be updated automatically.
## How to create an example ##

[node]: http://nodejs.org/
[ghio]: http://pixijs.github.io/examples
[httpserver]: https://www.npmjs.com/package/http-server
You can use the basic example as a template, it is located in ``` required/examples/basics/basic.html ```.
All you need to do is copy and paste this file to where you think your example belongs.
You can then come back to the browser and navigate to your file and start changing it.
Binary file added _assets2/bunnies/square_blue.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes

0 comments on commit 5ddff68

Please sign in to comment.