Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Pacman3D-iOS
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Ullerich
Pacman3D-iOS
Commits
56018183
Commit
56018183
authored
8 years ago
by
Tobias Ullerich
Browse files
Options
Downloads
Patches
Plain Diff
Change main camera, add floor
parent
0515b468
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Pacman3D-iOS/GameViewController.swift
+3
-3
3 additions, 3 deletions
Pacman3D-iOS/GameViewController.swift
Pacman3D-iOS/art.scnassets/Pacman.dae
+4
-4
4 additions, 4 deletions
Pacman3D-iOS/art.scnassets/Pacman.dae
Pacman3D-iOS/art.scnassets/ship.scn
+0
-0
0 additions, 0 deletions
Pacman3D-iOS/art.scnassets/ship.scn
with
7 additions
and
7 deletions
Pacman3D-iOS/GameViewController.swift
+
3
−
3
View file @
56018183
...
@@ -47,7 +47,7 @@ class GameViewController: UIViewController {
...
@@ -47,7 +47,7 @@ class GameViewController: UIViewController {
scnView
.
scene
=
scene
scnView
.
scene
=
scene
// allows the user to manipulate the camera
// allows the user to manipulate the camera
scnView
.
allowsCameraControl
=
tru
e
scnView
.
allowsCameraControl
=
fals
e
// show statistics such as fps and timing information
// show statistics such as fps and timing information
scnView
.
showsStatistics
=
true
scnView
.
showsStatistics
=
true
...
@@ -96,7 +96,7 @@ class GameViewController: UIViewController {
...
@@ -96,7 +96,7 @@ class GameViewController: UIViewController {
}
}
override
var
shouldAutorotate
:
Bool
{
override
var
shouldAutorotate
:
Bool
{
return
tru
e
return
fals
e
}
}
override
var
prefersStatusBarHidden
:
Bool
{
override
var
prefersStatusBarHidden
:
Bool
{
...
@@ -105,7 +105,7 @@ class GameViewController: UIViewController {
...
@@ -105,7 +105,7 @@ class GameViewController: UIViewController {
override
var
supportedInterfaceOrientations
:
UIInterfaceOrientationMask
{
override
var
supportedInterfaceOrientations
:
UIInterfaceOrientationMask
{
if
UIDevice
.
current
.
userInterfaceIdiom
==
.
phone
{
if
UIDevice
.
current
.
userInterfaceIdiom
==
.
phone
{
return
.
allButUpsideDown
return
.
portrait
}
else
{
}
else
{
return
.
all
return
.
all
}
}
...
...
This diff is collapsed.
Click to expand it.
Pacman3D-iOS/art.scnassets/Pacman.dae
+
4
−
4
View file @
56018183
...
@@ -4,8 +4,8 @@
...
@@ -4,8 +4,8 @@
<contributor>
<contributor>
<authoring_tool>
SceneKit Collada Exporter v1.0
</authoring_tool>
<authoring_tool>
SceneKit Collada Exporter v1.0
</authoring_tool>
</contributor>
</contributor>
<created>
2017-06-19T1
2:53:45
Z
</created>
<created>
2017-06-19T1
3:19:41
Z
</created>
<modified>
2017-06-19T1
2:53:45
Z
</modified>
<modified>
2017-06-19T1
3:19:41
Z
</modified>
<unit
meter=
"1.000000"
/>
<unit
meter=
"1.000000"
/>
<up_axis>
Z_UP
</up_axis>
<up_axis>
Z_UP
</up_axis>
</asset>
</asset>
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<optics>
<optics>
<technique_common>
<technique_common>
<perspective>
<perspective>
<xfov>
49.134
3
</xfov>
<xfov>
49.134
</xfov>
<znear>
0.1
</znear>
<znear>
0.1
</znear>
<zfar>
100
</zfar>
<zfar>
100
</zfar>
</perspective>
</perspective>
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
</instance_geometry>
</instance_geometry>
</node>
</node>
<node
id=
"Camera_001"
name=
"Camera_001"
>
<node
id=
"Camera_001"
name=
"Camera_001"
>
<matrix>
1 0 0 0 0 -4.37114e-08 -1 -4.303865 0 1 -4.37114e-08 5.74143e-07
0 0 0 1
</matrix>
<matrix>
0.009428203 0.3446076 -0.9386549 -5.094206 -0.9999211 0.00324893 -0.008850717 0.0210471 -3.576155e-07 0.9387442 0.3446054 2.326969
0 0 0 1
</matrix>
<instance_camera
url=
"#Camera_001-camera"
/>
<instance_camera
url=
"#Camera_001-camera"
/>
</node>
</node>
</visual_scene>
</visual_scene>
...
...
This diff is collapsed.
Click to expand it.
Pacman3D-iOS/art.scnassets/ship.scn
+
0
−
0
View file @
56018183
No preview for this file type
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment