This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
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
bf5dd8a
commit 5ddff68
Showing
1,496 changed files
with
191,188 additions
and
27,720 deletions.
There are no files selected for viewing
Binary file not shown.
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,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. |
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
Oops, something went wrong.