Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
izure committed Jun 30, 2021
1 parent eb01d06 commit bdc7104
Show file tree
Hide file tree
Showing 5 changed files with 578 additions and 0 deletions.
7 changes: 7 additions & 0 deletions @test/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Plugin as SpatialAudioPlugin, SpatialAudio } from '~/spatial-audio'
import { Plugin as FeelingPlugin } from '~/feeling'
import { Plugin as ParticlePlugin } from '~/particle'
import { Plugin as OptimizationPlugin } from '~/optimization'
import { Plugin as InventoryPlugin } from '~/inventory'
import { getIsometricSide } from '~/@common/Math/MathUtil'

class User extends Actor {
Expand Down Expand Up @@ -211,6 +212,7 @@ class Test extends Phaser.Scene {
feeling!: FeelingPlugin
particle!: ParticlePlugin
optimization!: OptimizationPlugin
inventory!: InventoryPlugin
private shiftKey!: Phaser.Input.Keyboard.Key
private ctrlKey!: Phaser.Input.Keyboard.Key
private side: number = 10000
Expand Down Expand Up @@ -477,6 +479,11 @@ const config: Phaser.Types.Core.GameConfig = {
key: 'OptimizationPlugin',
mapping: 'optimization',
plugin: OptimizationPlugin
},
{
key: 'InventoryPlugin',
mapping: 'inventory',
plugin: InventoryPlugin
}
// {
// key: 'daylightPlugin',
Expand Down
31 changes: 31 additions & 0 deletions inventory/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "@eriengine/plugin-inventory",
"version": "1.0.0",
"description": "Inventory system plugin for Phaser 3",
"main": "dist/inventory/src/eriengine-core-plugin-inventory.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack"
},
"author": "izure <[email protected]>",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.12.10",
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
"@babel/polyfill": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-typescript": "^7.12.7",
"@types/easystarjs": "0.3.1",
"@zerollup/ts-transform-paths": "1.7.18",
"babel-loader": "^8.2.2",
"phaser": "^3.54.0",
"ts-loader": "^8.0.7",
"typescript": "^4.0.5",
"webpack": "^5.8.0",
"webpack-cli": "^4.2.0"
},
"peerDependencies": {
"phaser": "^3.54.0"
}
}
Loading

0 comments on commit bdc7104

Please sign in to comment.