https://github.com/abrie/nl6
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/abrie/nl6
- Owner: abrie
- Created: 2024-10-30T15:00:36.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-31T00:47:59.000Z (8 months ago)
- Last Synced: 2025-01-24T23:27:13.079Z (5 months ago)
- Language: TypeScript
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nl6
## Development Environment Setup
To set up the development environment using Yarn and Vite, follow these steps:
1. Install Yarn if you haven't already:
```sh
npm install -g yarn
```2. Install the project dependencies:
```sh
yarn install
```3. Start the development server:
```sh
yarn dev
```## Running the Development Server
To run the development server, use the following command:
```sh
yarn dev
```## Installing Phaser
To install Phaser, use the following command:
```sh
yarn add phaser
```## Using Phaser in the Development Setup
To use Phaser in the development setup, follow these steps:
1. Import the `PlayScene` class in your `src/main.ts` file:
```typescript
import PlayScene from './PlayScene';
```2. Initialize a Phaser game in your `src/main.ts` file:
```typescript
const config = {
type: Phaser.AUTO,
width: 800,
height: 600,
scene: PlayScene
};const game = new Phaser.Game(config);
```