webelinx - ios development: earn 100k daily with 1h of coding #tnt3

24
S Earn 100K daily with 1h of coding iOS game development

Upload: sicef

Post on 22-Apr-2015

338 views

Category:

Software


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

S

Earn 100K daily with 1h of coding

iOS game development

Page 2: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3
Page 4: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

The GAME

Page 5: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

S

DEMOThe Game

Page 6: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

- Xcode- Objective C- Sprite Kit

Page 7: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

Objective C – Data Types

- C based language- Data Types

- Primitive- Int- Char- Float

- Cocoa Framework- NSObject- NSNumber- NSString- NSArray- NSDictionary

Page 8: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

Objective C - Syntax

Constructors

NSMutableDictionary* dict = [[NSMutableDictionary alloc] init];

Functions

- (void)setObject:(id)anObject forKey:(id <NSCopying>)aKey;

[dict setObject:@"some string" forKey:@"key"];

Page 9: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

S

DEMOCreating New Project in Xcode

Page 10: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

Sprite

Kit

Positio

nin

g

Page 11: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

S

DEMOAdding background

Page 12: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

Movin

g th

e G

rou

nd

Page 13: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

S

DEMOAnimation

Page 14: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

Simple Physics

CGPoint gravity = CGPointMake(0, kGravity);CGPoint gravityStep = CGPointMultiplyScalar(gravity, _dt);_playerVelocity = CGPointAdd(_playerVelocity, gravityStep);

CGPoint velocityStep = CGPointMultiplyScalar(_playerVelocity, _dt);_player.position = CGPointAdd(_player.position, velocityStep);

_playerVelocity = CGPointMake(0, kImpulse);

Page 15: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

S

DEMOMoving the bug

Page 16: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

Collisio

n

Page 17: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

Sprite Kit - Collision

- (void)didBeginContact:(SKPhysicsContact *)contact

typedef NS_OPTIONS(int, EntityCategory){ EntityCategoryPlayer = 1 << 0, EntityCategoryObstacle = 1 << 1, EntityCategoryGround = 1 << 2};

self.physicsBody.categoryBitMask = EntityCategoryGround;self.physicsBody.contactTestBitMask = EntityCategoryPlayer;

Page 18: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

S

DEMOCollision

Page 19: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

Positioning Logs

Page 20: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

S

DEMOPositioning logs

Page 21: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

Sco

re

Page 22: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

S

DEMOScore

Page 23: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3
Page 24: Webelinx - iOS development: earn 100k daily with 1h of coding #tnt3

THANK YOU !