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
6c2903ed
Commit
6c2903ed
authored
7 years ago
by
Tobias Ullerich
Browse files
Options
Downloads
Patches
Plain Diff
Add monster rotation and launchscreen
parent
402f1397
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Pacman3D-iOS/Base.lproj/LaunchScreen.storyboard
+23
-6
23 additions, 6 deletions
Pacman3D-iOS/Base.lproj/LaunchScreen.storyboard
Pacman3D-iOS/Monster.swift
+14
-1
14 additions, 1 deletion
Pacman3D-iOS/Monster.swift
with
37 additions
and
7 deletions
Pacman3D-iOS/Base.lproj/LaunchScreen.storyboard
+
23
−
6
View file @
6c2903ed
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"11134"
systemVersion=
"15F34"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
launchScreen=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
initialViewController=
"01J-lp-oVM"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"12121"
systemVersion=
"16F73"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
launchScreen=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
initialViewController=
"01J-lp-oVM"
>
<device
id=
"retina4_7"
orientation=
"landscape"
>
<adaptation
id=
"fullscreen"
/>
</device>
<dependencies>
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"11106"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"12089"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
<scenes>
<scenes>
...
@@ -14,14 +18,27 @@
...
@@ -14,14 +18,27 @@
<viewControllerLayoutGuide
type=
"bottom"
id=
"xb3-aO-Qok"
/>
<viewControllerLayoutGuide
type=
"bottom"
id=
"xb3-aO-Qok"
/>
</layoutGuides>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"Ze5-6b-2t3"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"Ze5-6b-2t3"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
375
"
height=
"
667
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
667
"
height=
"
375
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"LaunchScreen"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"vjF-TF-aIH"
>
<rect
key=
"frame"
x=
"183"
y=
"37"
width=
"300"
height=
"300"
/>
</imageView>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"vjF-TF-aIH"
firstAttribute=
"top"
secondItem=
"Llm-lL-Icb"
secondAttribute=
"bottom"
constant=
"17"
id=
"IiC-5F-LVv"
/>
<constraint
firstItem=
"vjF-TF-aIH"
firstAttribute=
"centerX"
secondItem=
"Ze5-6b-2t3"
secondAttribute=
"centerX"
id=
"g4n-x6-kS0"
/>
<constraint
firstItem=
"vjF-TF-aIH"
firstAttribute=
"centerY"
secondItem=
"Ze5-6b-2t3"
secondAttribute=
"centerY"
id=
"mqA-KI-O7V"
/>
</constraints>
</view>
</view>
</viewController>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"iYj-Kq-Ea1"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"iYj-Kq-Ea1"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
</objects>
<point
key=
"canvasLocation"
x=
"5
3"
y=
"375
"
/>
<point
key=
"canvasLocation"
x=
"5
2.623688155922046"
y=
"373.60000000000002
"
/>
</scene>
</scene>
</scenes>
</scenes>
<resources>
<image
name=
"LaunchScreen"
width=
"300"
height=
"320"
/>
</resources>
</document>
</document>
This diff is collapsed.
Click to expand it.
Pacman3D-iOS/Monster.swift
+
14
−
1
View file @
6c2903ed
...
@@ -12,7 +12,20 @@ import SceneKit
...
@@ -12,7 +12,20 @@ import SceneKit
class
Monster
:
Equatable
{
class
Monster
:
Equatable
{
private
(
set
)
var
position
:
SCNVector3
private
(
set
)
var
position
:
SCNVector3
private
var
direction
:
Direction
=
.
north
private
var
direction
:
Direction
=
.
north
{
didSet
{
switch
direction
{
case
.
north
:
node
?
.
rotation
=
SCNVector4
(
x
:
0
,
y
:
1
,
z
:
0
,
w
:
1.5
*
Float
.
pi
-
Float
.
pi
*
0.25
)
case
.
east
:
node
?
.
rotation
=
SCNVector4
(
x
:
0
,
y
:
1
,
z
:
0
,
w
:
1.0
*
Float
.
pi
-
Float
.
pi
*
0.25
)
case
.
south
:
node
?
.
rotation
=
SCNVector4
(
x
:
0
,
y
:
1
,
z
:
0
,
w
:
0.5
*
Float
.
pi
-
Float
.
pi
*
0.25
)
case
.
west
:
node
?
.
rotation
=
SCNVector4
(
x
:
0
,
y
:
1
,
z
:
0
,
w
:
2.0
*
Float
.
pi
-
Float
.
pi
*
0.25
)
}
}
}
private
let
level
:
Level
private
let
level
:
Level
private
let
scene
:
SCNScene
private
let
scene
:
SCNScene
...
...
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