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
ブラウザで遊ぶ自作シューティングゲームの紹介
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Takahashi Masaya
December 20, 2023
Programming
210
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ブラウザで遊ぶ 自作シューティングゲームの紹介
Takahashi Masaya
December 20, 2023
Transcript
23 slides
ブラウザで遊ぶ ⾃作シューティングゲームの紹介 2023.12.20 TAKAHASHI MASAYA
a. ブラウザゲームの紹介 b. ステージ編集ツールを紹介 テーマ
⾃⼰紹介 • 名前:⾼橋雅也 @ma_taka https://github.com/TakahashiMasaya/ • 業務:Web開発 ⾃社開発設計・制作 • 開発:Nuxt3,
React • 趣味:ピアノ, サイクリング
a. ブラウザゲームの紹介 DEMO
動作確認 # Device Release CPU OS Version 1 iPhone 14Pro
Max 2022 A16 Bionic 17.1 2 iPhone 14 Plus 2022 A15 Bionic 17.1 3 iPad Pro(2022) 2022 Apple M2 17.1 4 iPad Air 4 2020 A14 Bionic 17.1 5 iPad mini 6 2021 A15 Bionic 17.1 Reference • iPhone:https://ja.wikipedia.org/wiki/IPhone • iPad:https://ja.wikipedia.org/wiki/IPad
動作確認 iPhone + RAZER KISHI V2 FOR IPHONE iPad +
Xbox Elite ワイ ヤレス コントローラー シリーズ 2 Windows PC + 8Bitdo Bluetooth アーケード スティック
→JavaScriptとCanvasで実装する⼿段があった 実装経緯 ⾃分が⼤好きだったシューティングゲームを PC・スマホで(それもブラウザで)楽しみたい フロントエンドのスキルアップ →実務や⾃作ツールを利⽤し、実際に⼿を動かして経験を増やす • フレームワーク • テストツール
• ソースコード整形ツール
開発ヒストリー 2017 2018 2019 2020 2021 2022 2023 4 12
ゲームを 作りたい React TypeScriptを 学習したい 1 ?
開発環境 # パッケージ バージョン 1 Vite 5.0.4 webpackからの移⾏ 2 Vitest
0.34.6 単体テスト 3 TypeScript 5.3.2 4 Biome 1.4.1 lintチェック、コードフィックス(.ts) 5 stylelint 15.11.0 lintチェック、コードフィックス(.scss) ※2023/12/1時点
作成ツール # アプリ 1 MediBang Paint iPad Proでイラスト作成 2 GarageBand
MacBookで曲、効果⾳作成
実装概要 • 描画 • Canvas API • サウンド • WebAudio
API • ゲームパッド • Gamepad API
実装の流れ (1) 敵を倒す (2) 障害物を作成 (3) ステージ構成を確⽴(空中戦→メイン→ボス) 1. ステージ作成
実装の流れ 2. ウェポン作成 (1) パターン選択 (2) 個別選択
実装の流れ 3. シーン作成 スタート画面 ステージ選択 ウェポン選択 ゲーム準備 ゲームオーバー ゲーム ステージクリア成功時
ステージクリア失敗時
テスト(ランタイム) http://localhost:8081/?debug=true&stage=0&ignoreplayercollision=true&stag estartposition=2000&stagescrollspeed=1&loop=2&ignoreboss=false&playerlife =0 →パラメータを使ってランタイムデバッグ debug=trueで有効
テスト(ランタイム) http://localhost:8081/?debug=true&stage=0&ignoreplayercollision=true&stag estartposition=2000&stagescrollspeed=1&loop=2&ignoreboss=false&playerlife =0 # キー 機能 1 stage ステージを選択
2 ignoreplayercollision ⾃機衝突判定の無効化 3 stagestartposition ステージの開始位置 4 loop 周回(難易度確認)
b.ステージ編集ツールの紹介
→キャラクター配置をjsonで更新するのは⾯倒・・・。 →UIでステージを編集したい 実装経緯 [{ "recoveryPositionX": [1600, 4100, 6250], .... "map":
[ "00B00000000A00000000B00000000A……00000B00", "000000000000000000000000000000……00000000", "000000m00G000000000L00m00G0000……0j0L0000", "000000000000000000000000000000……00000000", "000000000000000000000000000000……00000000", "000000000000000000000000000000……00000000", "000000000000000c0000000000c000……00000000", …… "000000000000000000000000000000……00000000" ], .... }], ステージにあるキャラクターを 文字列ビットとして配置
開発環境 # パッケージ バージョン 1 Nuxt 3.8.2 2 Vitest 0.34.6
コンポーネント、storeテスト確認 3 eslint 8.55.0 lintチェック、コードフィックス(.ts, .vue) 4 prettier 3.1.0 コードフォーマット、コードフィックス (.scss, .json, .yml, md) 5 stylelint 15.11.0 lintチェック、コードフィックス(.vue .scss) ※2023/12/1時点
作成ツール # アプリ 1 Adobe XD 画⾯デザイン作成
開発ヒストリー 2017 2018 2019 2020 2021 2022 2023 ステージ編集 ツール
9 8 start ? ステージ編集が 欲しい Vueを 学習したい Nuxtを 学習したい 12 ブラウザ ゲーム 4 12 start ゲームを 作りたい React TypeScriptを 学習したい 1 ? ? ?
GAME EDIT update score ranking 概要 update stage(s) authentication fetch
stages stages score ranking stages score ranking stages score ranking
まとめ・課題 1) シーティングゲームの実装・ステージ編集ツールを紹介しました 2) 今後 • フロントエンドの動向をみて何かしら着⼿ • シューティングゲーム •
新しいフレームワークの実験など • ステージ編集ツール • AWSへのデプロイしたい・・・
More Decks by Takahashi Masaya
See All by Takahashi Masaya
昔のゲームをJavascriptとCANVASで実装した拙作紹介
takahashimasaya
0
220
Other Decks in Programming
See All in Programming
DroidKnights 2026 Android A2UI Jetpack Compose 기반의 안전한 AI UI 렌더링 - 박제창
itsmedreamwalker
1
270
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
210
Canvas 2D Context Next
petamoriken
0
780
Skills Are the New npm [AAIF Bengaluru, Nov 2026]
shivamsaraswat
0
140
エージェントの管理もエージェントに – herdr-core と自作バックログで作る司令塔 –
nearme_tech
PRO
2
170
AIエージェントの「テストは通るのに本番で壊れる」を減らす
shibuiwilliam
3
130
あなたはMCPの機能を、まだ知らない。
4geru
1
750
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
250
[DroidKnights 2026] Workflow AX: From Auto-Documented Policies to E2E Testing
raeminkang
0
620
Promiseの向こう側へコンテキストを届ける ― proposal-async-context
seriseri
0
850
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
150
Compiling Your Language to WasmGC & Friends
tanishiking
0
810
Featured
See All Featured
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.5k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
630
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
410
Evolving SEO for Evolving Search Engines
ryanjones
0
380
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.3k
Design in an AI World
tapps
1
400
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
We Have a Design System, Now What?
morganepeng
55
8.4k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
680
Darren the Foodie - Storyboard
khoart
PRO
5
4.1k
エンジニアに許された特別な時間の終わり
watany
109
250k