• No results found

Learn GameSalad for. ios: Game. Development for. iphone, ipad, and HTML5. David Guerineau. Apress*

N/A
N/A
Protected

Academic year: 2021

Share "Learn GameSalad for. ios: Game. Development for. iphone, ipad, and HTML5. David Guerineau. Apress*"

Copied!
7
0
0

Loading.... (view fulltext now)

Full text

(1)

iOS: Game

Development

for

iPhone,

iPad,

and HTML5

i

David Guerineau

Apress*

(2)

CONTENTS

Contents

About the Author xii About theTechnical Reviewer xiii

Acknowledgments

xiv

Introduction

xv

Part 1:

Learning

the GameSalad Fundamentals 1

Chapter

1:

Preparing

Your

Design

Environment 3 GameSalad

Requirements

3

Registering

to GameSalad 4

About GameSalad Pro 5

Registering

in the iOS

Developer Program

6

Installing

Xcode 14

Installing

GameSalad Creator 17

Installing

GameSalad iOS Viewer 19 Whyis GameSalad iOS Viewerapieceofcode? 19

GettingtheGameSalad iOS Viewer 20

InstallingtheDeveloperCertificate in YourKeychain 20

CreatingaProvisioningProfile for iOS Viewer 23

InstallingiOSViewer 26

Summary

29

Chapter

2: Your First Game from Scratch: The

Pong

Game .31 A Little Bit of

HistoryAbout Pong

31

Specifying

the Game

Concept

and Rules 34

The GameConcept 34 The Game Rules 35

Creating

a New GameSalad

Project

35

Adding

Actors 39

What isanactor? 39

Creatingactors 40

(3)

Modifying

Actors Attributes 41

InstanceorPrototype 41 Actor Attributes 42

CommonlyUsed Attributes 42

ModifyingAttributes 44

Adding

Behaviors 46

Whatarebehaviors? 46

AddingBehaviors 47

Adding

an Actor to the Scene 51

Creating

Other Actors 52

RacketPlayer2 53 The Ball 54 Walls 60 Tags 61 Let's

Play

63

Summary

63

£

Chapter

3:

Finishing

Pong: Scoring

and Game Interaction 65

Let's

Keep

Score 65

It's All About the Ace! 74

ServingFeature: The Winner of the Point Serves the NextBall 74

KeepingOne Ball in the GameataTime 76

Do You Have the Touch? 79

ServingwithaPinch of Touch 79

Giving

Your Game a Brain 81

Detectingthe Direction andGettingthe Y Value 81

Moving Player2 Rackettothe Stored Value 83

Pong,

Talk to Me 84

Let's

Play

onYour Device 85

Summary

86

«

Chapter

4: Break A Wall:

Implementing Comments,

Accelerometer

Movements,

LifeManagement,

and Pause 87

Laying

Down the Basics 90

Definingthe NewProject 90

Definingthe Actors 90

CreatingtheCollidable Tag 97

Definingthe Attributes 98

Implementingthe Rules andBehaviors 98

Layoutof the Scene 106

(4)

CONTENTS

Commenting

Your Work 107

Moving

thePaddle with the Accelerometer 109

Managing

Lives and the GameOver process 115

Adding

a PauseFeature 119

Summary

123

B

Chapter

5:

Making

a Shoot 'Em

Up

Game: Carrot Invader 125

Preparing

theBasic Elementsof the Scene 127 Creatingthe Carrot Invader GameProject 127 Artist Entrance:Creatingthe Actors 127

Controllingthe Number of Enemies with Game Attributes 133

SettingtheScreenplay: ImplementingRulesandBehaviors 134 The Invasion isStarting: Creatingthe SceneLayout 142

Adding

Advanced Features 143

ComplexMovements 143

GivingtheImpressionofSpaceshipMovement 148

ManagingtheEnergyBar 152 SceneManagement 157

Summary...

158 Part2: Let's

Spice Up

the Saladwith Advanced Functions and Effectsin

GameSalad 159

Chapter

6:

Learning Gravity,

Basic

Physics,

and Camera Controls: An

Angry

Birds-like

Game,

Part I 161

Building

a

Slingshot:

Elastic and Pullback Force 162

AnatomyofaSlingshot 162

Buildingthe Pullback Force 166 How to SimulateanElastic in GameSalad 175

Controlling

theCamera:

Scrolling

Across the Scene ...184

TheScreenvs.the Scene 184

ImplementingtheScrolling 186

Flying

and

Falling

Down:

Gravity Concepts

187

OnceUponaTime,There WasanApple 187

FlyingandDragging 188

MoreCamera Controls:

Zooming

In/Out While

Flying...

189

ZoomingOut 189

ZoomingIn 191

Projectile Management:

Managing

the

Attempts

193 AddingBoundaries 193

Creating Dummy Projectiles 195

(5)

ModifyingtheProjectileInstance 198

Summary

• 202

m

Chapter

7:

Creating

a Game Menu and a Particles Effect: An

Angry

Birds-like

Game,

Part II 203

Aiming

ata

Target: Destroying

Blocks 204

Creatingthe Blocks:Hard,Soft,andtheTarget 204 Make ThemCollide 205 Ground ThemonEarth:Gravity 206

Letthe ActorsEnter the Scene 207

Witha Touch of

Style:

The Particle Effect 208 The Parametersof the Particle Effect 208 AnExplosionof Colors 213

Performance

Optimization

with Tables 217

