Download presentation
Presentation is loading. Please wait.
Published byBrian Briggs Modified over 9 years ago
2
WHO WILL BENEFIT FROM THIS TALK TOPICS WHAT YOU’LL LEAVE WITH Developers Interested in HTML5 Games Interested in Windows Azure Interested in Game Development Games on Multiple Devices Architecture of Games Data Communication Handling Scale Windows 8 Games Understanding of Cloud- based Casual Gaming architectures
5
Casual Gaming Ecosystem
7
//Architecture
9
Game Services WAZ Storage Worker
10
Game Services WAZ Storage Worker Notification Services
11
Game Services WAZ Storage Worker
12
Game Services WAZ Storage Worker
13
Socket Server WAZ Storage Worker
14
Socket Server WAZ Storage Worker
16
//Scale
19
Game Services WAZ Storage Worker
21
public HttpResponseMessage SendCommand(GameCommand gameCommand) { var queueClient = account.CreateCloudQueueClient(); var queue = queueClient.GetQueueReference("gameCommands"); var serializer = new JavaScriptSerializer(); var json = serializer.Serialize(gameCommand); try { queue.AddMessage(new CloudQueueMessage(json)); } catch { return new HttpResponseMessage(HttpStatusCode.InternalServerError, "error sending game command. try again."); } return new HttpResponseMessage(HttpStatusCode.OK, null); }
22
public void ProcessCommands() { var queueClient = account.CreateCloudQueueClient(); var queue = queueClient.GetQueueReference("gameCommands"); while (true) { var message = queue.GetMessage(); if (message != null) { var serializer = new JavaScriptSerializer(); var gameCommand = serializer.Deserialize (message.AsString); gameCommandService.DoSomething(gameCommand); }
23
//Communication
24
PushPull
27
Socket Server
30
WAZ Storage
31
Speed Scale
34
Samples Tankster Windows 8HTML5 Simple Games Tic-Tac-Toe Connect Four Tools Server APIs Client Scripts EaselJS Game Commands Test Client Guidance DocsArchitecture
36
HTML Web Windows Phone iOS Android Mobile Windows Mac PC
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.