Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ebitengineの1vs1ゲーム WebRTCの活用

ponyo877
August 30, 2024

Ebitengineの1vs1ゲーム WebRTCの活用

ponyo877

August 30, 2024
Tweet

More Decks by ponyo877

Other Decks in Programming

Transcript

  1. WT w WTਓͷϓϨΠϠʔ͕ର̍Ͱରઓ͢ ΔήʔϜͷܗࣜ w &CJUFOHJOFͷطଘͷήʔϜ͸γϯάϧϓϨ Πͷ΋ͷ͕େ൒ w zWTͰͷ௨৴zΛ)JU#MPX ͱ͍͏ݹయత

    ͳ਺ࣈ౰ͯήʔϜΛ&CJUFOHJOFͰ࣮૷ ग़యετϦʔτϑΝΠλʔᶘ "$ cΏΔͩΒͪͼͪͼ *૬खͷ3ܻͷ਺ࣈΛਪཧͯ͠ೖྗ͢Δͱਖ਼ղͷ਺ࣈͱൺ΂ͨ݁Ռ͕ฦ͖ͬͯ͢ ܻͷҐஔͱ਺ࣈ͕ಉͩ͡ͱHitɺܻͷҐஔ͸ҧ͏͕਺ࣈ͕ಉͩ͡ͱBlow ͜ΕΒͷ৘ใ͔Β૬खͷ਺ࣈΛߜΓࠐΜͰ૬खΑΓૣ͘ਖ਼ղΛݴ͍౰ͯΔήʔϜ
  2. ϒϥ ΢β (PPHMF$MPVE$PNQVUF&OHJOF NBUDINBLJOH TFSWFS TJHOBMJOH TFSWFS $MPVE fl BSF1BHFT

    IUNM SBUJOH TFSWFS 6QTUBTI 044ͱࣗ࡞ͷ૊Έ߹Θͤ w ϢʔβͷϚονϯάͱϨʔςΟϯά͸(PͰࣗ ࡞ͨ͠αʔό w 8FC35$௨৴ͷͨΊʹ͸௨৴͢Δ୺຤ؒͰ઀ ଓ৘ใͷަ׵ TJHOBMJOH ͢ΔͨΊͷαʔό͸ ࣌Ӎಊ͞Μͷ044"ZBNF Λར༻ (P੡  w 8BTN͔Β"ZBNFͱ΍ΓͱΓ͢ΔͨΊʹHP BZBNF CZIBLPCFSB͞Μ Λվ଄ͤͯ͞௖͍ͯར༻ w νϟοτϝοηʔδ͸%BUB$IBOOFMͰ௨৴ (PY8BTNY8FC35$ 8FC4PDLFU
  3. hit&blow hit&blow WebRTC DataChannel P2P WebRTC DataChannel P2P σϞc)JU#MPX ૬खͷ3ܻͷ਺ࣈΛਪཧͯ͠ೖྗ͢Δͱਖ਼ղͷ਺ࣈͱൺ΂ͨ݁Ռ͕ฦ͖ͬͯ͢

    ܻͷҐஔͱ਺ࣈ͕ಉͩ͡ͱHitɺܻͷҐஔ͸ҧ͏͕਺ࣈ͕ಉͩ͡ͱBlow ͜ΕΒͷ৘ใ͔Β૬खͷ਺ࣈΛߜΓࠐΜͰɺ૬खΑΓૣ͘ਖ਼ղΛݴ͍౰ͯΔήʔϜ
  4. ॲཧͷྲྀΕcϚονϯά ΫϥΠΞϯτ" ઌʹݕࡧ NBUDINBLJOHTFSWFS ΫϥΠΞϯτ# ޙ͔Βݕࡧ ରઓ૬खݕࡧ։࢝ ଴ͪߦྻʹొ࿥ RVFVF@MFOHUI Ϛονϯά

    RVFVF@MFOHUI SPPN*%डऔ TJHOBMJOH 8FC35$௨৴ͷͨΊͷ৘ใަ׵ SPPN*%ൃߦ ඳը ͳ͠ ඳը ͳ͠ ରઓ૬खݕࡧ։࢝ SPPN*%डऔ ௨৴৘ใͷૹड৴ TJOHOBMJOHTFSWFS ௨৴৘ใͷૹड৴ ରઓ૬खͱϚονϯά ରઓ૬खͱϚονϯά 11௨৴ཱ֬
  5. ॲཧͷྲྀΕc)JU#MPXͷରઓ อଘྖҬ ʹ͋Δ΋ ͷΛৗʹ ࠶ඳը ΫϥΠΞϯτ" SBUJOHTFSWFS HBNF fl PX

    &CJUFOHJOF ਪཧΛૹ৴ ਪཧΛड৴ ώϯτΛࣗಈԠ౴ ਪཧͱώϯτΛอଘ ਪཧΛૹ৴ উར৚݅Λຬͨ͢ ഊ๺৚݅Λຬͨ͢ ϨʔτΛߋ৽ ΫϥΠΞϯτ# &CJUFOHJOF HBNF fl PX 6QEBUF %SBX %SBX 6QEBUF ܁Γฦ͠ʜ ܁Γฦ͠ʜ ܁Γฦ͠ʜ ʜ DIBOOFM Λ௨ͯ͠ &WFOUΛ ड͚औΓ ඳըͷͨ Ίͷ 0CKFDU Λߋ৽ DIBOOFM DIBOOFM DIBOOFM Λ௨ͯ͠ &WFOUΛ ड͚औΓ ඳըͷͨ Ίͷ 0CKFDU Λߋ৽ DIBOOFM อଘྖҬ ʹ͋Δ΋ ͷΛৗʹ ࠶ඳը 11௨৴