Introduction to TablesinGameSalad 217

ManagingSeveral Scenes in One Scene 220

Adding

a Cool Menu 234

Creatingthe Menu Scene 234

ManagingUnlocked Levels 235

ImplementingtheSlidingEffect 238

EnablingLevel Selection 242

AddingaMenu Buttononthe Initial Scene 244

Summary

245

Chapter

8:

Graphics

and Sound Effects:

Labyrinth

247

Creating

the

Labyrinth

Game

Project

248

Creating

Actors for the

Labyrinth

Game 248

Defining

the Game

Logic

with RulesandBehaviors 253

Designing

the Game Area

by Laying

Out theScene 263

Implementing

Lighting Special

Effects 266

Implementing

Sound

Special

Effects 267

Summary

270

Part 3:

Prepping

for the

App

Store:

Polishing, Publishing,

and

Promoting

Your

Game 271

a

Chapter

9:Bonuses,Game

Center,

and iAd: Break aWall 273

Designing

the Start Screen 274 Creatingthe Actors 275

ImplementingRules and Behaviors 276

Adding

Score

Keeping

283

(6)

CONTENTS

ScoreDisplayActor 286

ScoreDisplayRulesand Behaviors 287

Creating

the Extra-Bonus Actors 289

50ptcap Actor 289

Implementing

the Extra-Bonus Rules and Behaviors 291

Posting

Scores onGame Center Leaderboard 300

Loginto Game Center 301

PostingaScore 302

Showingthe Scores 303

iAd 304

Summary

306

Chapter

10: Device Internal Clock and

Cyclic

Movement: Non-Game

Apps307

Creating

an

Analog

Clock with the Device Clock andRotation 308

Accessingthe Device Clock 309 Creatingthe ClockProject 309

CreatingtheBackgroundand the Clock Hands 310 Creatingthe Clock Mechanisms: Rulesand Behaviors 313

Assemblingthe Clock:Layingout the Scene 317

Cyclic

Movement: The Metronome 318

Creatingthe MetronomeProject 319 MetronomeMechanical Components:CreatingtheActors 320

StoringInformation:DefiningtheAttributes 323

Creating Mechanical Movements: Rules and Behaviors 324

Buildingthe Metronome:Layingoutthe Scene 338

Summary 340

Chapter 11:

Submitting

YourGameto the

App

Store 341

Getting

the

AppID, Certificate,

and Distribution

Provisioning

Profile onthe

Provisioning

Portal 342

CreatingYourAppID 342 Your Distribution Certificate 343

Creatingthe DistributionProvisioningProfile 343

Creating

the Gameon iTunes Connect 345

Step1:LoggingintoiTunes Connect 345

Step2:CreatingaNewApp 346

Step3:ProvidingBasic Information 346

Step4:ReleaseDateandPricingInformation 347

Step5:ProvidingVersion andCategoryInformation 347

Step6:DefiningYourApplication Rating 348

Step7:ProvidingMetadata Information 349

Step8:ReadingandAcceptingthe EULAAgreement 350 X

(7)

Step9: ProvidingtheGame Artwork 350

EnablingGame Center for YourApp 352

EnablingiAd 356

Updating

Game Center in GameSalad 357

Publishing

the Game Inside GameSalad 357

Step1:SelectingtheTargetedPlatform 357

Step2:ProvidingOverview Information 358

Step3:SelectingYourProvisioningProfile 360

Step4:ProvidingaLink toaPromotional YouTube Video 362

Step5:UploadingYourScreenshots 362

Step6:ReadingandAcceptingtheAgreement 362

Step7:CompressingYourFile 364

Uploading

the Game to iTunes 364

Wait and Waitand Wait 369 Your Game is

Ready

for Sale 370

Summary

370

9

Chapter

12: Introduction to Game Promotion 371

Pre-Development

Phase 372 DefiningYourTargetedCustomers 372

IdentifyingandQualifyingYourCompetition 374

CreatingYourUniqueValue Proposition 377

Operational Tactics 380

WritingaPress Release 380

CreatingaWeb Page 381

GettingYour Game ReviewedonAppReview WebSites 382

CreatingaFacebookPage 382

Summary

386

Who This Book Is For xiv

WhatYou Will Learn xiv

Downloadingthe Code xv

ContactingtheAuthor xv

if Index 387

References

Related documents

Within the Hutong community, the inhabitants managed the space with sophistication, both at a physical level and a social level, to live a harmonized life. Hutong did not

In the public sector, most workers who are covered by a collective bargaining agreement are employed by local governments (59.0% in 2013). Another 27.2% of covered public sector

За астматичного синдрому в коней розвивається субкомпенсований дихальний алкалоз за якого в крові встановлена те - нденція до зниження парціального тиску вуглекислого газу

He describes the market price changes as follows: "If the population sells its goods normally (al-wajh al-ma'ruf) without using unfair ways then the price

This study further applied an analysis of five types of gold target products to establish a full replication portfolio and two optimised replication portfolios (50-10-10-30 and

Because patient-derived and established NSCLC cell lines showed overexpression of PKM2 and PKM2 enzyme activities, we hypothesized that inhibiting enzyme activity by small mole-

ture learning a statistical model whose random variables are the Markov network structure, the conditional independence tests tests, and the data.. 1.2 Notation

When tn3270 is specified as the command, or in the case of AIX, any of the three TELNET commands ( telnet , tn , or tn3270 ), and a IBG 3270 block mode capable host is