amazon services for games, with unity

50
Amazon Services for Games Peter Heinrich, Technical Evangelist [email protected] February 27, 2013

Upload: peter-heinrich

Post on 19-May-2015

1.680 views

Category:

Technology


3 download

DESCRIPTION

Using Amazon Services for Games from Unity

TRANSCRIPT

Page 1: Amazon Services for Games, with Unity

Amazon Services for Games

Peter Heinrich, Technical [email protected]

February 27, 2013

Page 2: Amazon Services for Games, with Unity

Amazon’s Kindle Family

Page 3: Amazon Services for Games, with Unity

Kindle Fire

Kindle Fire quickly became the most successful product launch in the history of Amazon.com

• Earned over 10,000 5-star customer reviews• Remained the #1 best-selling product on Amazon• Captured 22% of U.S. tablet sales in just nine months

Breakthrough Technology• Stunning HD displays• World class audio with Dolby Digital Plus• Fastest Wifi of any tablet• 20 million songs, over 120K video titles, over 100K audio titles• Free month of Amazon Prime• Whispersync for books, movies, voice, and games• X-Ray for books/movies• Revolutionary 4G (250MB/month for 12 months - for $49) on 8.9” 4G

Page 4: Amazon Services for Games, with Unity

Kindle Is Good for Games

Page 5: Amazon Services for Games, with Unity

Amazon Wants to Help

• In-App Purchasing• Achievements• Leaderboards• Data Syncing• Insights Analytics• Maps• Device Messaging

COMING SOON

Page 6: Amazon Services for Games, with Unity

In-App PurchasingFriction-free Customer Experience

Page 7: Amazon Services for Games, with Unity

In-App PurchasingContent Types

Consumable• May be used only on device where purchased• May be purchased repeatedly

Entitled• May be used anywhere, once purchased• May only be purchased once

Subscription• May be applied to any entitled content• May be used anywhere, once purchased• Associates restricted time period with access• Multiple periods may be defined (only one purchased at a time)• Supports auto-renewal

Page 8: Amazon Services for Games, with Unity

In-App PurchasingMaintaining Relationship is Key

Engage users early• 16% of a customer's value is realized on the first day

Keep them in the game• 48% of repeat purchases happen within one hour of

the previous purchaseGive users a reason to come back

• 52% of revenue occurs after the first 7 daysProvide enough content for your most active users

• 2% of customers generate 30% of revenue

Page 9: Amazon Services for Games, with Unity

GameCircle

Page 10: Amazon Services for Games, with Unity

GameCircle

Supports social gaming by allowing players to connect, compare achievements, and compete for higher scores.

• Achievements• Leaderboards• Whispersync

Page 11: Amazon Services for Games, with Unity

GameCircle: Achievements

• Up to 100 different items• Shows partial completion• Can be hidden until

unlocked• Fully customizable

• Title• Locked/unlocked

descriptions• Locked/unlocked icons

Page 12: Amazon Services for Games, with Unity

GameCircle: Achievements

Players can compare their achievements with others.

Page 13: Amazon Services for Games, with Unity

GameCircle: Leaderboards

• Up to 50 different boards• Show player’s high score

and relative position• Fully customizable

• Title / Description / Icon• Units• “Cheat” threshold

• Cheat threshold helps discourage hacking

• Scores can be reset from Developer Portal

Page 14: Amazon Services for Games, with Unity

GameCircle: Leaderboards

Players can check their daily, weekly, or all-time standing, including absolute score and global percentile rank.

Page 15: Amazon Services for Games, with Unity

GameCircle: Whispersync

• Uninstall / reinstall games without losing progress• Synchronize progress across multiple Kindle Fire

devices• Revert to one of 5 historical progress points

Page 16: Amazon Services for Games, with Unity

Insights Analytics: A/B Testing

Allows experimentation with content and feature deployment, limiting access before widespread launch to a larger audience.

Tests are configured in the Developer Portal.

Page 17: Amazon Services for Games, with Unity

Insights Analytics: A/B Testing

• Variations are collections of variables sent to a device• Different variations are sent to unique groups• Statistical methods are used to determine if the results

from each variation differ

Page 18: Amazon Services for Games, with Unity

Insights Analytics: A/B Testing

A 95% confidence interval for conversion rate is computed from view and convert events defined for each A/B test.

The gold check indicates significance has been achieved.

Page 19: Amazon Services for Games, with Unity

Maps, Device Messaging

• No Unity support (YET)• Maps

• Replaces Google service• Kindle Fire 2 and Kindle Fire HD

• Amazon Device Messaging (ADM)• Beta program open (see website)• Free to deliver messages• Up to 6 KB per message

