Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zjzy_client_game
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
王勇霞
zjzy_client_game
Commits
2cb2b413
Commit
2cb2b413
authored
Mar 10, 2023
by
王勇霞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
移除不需要内容
parent
e161d0e3
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
3 additions
and
352 deletions
+3
-352
npminstall-debug.log
npminstall-debug.log
+0
-188
ResJson.ts
src/ResJson.ts
+1
-1
GameScene.ts
src/scenes/GameScene.ts
+0
-7
StartScene.ts
src/scenes/StartScene.ts
+1
-1
AddProp.ts
src/scenes/components/AddProp.ts
+0
-58
MapItem.ts
src/scenes/components/MapItem.ts
+0
-47
ObstacleProp.ts
src/scenes/components/ObstacleProp.ts
+0
-49
webpack.prod.js
webpack.prod.js
+1
-1
No files found.
npminstall-debug.log
deleted
100644 → 0
View file @
e161d0e3
{
root: '/Users/duibagroup/Downloads/duiba-wyx/2023/浙江中烟/跳一跳/project_0307',
registry: 'https://registry.npmmirror.com',
pkgs: [],
production: false,
cacheStrict: false,
cacheDir: null,
env: {
npm_config_registry: 'https://registry.npmmirror.com',
npm_config_argv: '{"remain":[],"cooked":["--fix-bug-versions","--china","--userconfig=/Users/duibagroup/.cnpmrc","--disturl=https://npmmirror.com/mirrors/node","--registry=https://registry.npmmirror.com","-g","pack-textures"],"original":["--fix-bug-versions","--china","--userconfig=/Users/duibagroup/.cnpmrc","--disturl=https://npmmirror.com/mirrors/node","--registry=https://registry.npmmirror.com","-g","pack-textures"]}',
npm_config_user_agent: 'npminstall/7.4.2 npm/? node/v16.13.0 darwin x64',
NODE: '/usr/local/bin/node',
npm_node_execpath: '/usr/local/bin/node',
npm_execpath: '/usr/local/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js',
npm_config_userconfig: '/Users/duibagroup/.cnpmrc',
npm_config_disturl: 'https://npmmirror.com/mirrors/node',
npm_config_r: 'https://registry.npmmirror.com',
NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node',
NVM_NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node',
PHANTOMJS_CDNURL: 'https://cdn.npmmirror.com/binaries/phantomjs',
CHROMEDRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/chromedriver',
OPERADRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/operadriver',
CYPRESS_DOWNLOAD_PATH_TEMPLATE: 'https://cdn.npmmirror.com/binaries/cypress/${version}/${platform}-${arch}/cypress.zip',
ELECTRON_MIRROR: 'https://cdn.npmmirror.com/binaries/electron/',
ELECTRON_BUILDER_BINARIES_MIRROR: 'https://cdn.npmmirror.com/binaries/electron-builder-binaries/',
SASS_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-sass',
SWC_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-swc',
NWJS_URLBASE: 'https://cdn.npmmirror.com/binaries/nwjs/v',
PUPPETEER_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries',
PLAYWRIGHT_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/playwright',
SENTRYCLI_CDNURL: 'https://cdn.npmmirror.com/binaries/sentry-cli',
SAUCECTL_INSTALL_BINARY_MIRROR: 'https://cdn.npmmirror.com/binaries/saucectl',
RE2_DOWNLOAD_MIRROR: 'https://cdn.npmmirror.com/binaries/node-re2',
RE2_DOWNLOAD_SKIP_PATH: 'true',
npm_config_better_sqlite3_binary_host: 'https://cdn.npmmirror.com/binaries/better-sqlite3',
npm_config_keytar_binary_host: 'https://cdn.npmmirror.com/binaries/keytar',
npm_config_sharp_binary_host: 'https://cdn.npmmirror.com/binaries/sharp',
npm_config_sharp_libvips_binary_host: 'https://cdn.npmmirror.com/binaries/sharp-libvips',
npm_config_robotjs_binary_host: 'https://cdn.npmmirror.com/binaries/robotjs',
npm_rootpath: '/Users/duibagroup/Downloads/duiba-wyx/2023/浙江中烟/跳一跳/project_0307',
INIT_CWD: '/Users/duibagroup/Downloads/duiba-wyx/2023/浙江中烟/跳一跳/project_0307',
npm_config_cache: '/Users/duibagroup/.npminstall_tarball'
},
binaryMirrors: {
ENVS: {
NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node',
NVM_NODEJS_ORG_MIRROR: 'https://cdn.npmmirror.com/binaries/node',
PHANTOMJS_CDNURL: 'https://cdn.npmmirror.com/binaries/phantomjs',
CHROMEDRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/chromedriver',
OPERADRIVER_CDNURL: 'https://cdn.npmmirror.com/binaries/operadriver',
CYPRESS_DOWNLOAD_PATH_TEMPLATE: 'https://cdn.npmmirror.com/binaries/cypress/${version}/${platform}-${arch}/cypress.zip',
ELECTRON_MIRROR: 'https://cdn.npmmirror.com/binaries/electron/',
ELECTRON_BUILDER_BINARIES_MIRROR: 'https://cdn.npmmirror.com/binaries/electron-builder-binaries/',
SASS_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-sass',
SWC_BINARY_SITE: 'https://cdn.npmmirror.com/binaries/node-swc',
NWJS_URLBASE: 'https://cdn.npmmirror.com/binaries/nwjs/v',
PUPPETEER_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries',
PLAYWRIGHT_DOWNLOAD_HOST: 'https://cdn.npmmirror.com/binaries/playwright',
SENTRYCLI_CDNURL: 'https://cdn.npmmirror.com/binaries/sentry-cli',
SAUCECTL_INSTALL_BINARY_MIRROR: 'https://cdn.npmmirror.com/binaries/saucectl',
RE2_DOWNLOAD_MIRROR: 'https://cdn.npmmirror.com/binaries/node-re2',
RE2_DOWNLOAD_SKIP_PATH: 'true',
npm_config_better_sqlite3_binary_host: 'https://cdn.npmmirror.com/binaries/better-sqlite3',
npm_config_keytar_binary_host: 'https://cdn.npmmirror.com/binaries/keytar',
npm_config_sharp_binary_host: 'https://cdn.npmmirror.com/binaries/sharp',
npm_config_sharp_libvips_binary_host: 'https://cdn.npmmirror.com/binaries/sharp-libvips',
npm_config_robotjs_binary_host: 'https://cdn.npmmirror.com/binaries/robotjs'
},
'@ali/s2': { host: 'https://cdn.npmmirror.com/binaries/looksgood-s2' },
sharp: { replaceHostFiles: [Array], replaceHostMap: [Object] },
'@tensorflow/tfjs-node': {
replaceHostFiles: [Array],
replaceHostRegExpMap: [Object],
replaceHostMap: [Object]
},
cypress: {
host: 'https://cdn.npmmirror.com/binaries/cypress',
newPlatforms: [Object]
},
'utf-8-validate': {
host: 'https://cdn.npmmirror.com/binaries/utf-8-validate/v{version}'
},
xprofiler: {
remote_path: './xprofiler/v{version}/',
host: 'https://cdn.npmmirror.com/binaries'
},
leveldown: { host: 'https://cdn.npmmirror.com/binaries/leveldown/v{version}' },
couchbase: { host: 'https://cdn.npmmirror.com/binaries/couchbase/v{version}' },
gl: { host: 'https://cdn.npmmirror.com/binaries/gl/v{version}' },
sqlite3: {
host: 'https://cdn.npmmirror.com/binaries/sqlite3',
remote_path: 'v{version}'
},
'@journeyapps/sqlcipher': { host: 'https://cdn.npmmirror.com/binaries' },
grpc: {
host: 'https://cdn.npmmirror.com/binaries',
remote_path: '{name}/v{version}'
},
'grpc-tools': { host: 'https://cdn.npmmirror.com/binaries' },
wrtc: {
host: 'https://cdn.npmmirror.com/binaries',
remote_path: '{name}/v{version}'
},
fsevents: { host: 'https://cdn.npmmirror.com/binaries/fsevents' },
nodejieba: { host: 'https://cdn.npmmirror.com/binaries/nodejieba' },
canvas: { host: 'https://cdn.npmmirror.com/binaries/canvas' },
'skia-canvas': { host: 'https://cdn.npmmirror.com/binaries/skia-canvas' },
'flow-bin': {
replaceHost: 'https://github.com/facebook/flow/releases/download/v',
host: 'https://cdn.npmmirror.com/binaries/flow/v'
},
'jpegtran-bin': {
replaceHost: [Array],
host: 'https://cdn.npmmirror.com/binaries/jpegtran-bin'
},
'cwebp-bin': {
replaceHost: [Array],
host: 'https://cdn.npmmirror.com/binaries/cwebp-bin'
},
'zopflipng-bin': {
replaceHost: [Array],
host: 'https://cdn.npmmirror.com/binaries/zopflipng-bin'
},
'optipng-bin': {
replaceHost: [Array],
host: 'https://cdn.npmmirror.com/binaries/optipng-bin'
},
mozjpeg: {
replaceHost: [Array],
host: 'https://cdn.npmmirror.com/binaries/mozjpeg-bin'
},
gifsicle: {
replaceHost: [Array],
host: 'https://cdn.npmmirror.com/binaries/gifsicle-bin'
},
'pngquant-bin': {
replaceHost: [Array],
host: 'https://cdn.npmmirror.com/binaries/pngquant-bin',
replaceHostMap: [Object]
},
'pngcrush-bin': {
replaceHost: [Array],
host: 'https://cdn.npmmirror.com/binaries/pngcrush-bin'
},
'jpeg-recompress-bin': {
replaceHost: [Array],
host: 'https://cdn.npmmirror.com/binaries/jpeg-recompress-bin'
},
'advpng-bin': {
replaceHost: [Array],
host: 'https://cdn.npmmirror.com/binaries/advpng-bin'
},
'pngout-bin': {
replaceHost: [Array],
host: 'https://cdn.npmmirror.com/binaries/pngout-bin'
},
'jpegoptim-bin': {
replaceHost: [Array],
host: 'https://cdn.npmmirror.com/binaries/jpegoptim-bin'
},
argon2: { host: 'https://cdn.npmmirror.com/binaries/argon2' },
'ali-zeromq': { host: 'https://cdn.npmmirror.com/binaries/ali-zeromq' },
'ali-usb_ctl': { host: 'https://cdn.npmmirror.com/binaries/ali-usb_ctl' },
'gdal-async': { host: 'https://cdn.npmmirror.com/binaries/node-gdal-async' }
},
forbiddenLicenses: null,
flatten: false,
proxy: undefined,
prune: false,
disableFallbackStore: false,
workspacesMap: Map(0) {},
enableWorkspace: false,
workspaceRoot: '/Users/duibagroup/Downloads/duiba-wyx/2023/浙江中烟/跳一跳/project_0307',
isWorkspaceRoot: true,
isWorkspacePackage: false,
strictSSL: true,
ignoreScripts: false,
ignoreOptionalDependencies: false,
detail: true,
forceLinkLatest: false,
trace: false,
engineStrict: false,
registryOnly: false,
client: false,
autoFixVersion: [Function: autoFixVersion],
targetDir: null,
binDir: null
}
\ No newline at end of file
src/ResJson.ts
View file @
2cb2b413
...
@@ -755,5 +755,5 @@ export const ResJson = {
...
@@ -755,5 +755,5 @@ export const ResJson = {
"name"
:
"svga"
"name"
:
"svga"
}
}
],
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/16783
76631
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/16783
80297
/resource/"
}
}
\ No newline at end of file
src/scenes/GameScene.ts
View file @
2cb2b413
import
{
Scene
}
from
"../../module/views/Scene"
;
import
{
Scene
}
from
"../../module/views/Scene"
;
import
Role
from
"./components/Role"
;
import
Role
from
"./components/Role"
;
import
AddProp
from
"./components/AddProp"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
RES
}
from
"../../module/RES"
;
import
ObstacleProp
from
"./components/ObstacleProp"
;
import
MapItem
from
"./components/MapItem"
;
import
Cloud
from
"./components/Cloud"
;
import
Cloud
from
"./components/Cloud"
;
import
Word
from
"./components/word"
;
import
Word
from
"./components/word"
;
import
{
getWebData
,
WebNetName
,
sendWebNet
,
sendLog
,
LOG_TYPE
}
from
"../webNet"
;
import
{
getWebData
,
WebNetName
,
sendWebNet
,
sendLog
,
LOG_TYPE
}
from
"../webNet"
;
...
@@ -17,10 +14,6 @@ import { Tools } from "../Tools";
...
@@ -17,10 +14,6 @@ import { Tools } from "../Tools";
import
{
layers
}
from
"../../module/views/layers"
;
import
{
layers
}
from
"../../module/views/layers"
;
import
UI
from
"../UI"
;
import
UI
from
"../UI"
;
export
class
GameScene
extends
Scene
{
export
class
GameScene
extends
Scene
{
get
groupNames
()
{
return
[
"GameScene"
]
};
get
groupNames
()
{
return
[
"GameScene"
]
};
get
skinName
()
{
return
"GameScene"
};
get
skinName
()
{
return
"GameScene"
};
...
...
src/scenes/StartScene.ts
View file @
2cb2b413
...
@@ -72,7 +72,7 @@ export class StartScene extends Scene {
...
@@ -72,7 +72,7 @@ export class StartScene extends Scene {
return
return
}
}
this
.
isOpen
=
false
this
.
isOpen
=
false
changeScene
(
GameScene
)
//
changeScene(GameScene)
}
}
}
else
{
}
else
{
showToast
(
"今日已过关,明日再来~"
)
showToast
(
"今日已过关,明日再来~"
)
...
...
src/scenes/components/AddProp.ts
deleted
100644 → 0
View file @
e161d0e3
import
*
as
Matter
from
"matter-js"
;
import
{
RES
}
from
"../../../module/RES"
;
export
default
class
AddProp
extends
FYGE
.
Container
{
public
phyBody
:
Matter
.
Body
;
itemImg
:
FYGE
.
Sprite
;
constructor
()
{
super
();
let
itemImg
=
this
.
itemImg
=
new
FYGE
.
Sprite
();
let
gameType
=
""
if
(
Math
.
random
()
*
10
<=
5
){
itemImg
.
texture
=
RES
.
getRes
(
"tianpop.png"
);
gameType
=
'addProp_tian'
;
}
else
{
itemImg
.
texture
=
RES
.
getRes
(
"xiangpop.png"
);
gameType
=
'addProp_xiang'
;
}
itemImg
.
position
.
set
(
-
itemImg
.
width
/
2
,
-
itemImg
.
height
/
2
);
this
.
addChild
(
itemImg
);
this
.
phyBody
=
Matter
.
Bodies
.
rectangle
(
this
.
x
,
this
.
y
,
itemImg
.
width
/
2
,
itemImg
.
height
/
2
,
{
isStatic
:
true
,
friction
:
1
,
isSensor
:
true
,
// 传感器,可以检测到碰撞,但是不参与碰撞
});
this
.
phyBody
.
gameType
=
gameType
;
setTimeout
(()
=>
{
this
.
setPhyPos
();
},
200
)
}
set
fx
(
value
:
number
)
{
this
.
position
.
x
=
value
;
this
.
setPhyPos
();
}
set
fy
(
value
:
number
)
{
this
.
position
.
y
=
value
;
this
.
setPhyPos
();
}
setPhyPos
()
{
try
{
Matter
.
Body
.
setPosition
(
this
.
phyBody
,
{
x
:
(
this
.
x
),
y
:
(
this
.
y
),
});
}
catch
(
e
)
{
}
}
}
\ No newline at end of file
src/scenes/components/MapItem.ts
deleted
100644 → 0
View file @
e161d0e3
import
*
as
Matter
from
"matter-js"
;
import
{
RES
}
from
"../../../module/RES"
;
export
default
class
MapItem
extends
FYGE
.
Container
{
public
phyBody
:
Matter
.
Body
;
itemImg
:
FYGE
.
Sprite
;
constructor
()
{
super
();
let
itemImg
=
this
.
itemImg
=
new
FYGE
.
Sprite
();
itemImg
.
texture
=
RES
.
getRes
(
"cloud.png"
);
itemImg
.
width
=
itemImg
.
width
*
1.4
itemImg
.
position
.
set
(
-
itemImg
.
width
/
2
,
-
10
);
this
.
addChild
(
itemImg
);
this
.
phyBody
=
Matter
.
Bodies
.
rectangle
(
this
.
x
,
this
.
y
,
itemImg
.
width
,
5
,
{
isStatic
:
true
,
friction
:
1
,
isSensor
:
true
,
// 传感器,可以检测到碰撞,但是不参与碰撞
});
this
.
phyBody
.
gameType
=
'item'
setTimeout
(()
=>
{
this
.
setPhyPos
();
},
200
)
}
set
fx
(
value
:
number
)
{
this
.
position
.
x
=
value
;
this
.
setPhyPos
();
}
set
fy
(
value
:
number
)
{
this
.
position
.
y
=
value
;
this
.
setPhyPos
();
}
setPhyPos
()
{
Matter
.
Body
.
setPosition
(
this
.
phyBody
,
{
x
:
(
this
.
x
),
y
:
(
this
.
y
),
});
}
}
\ No newline at end of file
src/scenes/components/ObstacleProp.ts
deleted
100644 → 0
View file @
e161d0e3
import
*
as
Matter
from
"matter-js"
;
import
{
RES
}
from
"../../../module/RES"
;
export
default
class
ObstacleProp
extends
FYGE
.
Container
{
public
phyBody
:
Matter
.
Body
;
itemImg
:
FYGE
.
Sprite
;
constructor
()
{
super
();
let
itemImg
=
this
.
itemImg
=
new
FYGE
.
Sprite
();
itemImg
.
texture
=
RES
.
getRes
(
"monster.png"
);
itemImg
.
position
.
set
(
-
itemImg
.
width
/
2
,
-
itemImg
.
height
/
2
);
this
.
addChild
(
itemImg
);
this
.
phyBody
=
Matter
.
Bodies
.
rectangle
(
this
.
x
,
this
.
y
,
itemImg
.
width
,
itemImg
.
height
,
{
isStatic
:
true
,
friction
:
1
,
isSensor
:
true
,
// 传感器,可以检测到碰撞,但是不参与碰撞
});
this
.
phyBody
.
gameType
=
'dieProp'
;
setTimeout
(()
=>
{
this
.
setPhyPos
();
},
500
)
}
set
fx
(
value
:
number
)
{
this
.
position
.
x
=
value
;
this
.
setPhyPos
();
}
set
fy
(
value
:
number
)
{
this
.
position
.
y
=
value
;
this
.
setPhyPos
();
}
setPhyPos
()
{
try
{
Matter
.
Body
.
setPosition
(
this
.
phyBody
,
{
x
:
(
this
.
x
),
y
:
(
this
.
y
),
});
}
catch
(
e
)
{
}
}
}
\ No newline at end of file
webpack.prod.js
View file @
2cb2b413
...
@@ -3,7 +3,7 @@ const common = require('./webpack.common.js');
...
@@ -3,7 +3,7 @@ const common = require('./webpack.common.js');
const
webpack
=
require
(
'webpack'
);
const
webpack
=
require
(
'webpack'
);
module
.
exports
=
merge
(
common
,
{
module
.
exports
=
merge
(
common
,
{
mode
:
"
production
"
,
//production development
mode
:
"
development
"
,
//production development
devtool
:
'source-map'
,
devtool
:
'source-map'
,
plugins
:
[
plugins
:
[
new
webpack
.
DefinePlugin
({
new
webpack
.
DefinePlugin
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment