|
|
2 ani în urmă | |
|---|---|---|
| .. | ||
| assets | 4 ani în urmă | |
| phasereditor2d_scripts_core | 2 ani în urmă | |
| phasereditor2d_scripts_simple_animations | 2 ani în urmă | |
| src | 2 ani în urmă | |
| .gitignore | 2 ani în urmă | |
| .gitpod.yml | 2 ani în urmă | |
| README.md | 2 ani în urmă | |
| events.txt | 2 ani în urmă | |
| game.js | 2 ani în urmă | |
| index.html | 2 ani în urmă | |
| main.ts | 2 ani în urmă | |
| package-lock.json | 2 ani în urmă | |
| package.json | 2 ani în urmă | |
| phasereditor2d.config.json | 4 ani în urmă | |
| tsconfig.json | 2 ani în urmă | |
This is a Phaser Editor 2D v3 project template.
tsc is included as a node package.jsconfig.json file).This project is based on TypeScript so for getting the game, first, you need to install TypeScript and other dependencies:
$ npm install
$ npm update
Then, for running the game, you need to compile the TypeScript files:
$ npm run build
It outputs the JavaScript code into the game.js file.
Often, you would like to run the TypeScript compiler in watch mode:
$ npm start
If you have NodeJS installed, you can run the editor using the editor NPM script, defined in the package.json file:
$ npm install
$ npm run editor
If you are in a remote environment (like the Gitpod.io IDE), then run the editor like this:
$ npm run editor-remote
If you want to see all the editor options, run:
$ npx phasereditor2d-launcher -help
If Phaser Editor 2D Core is globally installed, you can run:
$ PhaserEditor2D -project .
This repository is ready for start coding in Gitpod, a Cloud Development Environment. You only need to click on this link for starting a new workspace.
This is what Gitpod does:
1959.In the Ports panel in VS Code, it shows the links for opening the editor (port 1959). It gives you the options of copy the URL, open the URL in a preview panel, or open the URL in a new tab.