Skip to content

Commit

Permalink
feat: stage size adaptive
Browse files Browse the repository at this point in the history
  • Loading branch information
KairuiLiu committed Aug 4, 2022
1 parent ac826d1 commit 04a53eb
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
程序运行后会输出如下提示

```
ThreeCraft v1.0.0 game server running at:
ThreeCraft v1.0.2 game server running at:
> Local: http://localhost:9000
> Network: http://xxx.xxx.xxx.xxx:9000

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
After the program runs, the following prompt will be output

```
ThreeCraft v1.0.0 game server running at:
ThreeCraft v1.0.2 game server running at:
> Local: http://localhost:9000
> Network: http://xxx.xxx.xxx.xxx:9000

Expand Down
2 changes: 1 addition & 1 deletion server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ io.on('connection', socket => {
for (let i = 0; i < iface!.length; i++) {
const alias = iface![i];
if (alias.address !== '127.0.0.1' && !alias.internal) {
console.log(`ThreeCraft v1.0.0 game server running at:\n> Local:\thttp://localhost:9000\n> Network:\thttp://${alias.address}:9000\n`);
console.log(`ThreeCraft v1.0.2 game server running at:\n> Local:\thttp://localhost:9000\n> Network:\thttp://${alias.address}:9000\n`);
console.log(`\x1b[40m\x1b[31mYOU MUST ENTER THE ADDRESS LIKE http://${alias.address}:9000 IN GAME, NO PART CAN BE OMITTED!\x1b[0m`);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/controller/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const config = {
},
renderer: {
fog: 0.02,
stageSize: 64, // stage的边长 196
stageSize: deviceTest() === 'pc' ? 144 : 64, // stage的边长 196
// renderDistance: 500,
},
controller: {
Expand Down Expand Up @@ -125,7 +125,7 @@ const defaultConfig = {
},
renderer: {
fog: 0.02,
stageSize: 64, // stage的边长 196
stageSize: deviceTest() === 'pc' ? 144 : 64, // stage的边长 196
// renderDistance: 500,
},
controller: {
Expand Down
2 changes: 1 addition & 1 deletion src/controller/config/lang/en_us.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default {
{ k: 'Turn Headset', v: 'Change Orientation' },
{ k: 'Using Remote', v: 'Destroy Blocks' },
],
aboutItems: ['Minecraft release based on Three.js', 'Version: 1.0.1', 'More information, see', ':)'],
aboutItems: ['Minecraft release based on Three.js', 'Version: 1.0.2', 'More information, see', ':)'],
tryRotate: 'Please rotate the screen before start',
tryLock: 'Mouse lock failed, please try clicking again',
allBlock: 'All blocks',
Expand Down
2 changes: 1 addition & 1 deletion src/controller/config/lang/zh_cn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const language = {
{ k: '转动头显', v: '变换朝向' },
{ k: '使用遥控器', v: '摧毁方块' },
],
aboutItems: ['基于Three.js的Minecraft实现.', '版本: 1.0.1', '去', '了解更多:)'],
aboutItems: ['基于Three.js的Minecraft实现.', '版本: 1.0.2', '去', '了解更多:)'],
tryRotate: '请先将您的设备设为横屏再开始游戏',
tryLock: '鼠标锁定失败, 请尝试再次点击',
allBlock: '全部方块',
Expand Down

0 comments on commit 04a53eb

Please sign in to comment.