Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
MagicOnionでマルチプレイゲームを作ってみる / Introduction to de...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
sotanmochi
June 25, 2019
Technology
2.7k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
MagicOnionでマルチプレイゲームを作ってみる / Introduction to developing multiplayer games using MagicOnion
Roppongi.unity #3 のLT資料
sotanmochi
June 25, 2019
More Decks by sotanmochi
See All by sotanmochi
URP/HDRPを使ったVRM対応アプリの開発方法 / VRM Importer Extension
sotanmochi
0
1.8k
画像処理から始めるコンピュートシェーダ / Introduction to Image Processing using Compute Shader
sotanmochi
2
2.8k
Diminished Reality 入門 / Introduction to Diminished Reality
sotanmochi
2
9.7k
Unityでテクスチャにお絵描きするための線分描画アルゴリズムの話 / Line drawing algorithm using fragment shader
sotanmochi
2
4.1k
SmartRig Bipedを使ってみよう / Introduction to SmartRig Biped
sotanmochi
0
3.6k
VRMを使ったAR/MR撮影ツールを試作開発してみた話 / Prototype of Mobile Mixed Capture
sotanmochi
0
1.9k
リアルとバーチャルの融合によって越えられない壁を壊す / TechCafe vol.8 LT
sotanmochi
0
300
ユニティちゃんと鬼ごっこができるMRゲームと戦術位置解析システム / Mixed reality game and tactical position analysis
sotanmochi
0
760
Research modeで取得した深度(Depth)データを可視化する / Depth data visualization for Hololens RS4 Research mode
sotanmochi
0
220
Other Decks in Technology
See All in Technology
AWS Continuum for Penetration Testing に Deep Dive してみる
asanoharuki
2
1.5k
"AWSはちょっと苦手"でも大丈夫。AWS Blocks で手軽に作る Flutter のバックエンド #FlutterKaigi
tacck
PRO
0
110
Flutter Widget Previewerで始めるUIプレビューとVRTの自動化
sakusaku3939
0
180
複雑な業務システムを高速でつくるため、チーム全員をつくれる人へ
ayakurabuchi
0
110
reInvent2026stby LT00 "Change your life!"
shinichirokawano
1
500
今から始めるAWS環境の暗号移行 - ポスト量子時代に備える
sato4mi
0
130
AIエージェントに 権限と鍵をどこまで渡すか
nrinetcom
PRO
2
160
AIテスト自動化と評価駆動開発EDD
happysamurai294
0
120
"計画的無茶振り"を通してAIネイティブ世代の新人を育てる
subroh0508
1
130
バイブコーディングの特徴と「コケて直す」ループ
happysamurai294
0
130
Jev の中身は50行で再現できる。でも本物との差はどこにあるのか
hisuzuya
0
240
契約で守るコンパウンドプロダクトのデザインシステム
yug1224
1
1.6k
Featured
See All Featured
Unsuck your backbone
ammeep
672
58k
Fireside Chat
paigeccino
43
4.1k
Embracing the Ebb and Flow
colly
88
5.2k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
New Earth Scene 8
popppiees
4
2.7k
The Cost Of JavaScript in 2023
addyosmani
55
10k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
420
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
A better future with KSS
kneath
240
18k
Building an army of robots
kneath
307
47k
Transcript
MagicOnionでマルチプレイゲームを 作ってみる 2019/06/25 Soichiro Sugimoto sotan (@sotanmochi)
自己紹介 杉本 宗一郎(Soichiro Sugimoto) Twitter:@sotanmochi xR系Unityエンジニア(自称) TIS株式会社・戦略技術センター xR技術に関する応用研究・プロトタイプ開発 2 2019/06/25 Roppongi.unity
#3
本日お伝えしたいこと MagicOnionを使ってアクションゲーム風のサンプルプロジェクトを作りました https://github.com/sotanmochi/MagicOnionExample-ActionGame 3 2019/06/25 Roppongi.unity #3 動画:https://youtu.be/9nTxbHahXZI
Unityでマルチプレイゲームを作る リアルタイムネットワークエンジンの選択肢 • Photon Unity Networking + Photon Cloud •
Monobit Unity Networking + モノビットエンジンクラウド • UNET • Mirror • Photon Unity Networking + Photon Server • Monobit Unity Networking + Monobit Revolution Server など 4 2019/06/25 Roppongi.unity #3
MagicOnionについて Unified Realtime/API Engine for .NET Core and Unity. gRPC(HTTP/2)ベースの統合型ネットワークエンジン
https://github.com/Cysharp/MagicOnion 5 2019/06/25 Roppongi.unity #3
MagicOnionについて 詳細はMagicOnion勉強会の資料などを参考にしてください The Usage and Patterns of MagicOnion https://www.slideshare.net/neuecc/the-usage-and-patterns-of-magiconion 明日から使えるMagicOnion
https://ykimisaki-my.sharepoint.com/:p:/g/personal/y_kimisaki_kimisaki_jp/EX9J_lb_fj1Gpt YDZ4tX_ZcBanQZ_FfNDIpQDT4wOrZueQ?rtime=9qMsyxv51kg 黒騎士と白の魔王 gRPCによるHTTP/2 - API, Streamingの実践 https://www.slideshare.net/neuecc/grpchttp2-api-streaming 6 2019/06/25 Roppongi.unity #3
Why MagicOnion? これまでに使った(試した)ことがあるリアルタイムネットワークエンジンは 基本的にクライアント側の実装のみだった • Photon Unity Networking(PUN) + Photon
Cloud • Monobit Unity Networking(MUN) + モノビットエンジンクラウド • Mirror 7 2019/06/25 Roppongi.unity #3
Why MagicOnion? Unityエンジニアがサーバーサイド開発にも手を出そうとしている Photon Server / Monobit Revolution Server? →
API通信は別のフレームワークで実装が必要・・・ 8 2019/06/25 Roppongi.unity #3
Why MagicOnion? リアルタイム通信とAPI通信を同じフレームワークでC#で書ける 9 2019/06/25 Roppongi.unity #3 Unity Realtime API
Service
チュートリアル チャットアプリのサンプルがQiita記事やMagicOnionのリポジトリにある Unity+MagicOnionで超絶手軽にリアルタイム通信を実装してみた https://qiita.com/mitchydeath/items/cecf01493d1efeb4ae55 MagicOnionSample(ChatApp) https://github.com/Cysharp/MagicOnion/tree/master/samples 10 2019/06/25 Roppongi.unity #3
チュートリアル 次のステップへ進むため、もう少しゲームっぽいサンプルが欲しい・・・ 11 2019/06/25 Roppongi.unity #3
サンプルプロジェクト MagicOnionを使ってアクションゲーム風のサンプルプロジェクトを作りました https://github.com/sotanmochi/MagicOnionExample-ActionGame 12 2019/06/25 Roppongi.unity #3 動画:https://youtu.be/9nTxbHahXZI
サンプルプロジェクト • ルーム管理 • プレイヤーキャラクターの同期 • テキストチャット 13 2019/06/25 Roppongi.unity
#3
サンプルプロジェクトを作ってみて • PUNやMUNに対応するものは自作が必要 • 色々と参考にしながら作ってみたが、どんな設計にすると良いのか分からない • 非同期処理を理解していないと上手く実装できない 14 2019/06/25 Roppongi.unity
#3
参考にしたプロジェクト・資料など MagicOnionDemo https://github.com/yika-aixi/MagicOnionDemo UnityResearch https://github.com/yKimisaki/UnityResearch 「オンラインゲームのしくみ」のサンプルプロジェクト (第8章・第9章) https://www.sbcr.jp/support/13006/ 15 2019/06/25
Roppongi.unity #3
サーバーサイドをクラウド環境へデプロイする Unity+MagicOnionのサンプルプログラムをコンテナ化してAzureContainerInstancesで 簡単に動かす方法 https://qiita.com/_y_minami/items/aa57873bbb9ea0b36dd2 Unity:MagicOnionの.NET CoreコンテナサーバーをAWS Fargateで実行する方法 https://qiita.com/simplestar/items/b1d29e986b0b2cd6af2b 16 2019/06/25
Roppongi.unity #3
まとめ • MagicOnionはリアルタイム通信/API通信が統合されたネットワークエンジン • アクションゲーム風のサンプルプロジェクトを作ってみた • MagicOnionでサーバーサイド開発を始めてみる 17 2019/06/25 Roppongi.unity
#3
ありがとうございました