-
+
+
+
+
-
-
-
Health 20 / 20
-
Hunger 20 / 20
-
Mode Survival
-
Dimension OVERWORLD
-
Time 0:00
-
Target なし
-
-
操作: WASD / Space / E / I / 1-9 / 右クリック設置
-
-
-
-
-
-
-
-
-
Controls
-
- 操作 説明
- W/A/S/D 移動
- マウス 視点移動
- 左クリック ブロック破壊
- 右クリック ブロック設置 / インタラクト
- E チェスト・作業台・ポータルを操作
- I インベントリ / クラフトを開く
- 1-9 ホットバー選択
- Esc ポーズ / メニュー
-
-
Close
-
-
-
-
-
Options
-
- Volume
-
-
-
Close
-
-
-
-
-
Inventory + Crafting
-
+
-
-
-
-
-
+
+
+
+
+
-
+ _updateCamera() {
+ const yaw = this.playerRotation.yaw;
+ const pitch = this.playerRotation.pitch;
+ const camX = this.playerPosition.x;
+ const camY = this.playerPosition.y + PLAYER_HEIGHT * 0.85;
+ const camZ = this.playerPosition.z;
+ this.camera.position.set(camX, camY, camZ);
+ const lookX = camX - Math.sin(yaw) * Math.cos(pitch);
+ const lookY = camY + Math.sin(pitch);
+ const lookZ = camZ - Math.cos(yaw) * Math.cos(pitch);
+ this.camera.lookAt(lookX, lookY, lookZ);
+ }
+ }
+
+ // ============================================================
+ // 起動
+ // ============================================================
+ const game = new MinecraftGame();
+ game.init().then(() => {
+ console.log('Minecraft Browser Edition ready!');
+ console.log('Controls: WASD=Move, Space=Jump, Mouse=Look, LeftClick=Break, RightClick=Place/Use, E=Inventory, 1-9=Hotbar, Esc=Pause');
+ console.log('Special items: Torch (places light), Apple/Bread (food), Compass, Clock, Bucket, Weapons, Armor');
+ console.log('Special blocks: Chest (storage), Crafting Table, Bed (spawn point), Door');
+ }).catch(err => {
+ console.error('Failed to initialize game:', err);
+ document.body.innerHTML +=
+ '
Failed to load game. Please check console.
';
+ });
+
+ console.log('Minecraft Browser Edition - Script loaded. Waiting for ZIP and initialization...');
+
-
+