Build iOS Games with Sprite Kit by Jonathan Penn Josh Smith

Build iOS Games with Sprite Kit by Jonathan Penn Josh Smith

Author:Jonathan Penn, Josh Smith
Language: eng
Format: epub
Tags: Pragmatic Bookshelf
ISBN: 978-1-94122-210-2
Publisher: The Pragmatic Bookshelf, LLC


​ }

Just like with the scoreGroup and the elapsedGroup, we look up the powerupGroup node that contains the labels and set the position, taking the scene size into account. In this case we’re setting the x-coordinate to zero, which is dead center of the node, and the y-coordinate to the top of the scene minus the calculated height of the group node.

With the power-up labels positioned and ready, we can fetch them at the start of the ‑showPowerupTimer: method.

05-HUD/step04/SpaceRun/RCWHUDNode.m

​ - (​void​)showPowerupTimer:(NSTimeInterval)time



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.