https://github.com/phasereditor2d/starter-example-sunny-land
Sunny Land, an example game migrated to Phaser Editor 2D.
https://github.com/phasereditor2d/starter-example-sunny-land
Last synced: about 1 year ago
JSON representation
Sunny Land, an example game migrated to Phaser Editor 2D.
- Host: GitHub
- URL: https://github.com/phasereditor2d/starter-example-sunny-land
- Owner: PhaserEditor2D
- Created: 2021-09-03T18:54:13.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-11T02:17:05.000Z (over 2 years ago)
- Last Synced: 2025-04-23T13:28:28.019Z (about 1 year ago)
- Language: JavaScript
- Size: 3.16 MB
- Stars: 4
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sunny Land example game

[](https://gitpod.io/#https://github.com/PhaserEditor2D/starter-example-sunny-land)
This is a port to Phaser 3 of the [Sunny Land demo made by Luis Zuno](https://ansimuz.itch.io/sunny-land-pixel-game-art).
This is a good example of how to use the Tilemap support in the Scene Editor, the User Components and the Animations Editor.
## Configuration
* It includes the latest Phaser v3 runtime (in the `lib/` folder).
* It is coded in JavaScript.
* It includes a VS Code project configuration (`jsconfig.json` file) and the type definitions (in the `types/` folder).
## Run the editor
If you have NodeJS installed, you can run the editor using the `editor` NPM script, defined in the `package.json` file:
```bash
$ npm install
$ npm update
$ npm run editor
```
If you are in a remote environment (like the Gitpod.io IDE), then run the editor like this:
```bash
$ npm run editor-remote
```
If you want to see all the editor options, run:
```bash
$ npx phasereditor2d-launcher -help
```
If Phaser Editor 2D Core is globally installed, you can run:
```bash
$ PhaserEditor2D -project .
```
## Gitpod
This repository is ready for start coding in Gitpod, a Cloud Development Environment. You only need to [click on this link](https://gitpod.io/#https://github.com/PhaserEditor2D/starter-template-basic-javascript) for starting a new workspace.
This is what Gitpod does:
- Creates a workspace for this project.
- Opens VS Code to edit this repo.
- Installs & updates the dependencies of this repo.
- Runs Phaser Editor 2D Core server in port `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.
## Script Nodes
Script nodes are logic objects. You can add a script node to the scene or a game object, for extending it with custom data and behavior.
This project includes the [basic script nodes](https://github.com/PhaserEditor2D/script-nodes-basic-js) in the `src/script-nodes-basic/` folder. You can add your own script nodes in the `src/script-nodes/` folder.