Skip to content

Commit d9e8acd

Browse files
committed
mouseDownPlaceBlock
1 parent 8d48322 commit d9e8acd

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

clouds.blend

-846 KB
Binary file not shown.

clouds.blend1

-863 KB
Binary file not shown.

index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,14 @@ <h3>Gra zatrzymana</h3>
126126

127127
//clouds
128128
var loader = new FBXLoader();
129-
loader.load( 'clouds.fbx', function ( object ) {
129+
loader.load( 'objects/clouds.fbx', function ( object ) {
130130
object.scale.x=0.1
131131
object.scale.y=0.1
132132
object.scale.z=0.1
133133
object.position.y=100
134134
scene.add( object );
135-
136135
} );
137136

138-
139137
//Camera
140138
var camera = new THREE.PerspectiveCamera(75, 2, 0.1, 1000);
141139
camera.rotation.order = "YXZ"
@@ -714,7 +712,7 @@ <h3>Gra zatrzymana</h3>
714712
setInterval(function () {
715713
raycast()
716714
})
717-
$(document).click(function (e) {
715+
$(document).mousedown(function (e) {
718716
// console.log(positionQ)
719717
// console.log(cube.position)
720718
if (selected && gameState=="game") {
File renamed without changes.

0 commit comments

Comments
 (0)