Page 20: Amazon Services for Games, with Unity

Common Setup

• Download SDK• Create Unity project• Import Amazon plug-in as Custom Package• Set up game in Dev Portal• Add test nicknames to sandbox

Page 21: Amazon Services for Games, with Unity

Common Setup: Dev Portal

• Add new application• Whitelist binary

• Package name/Signature

• Package name comes from Android-specific Player Settings pane (Bundle Identifier)

• Signature is generated from the command line:

keytool -exportcert -alias androiddebugkey –keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64

Page 22: Amazon Services for Games, with Unity

Common Set Up: Test Nicknames

Page 23: Amazon Services for Games, with Unity

In-App Purchasing

Page 24: Amazon Services for Games, with Unity

In-App Purchasing

• Content Types• Setting up Test Environment• Receipt Verification Service (RVS)• Initialization• Integration

Page 25: Amazon Services for Games, with Unity

In-App Purchasing: Content Types

Consumable

Page 26: Amazon Services for Games, with Unity

In-App Purchasing: Content Types

Entitled

Page 27: Amazon Services for Games, with Unity

In-App Purchasing: Content Types

Subscription

Page 28: Amazon Services for Games, with Unity

In-App Purchasing: Test Environment

SDK Tester App + JSON Catalog

Page 29: Amazon Services for Games, with Unity

In-App Purchasing: RVS (Optional)

Allows transaction validation outside app

Page 30: Amazon Services for Games, with Unity

In-App Purchasing: Initialization

Set up your catalog in the Dev Portal

Page 31: Amazon Services for Games, with Unity

In-App Purchasing: Integration• Unity plug-in will handle registerObserver() call, wires up

AmazonIAPEventListener• You should override:

Page 32: Amazon Services for Games, with Unity

In-App Purchasing: Integration• Purchase is two-step process• First, check items in catalog in response to action:

Page 33: Amazon Services for Games, with Unity

In-App Purchasing: Integration• Next, initiate the purchase request:

Page 34: Amazon Services for Games, with Unity

GameCircle

Page 35: Amazon Services for Games, with Unity

GameCircle

• Initialization• Achievements• Leaderboards• Whispersync for Games

Page 36: Amazon Services for Games, with Unity

GameCircle: Why?

Page 37: Amazon Services for Games, with Unity

GameCircle: Initialization• Subscribe to GameCircle events• Init with desired features

Page 38: Amazon Services for Games, with Unity

GameCircle: Achievements• Create draft achievements in Dev Portal

Page 39: Amazon Services for Games, with Unity

GameCircle: Achievements• Send Achievement update:

Page 40: Amazon Services for Games, with Unity

GameCircle: Achievements• You can bring up the Achievement overlay at will:

Page 41: Amazon Services for Games, with Unity

GameCircle: Achievements• Publish Achievements when ready to go live:

Page 42: Amazon Services for Games, with Unity

GameCircle: Achievements

Best Practices (may be obvious)• Provide meaningful descriptions• Have separate locked/unlocked

descriptions• Use different icons for locked/unlocked• Ordering matters; list achievements in the

order most likely to be completed• Mix achievements for regular play and

special actions

Page 43: Amazon Services for Games, with Unity

GameCircle: Leaderboards• Create draft leaderboard in Dev Portal

Page 44: Amazon Services for Games, with Unity

GameCircle: Leaderboards• Send Leaderboard score:

Page 45: Amazon Services for Games, with Unity

GameCircle: Leaderboards• You can bring up the Leaderboard overlay at will:

Page 46: Amazon Services for Games, with Unity

GameCircle: Leaderboards• Publish Leaderboards when ready to go live:

Page 47: Amazon Services for Games, with Unity

GameCircle: Whispersync

Page 48: Amazon Services for Games, with Unity

GameCircle: Whispersync

• At first run (and you have no data), synchronize from the cloud:

GameCircle.whisperSyncSynchronize(GameCircleConflictStrategy.AUTO_RESOLVE_TO_CLOUD);

• Subsequent calls can be simpler:

GameCircle.whisperSyncSynchronize();

Page 49: Amazon Services for Games, with Unity

GameCircle: Whispersync

Best Practices• Set useful descriptions when synchronizing

progress (helps user choose restore point)• Always use cloud data when synchronizing

to a device with no data• You don’t have to synchronize all the time,

but you should do so at major checkpoints• Synchronize when a player pauses or exits

Page 50: Amazon Services for Games, with Unity

Portal:https://developer.amazon.com/welcome.html

SDK: https://developer.amazon.com/sdk.html