Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
MagicOnionでマルチプレイゲームを作ってみる / Introduction to de...
Search
sotanmochi
June 25, 2019
Technology
2.6k
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.6k
Unityでテクスチャにお絵描きするための線分描画アルゴリズムの話 / Line drawing algorithm using fragment shader
sotanmochi
2
4k
SmartRig Bipedを使ってみよう / Introduction to SmartRig Biped
sotanmochi
0
3.5k
VRMを使ったAR/MR撮影ツールを試作開発してみた話 / Prototype of Mobile Mixed Capture
sotanmochi
0
1.8k
リアルとバーチャルの融合によって越えられない壁を壊す / TechCafe vol.8 LT
sotanmochi
0
300
ユニティちゃんと鬼ごっこができるMRゲームと戦術位置解析システム / Mixed reality game and tactical position analysis
sotanmochi
0
740
Research modeで取得した深度(Depth)データを可視化する / Depth data visualization for Hololens RS4 Research mode
sotanmochi
0
210
Other Decks in Technology
See All in Technology
Bill One 開発エンジニア 紹介資料
sansan33
PRO
7
20k
フィジカルAIの知識ゼロの僕でも AIを使えばここまでできた
tatsuya1970
0
200
現場の暗黙知を継承するAIエージェント — 対話から生まれる長期記憶と Skills
atsukish
0
130
ClaudeCodeでセキュリティ監視業務を半自動化_1年の運用でわかったAIに任せる設計の5つのポイント
kintotechdev
3
890
Microsoft MVP プログラムを紹介するから目指す人増えてくれ
tsubakimoto_s
0
140
RapidCopy2 Matrix I/Oエンジンによるファイルコピーソフトウェアの設計と実装
kengosawa2
1
480
どんな手を使っても絶対間に合わせるスケジューラ
asari194617
0
1.5k
Claude Codeで開発以外の業務も爆速化しよう!
minorun365
PRO
10
9k
パスキーでドライブする アカウント統合(OAuth/OIDC Numa (Immersion) Workshop 2026)
oidfj
PRO
0
360
8bit CPU 2026
koba789
7
3k
わたしが知り合いゼロの勉強会に 行けるようになるまで
r5ni4
2
830
Sansan Engineering Unit 紹介資料
sansan33
PRO
1
5k
Featured
See All Featured
Faster Mobile Websites
deanohume
310
32k
Deep Space Network (abreviated)
tonyrice
0
270
The SEO identity crisis: Don't let AI make you average
varn
0
540
Agile that works and the tools we love
rasmusluckow
331
22k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
It's Worth the Effort
3n
188
29k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
630
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
260
Code Reviewing Like a Champion
maltzj
528
40k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
11k
Typedesign – Prime Four
hannesfritz
42
3.1k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
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
ありがとうございました