This repository has been archived by the owner on Jun 3, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
620 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/*------------Limites do campo--------------*/ | ||
function addBaseCampo(obj, material, x, y, z){ | ||
'use strict'; | ||
|
||
geometry = new THREE.PlaneGeometry(160, 160); | ||
|
||
mesh = new THREE.Mesh(geometry, material); | ||
mesh.position.set(x, y, z); | ||
|
||
obj.add(mesh); | ||
} | ||
|
||
function createCampo(x, y, z){ | ||
'use strict' | ||
|
||
campo = new THREE.Object3D(); | ||
|
||
loaderCampo = new THREE.TextureLoader(); | ||
//textureCampo = loaderCampo.load("..."); | ||
|
||
//posicao 0 -> fundo em jpeg | ||
textureCampo.push(loaderCampo.load("js/Objects/Img/fundo2.jpeg")); | ||
//posicao 1 -> fundo em png | ||
textureCampo.push(loaderCampo.load("js/Objects/Img/fundo1.png")); | ||
//posicao 2 -> fundo em jpg | ||
textureCampo.push(loaderCampo.load("js/Objects/Img/fundo3.jpg")); | ||
|
||
materialCampo = new THREE.MeshBasicMaterial(); | ||
//Imagem inicial de fundo | ||
|
||
materialCampo.map = textureCampo[2]; | ||
|
||
addBaseCampo(campo, materialCampo, 0, 0, 0); | ||
|
||
scene.add(campo); | ||
|
||
campo.position.x = x; | ||
campo.position.y = y; | ||
campo.position.z = z; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
var msg, materialMsg, loaderMsg, textureMsg = []; | ||
|
||
function addBaseMsg(obj, material, x, y, z){ | ||
'use strict'; | ||
|
||
geometry = new THREE.PlaneGeometry(40, 40); | ||
|
||
mesh = new THREE.Mesh(geometry, material); | ||
mesh.position.set(x, y, z); | ||
|
||
obj.add(mesh); | ||
} | ||
|
||
function createMsg(x, y, z){ | ||
'use strict' | ||
|
||
msg = new THREE.Object3D(); | ||
|
||
loaderMsg = new THREE.TextureLoader(); | ||
|
||
//posicao 0 -> O jogador perdeu | ||
textureMsg.push(loaderMsg.load("js/Objects/Img/perdeu.png")); | ||
//posicao 1 -> O jogador ganhou | ||
textureMsg.push(loaderMsg.load("js/Objects/Img/ganhou.png")); | ||
//posicao 2 -> O jogador carregou na pausa | ||
textureMsg.push(loaderMsg.load("js/Objects/Img/pausa.png")); | ||
|
||
materialMsg = new THREE.MeshBasicMaterial(); | ||
//Imagem inicial de fundo | ||
//materialMsg.map = textureMsg[0]; | ||
|
||
addBaseMsg(msg, materialMsg, 0, 0, 0); | ||
|
||
scene.add(msg); | ||
|
||
msg.position.x = x; | ||
msg.position.y = y; | ||
msg.position.z = z; | ||
} |
Oops, something went wrong.