Skip to content

Commit

Permalink
Fix Graphical Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrick committed Jan 3, 2014
1 parent 7750ea4 commit 47bb68b
Show file tree
Hide file tree
Showing 65 changed files with 871 additions and 7 deletions.
4 changes: 4 additions & 0 deletions Assets/Chunk.prefab.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions Assets/ChunkMaterial.mat.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Assets/Scripts.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Scripts/Chunk.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Scripts/Crosshair.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Scripts/Noise.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions Assets/Scripts/PlayerIO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ void Update () {


if (Input.GetMouseButtonDown(0)){
Vector3 p = hit.point;
p -= hit.normal / 4;

chunk.SetBrick(0, p);
Vector3 p = hit.point;
p -= hit.normal / 4;
chunk.SetBrick(0, p);

}

Expand All @@ -40,6 +39,7 @@ void Update () {
Vector3 p = hit.point;
if (selectedInventory != 0){
p += hit.normal / 4;
if (p != new Vector3 (GameObject.FindWithTag("MinecraftPlayer").transform.position.x,GameObject.FindWithTag("MinecraftPlayer").transform.position.y,GameObject.FindWithTag("MinecraftPlayer").transform.position.z))
chunk.SetBrick(selectedInventory,p);
}

Expand All @@ -57,11 +57,13 @@ void Update () {
if (Input.GetKeyDown (KeyCode.F5)) {
if (resetCamera == false) {
transform.localPosition -= Vector3.forward * 2;
GameObject.FindWithTag("MinecraftPlayer").layer = 1;
resetCamera = true;
}
else{
transform.position = transform.parent.root.transform.localPosition + new Vector3(0f, 0.7f, 0.06f);
transform.rotation = transform.parent.root.transform.rotation;
GameObject.FindWithTag("MinecraftPlayer").layer = 8;
resetCamera = false;
}
}
Expand Down
8 changes: 8 additions & 0 deletions Assets/Scripts/PlayerIO.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Scripts/PlayerWalkScript.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Scripts/PlayerWalkScriptLeft.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Scripts/World.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Assets/Standard Assets.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Assets/Standard Assets/Character Controllers.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Assets/Standard Assets/Character Controllers/Materials.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 47bb68b

Please sign in to comment.