際際滷

際際滷Share a Scribd company logo
Games on your wrist?
Peter Tuszy┰ski, CTO @ inFullMobile
How the hell did I get here?
Who am I?
? CTO @ inFullMobile
? EIR @ HardGamma Ventures
? Ex-entrepreneur & founder @ Appvetica
? First mobile dev @ Agora
? Epee fencer, aviation enthusiast, hacker
Agenda
? ?Watch
? SpriteKit 101
? Speci?cs of SpriteKit on ?Watch
? Quick DEMO!
?Watch Internals
? 520 MHz CPU (dual core)
? 512MB RAM (same as iPhone 4)
? 8GB storage
? WIFI / BT / NFC / FM (GPS in
series 2)
?Watch Sensors
? Ambient light
? Accelerometer
? Gyroscope
? Heart rate
?Watch Haptic Feedback
? First Apple device to sport
Taptic Engine
? Important events
? Each haptic is combined with
an audio tone
?Watch Touchscreen Input
? Taps
? Gestures
? Swipe
? Pan
? Force touch
?Watch Hardware Input
? Digital Crown
? Side button
? Sensors
Philosophies of ?Watch
? Watch is not another place to
spam your users with irrelevant
data
? Unlike building apps for iPhone,
Watch apps won¨t make you a
millionaire
? Current iteration of AppleWatch
isn¨t iPhone 1.0
? It¨s not called an iWatch!
SpriteKit 101
SpriteKit
? 2D rendering and animation framework shipped
with iOS SDK
? Allows to manage layers as hierarchical tree of
nodes
? Root of all nodes is SKNode -> UIResponder ->
NSObject
? It¨s fairly simple to use (& debug!)
SKView
? In charge of displaying SpriteKit scene
? SKView -> UIView -> UIResponder -> NSObject
SKScene
? SKScene object is the root of all node trees
displayed in SpriteKit
? SKScene inherits from SKNode
? Displayed in UI by SKView (presentScene:)
SKSpriteNode
? Most common node type
? Can display images
(textures) or rectangular
area ?lled with a color
? Position = point where
sprite is drawn with
reference to its parent
node
Origin
Anchor point (0.5, 0.5)
Position
Y
X
SKAction
? Animation (or other event) which occurs over a
period of time
? Actions are run on sprite instances
SKAction *action = [SKAction
rotateByAngle:M_PI/2 duration: 1]
[mysprite runAction:action]
Games on AppleWatch
Scene editor
SpriteKit + ?Watch
Is this a joke?
? Hell no :)
? SpriteKit & SceneKit are
available in WatchOS3
? Remember slide about
Philosophies of ?Watch? :)
? It¨s A WATCH.
SpriteKit vs SpriteKit on
WatchOS
SpriteKit vs SpriteKit on
WatchOS
Touch recognition
? WKGestureRecognizer
? WKTapGestureRecognizer
? WKPanGestureRecognizer
? WKSwipeGestureRecognizer
? WKLongPressGestureRecognizer
DigitalCrown API
WKInterfaceController
crownSequencer: WKCrownSequencer
rotationsPerSecond: Double
isIdle: Bool
crownDidRotate(WKCrownSequencer?, rotationalDelta: Double)
crownDidBecomeIdle(WKCrownSequencer?)
CoreMotion
Quick demo time!
Recap
? Just because you can doesn¨t
mean you have to
? IMHO screen estate, performance
& power constraints greatly limit
Watch as a game platform
? Extension/Companion to a `big¨
game on AppleTV, iPad, iPhone
Thanks!
? piotr.tuszynski@infullmobile.com
? @dusker

More Related Content

Games on AppleWatch