You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To convert any models created using a 3D modelling package see [this page](https://developer.playcanvas.com/en/engine/) in the developer documentation.
131
-
132
-
## How to run tests
133
-
134
-
PlayCanvas makes use of Karma for running unit tests, and provides three test ways of executing them depending on what phase of development you're in:
135
-
136
-
# Runs the tests once over the unbuilt source files - useful if you just want a quick 'all-clear'
137
-
npm run test
138
-
139
-
# Watches all source and test files for changes, and automatically re-runs the tests when they change.
140
-
# Open http://localhost:9876/debug.html in your browser to debug the tests in real time.
141
-
#
142
-
# You can also edit the `tests/**/test_*.js` glob in tests/karma.conf.js to run a subset of the tests,
143
-
# during development.
144
-
npm run test:watch
145
-
146
-
# Runs the tests once over playcanvas.js - mainly used by CI, but sometimes useful if you want to
147
-
# test the engine after building it. Make sure to do `npm run build` first to make sure you have
148
-
# an up-to-date build.
149
-
npm run test:release
150
-
151
-
## Documentation
152
-
153
-
Full documentation available on the [PlayCanvas Developer](https://developer.playcanvas.com) site including [API reference](https://developer.playcanvas.com/en/api/). To build a local copy of the API reference manual to the docs folder, do:
154
-
155
-
npm run docs
156
-
157
-
## Tutorials & Examples
135
+
### Generate Source Maps
158
136
159
-
See all the [tutorials](https://developer.playcanvas.com/tutorials/) here.
137
+
To build the source map to allow for easier engine debugging, you can add `-- -m` to any engine build command. For example:
160
138
161
-
## TypeScript Bindings
162
-
163
-
You can develop TypeScript applications against the PlayCanvas engine. To generate a TypeScript definitions file for the entire API, do:
139
+
npm run build -- -m
164
140
165
-
npm run tsd
141
+
This will output to `build/output/playcanvas.js.map`
166
142
167
-
This will output to build/output/playcanvas.d.ts
143
+
## How to run tests
168
144
169
-
## Generating Source Map
145
+
PlayCanvas uses of Karma for unit testing. There are three ways of running the tests:
170
146
171
-
To build the source map to allow for easier engine debugging, use the following command:
| npm run test | Runs unit tests over unbuilt engine source |
150
+
| npm run test:watch| Re-runs unit tests when changes are detected - open http://localhost:9876/debug.html|
151
+
| npm run test:release| Runs unit tests on a built `playcanvas.js`|
172
152
173
-
npm run build -- -m
153
+
## How to get models?
174
154
175
-
This will output to build/output/playcanvas.js.map
155
+
To convert any models created using a 3D modelling package see [this page](https://developer.playcanvas.com/en/engine/) in the developer documentation.
176
156
177
-
## Getting Help
157
+
## Useful Links
178
158
179
-
[**Forums**](https://forum.playcanvas.com) - Use the forum to ask/answer questions about PlayCanvas.
Want to help us make the best 3D engine on the web? Great!
184
166
Check out [CONTRIBUTING.md](https://github.com/playcanvas/engine/blob/master/.github/CONTRIBUTING.md) that will get you started.
185
167
And look for ["good first PR"](https://github.com/playcanvas/engine/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+PR%22) label in Issues.
186
168
187
-
### Github Issues
188
-
189
-
Please use [Github Issues](https://github.com/playcanvas/engine/issues) to report bugs or request features.
190
-
191
-
### Reporting bugs
192
-
193
-
Please follow these steps to report a bug
194
-
195
-
1.**Search for related issues** - search the existing issues so that you don't create duplicates
196
-
197
-
2.**Create a testcase** - Please create the smallest isolated testcase that you can that reproduces your bug
198
-
199
-
3.**Share as much information as possible** - everything little helps, OS, browser version, all that stuff.
200
-
201
169
## PlayCanvas Platform
202
170
203
171
The PlayCanvas Engine is an open source engine which you can use to create games and 3D visualisation in the browser. In addition to the engine we also make the [PlayCanvas development platform](https://playcanvas.com/) which features an Visual Editor, asset management, code editing, hosting and publishing services.
0 commit comments