From b1b356896a8e6f515767c20b6fa371079053a0eb Mon Sep 17 00:00:00 2001
From: tobias <thinkdifferent055@gmail.com>
Date: Sun, 25 Jun 2017 14:22:51 +0200
Subject: [PATCH] Change pacman camera and block height

---
 Pacman3D-iOS/GameViewController.swift | 6 +++---
 Pacman3D-iOS/art.scnassets/Pacman.dae | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/Pacman3D-iOS/GameViewController.swift b/Pacman3D-iOS/GameViewController.swift
index 6b8c8c5..e64064e 100644
--- a/Pacman3D-iOS/GameViewController.swift
+++ b/Pacman3D-iOS/GameViewController.swift
@@ -40,9 +40,9 @@ class GameViewController: UIViewController, SKSceneDelegate {
         for (y, line) in level.data.enumerated() {
             for (x, block) in line.enumerated() {
                 if block == .wall {
-                    let box = SCNBox(width: 5, height: 5, length: 5, chamferRadius: 0)
+                    let box = SCNBox(width: 5, height: 2, length: 5, chamferRadius: 0)
                     let node = SCNNode(geometry: box)
-                    node.position = SCNVector3(x: Float(x * 5), y: 2.5, z:Float(y * 5))
+                    node.position = SCNVector3(x: Float(x * 5), y: 1, z:Float(y * 5))
                     scene.rootNode.addChildNode(node)
                 }
             }
@@ -119,7 +119,7 @@ class GameViewController: UIViewController, SKSceneDelegate {
         let node = SKSpriteNode(imageNamed: "run.png")
         node.position = CGPoint(x: 100, y: 100)
         node.size = CGSize(width: 50, height: 100)
-        scene.addChild(node)
+        //scene.addChild(node)
         return scene
     }
     
diff --git a/Pacman3D-iOS/art.scnassets/Pacman.dae b/Pacman3D-iOS/art.scnassets/Pacman.dae
index a04bb4a..c30c9d6 100755
--- a/Pacman3D-iOS/art.scnassets/Pacman.dae
+++ b/Pacman3D-iOS/art.scnassets/Pacman.dae
@@ -4,8 +4,8 @@
   <contributor>
    <authoring_tool>SceneKit Collada Exporter v1.0</authoring_tool>
   </contributor>
-  <created>2017-06-19T15:47:15Z</created>
-  <modified>2017-06-19T15:47:15Z</modified>
+  <created>2017-06-25T12:19:42Z</created>
+  <modified>2017-06-25T12:19:42Z</modified>
   <unit meter="1.000000"/>
   <up_axis>Z_UP</up_axis>
  </asset>
@@ -159,7 +159,7 @@
     </instance_geometry>
    </node>
    <node id="Camera_001" name="Camera_001">
-    <matrix>0.00942713 0.2635223 -0.9645737 -6.061088 -0.9999358 0.002483249 -0.009094264 0.01192989 -9.834569e-07 0.9646677 0.2635197 2.681937 0 0 0 1 </matrix>
+    <matrix>0.009426713 0.2029489 -0.9791163 -8.764185 -0.9999417 0.001911938 -0.009230762 -0.01355593 -1.281482e-06 0.9792057 0.2029483 3.996047 0 0 0 1 </matrix>
     <instance_camera url="#Camera_001-camera"/>
    </node>
   </visual_scene>
-- 
GitLab