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
タイルマップ拡張のススメ / Recommendation of Unity Tilemap ...
Search
ruccho
November 20, 2019
Programming
3.7k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
タイルマップ拡張のススメ / Recommendation of Unity Tilemap Gotanda.unity #14
ruccho
November 20, 2019
More Decks by ruccho
See All by ruccho
Roslyn でフロー解析してみる
ruccho
0
690
WebAssemblyインタプリタを書く ~Component Modelを添えて~
ruccho
1
1.3k
URP の 2D Renderer と たわむれる
ruccho
0
15
Colonies
ruccho
0
680
Other Decks in Programming
See All in Programming
AI Readyの正体はデータマネジメントだ メダリオン2.0の最前線
freee
PRO
0
150
AI Engineeringは、AIプロダクトだけのものか? 〜AIがソフトウェアを作る時代の新しい当たり前〜 / No AI in your product. AI Engineering in your development.
rkaga
4
380
VibeCodingからAgenticWorkflowへ
starfish719
0
360
Go言語とトイモデルで学ぶTransformerの気持ち / fukuokago23-transformer
monochromegane
0
160
Detecting Compromised CI with eBPF and Cilium Tetragon
lizrice
0
170
型も通る、synthも通る、それでも危ない 〜AIのCDKの権限とコストを機械で検証する〜 / It Passes Type Checks, It Passes Synth Checks, but It’s Still Risky — Automatically Verifying Permissions and Costs in AI’s CDK —
seike460
PRO
1
540
Jindong: Introducing Declarative Haptics in Compose Multiplatform
l2hyunwoo
0
110
PHP Application における Kubernetes 内 gRPC 通信
ganchiku
0
590
変わらないものが、変わるものを決める — 意図駆動開発 × イベントソーシング × イミュータブル | What Doesn't Change Decides What Can — IDD × Event Sourcing × Immutability
tomohisa
0
1.4k
今さら聞けない .NET CLI
htkym
0
190
AIが無かった頃の素敵な出会いの話
codmoninc
1
400
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
140
Featured
See All Featured
Mind Mapping
helmedeiros
PRO
1
300
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
360
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
890
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
Tell your own story through comics
letsgokoyo
1
1k
Un-Boring Meetings
codingconduct
0
380
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
The Spectacular Lies of Maps
axbom
PRO
1
900
sira's awesome portfolio website redesign presentation
elsirapls
0
320
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.5k
Balancing Empowerment & Direction
lara
6
1.2k
Transcript
るっちょ (@ruccho_vector) Gotanda.unity #14
• 趣味でゲーム制作とドット絵 • 大学1年 • ▼Unityインターハイ2016で殊勲賞のやつ「Cir」
▲「地下楼」 U-22プログラミング・コンテスト2019 経済産業省商務情報政策局長賞
None
None
None
47種類
None
• パレットからいちいち選択するのがめんどい • 用意するタイルが多くてめんどい
None
None
None
None
None
None
None
• 用意するタイルが多くてめんどい • パレットからいちいち選択するのがめんどい
None
None
Unity Tilemapは TileBaseクラスを継承して独自のタイルを定義可能。 「周辺タイルに応じて表示するスプライトを切り替えるタイル」が定義で きればいいはず
←つかえそう
タイルの座標をもとに構造体TileDataを返せばOK
←つかえそう
None
None
• 用意するタイルが多くてめんどい • パレットからいちいち選択するのがめんどい
Fang Auto Tile • 5枚のタイル素材から全隣接 パターンを自動生成 • 隣接タイルを自動接続
None
None
Scene TileBaseはScriptableObjectであり、その実体はProjectビューに存在す るアセットです。 (タイルマップ上の各タイルがTileBaseのインスタンス、ではないので注意!) タイルマップ TileBase (もしくはその派生クラス) GetTileData(position) struct TileData
TileBase (ScriptableObject) TileMap (TileData構造体の配列)
None
用意するタイルが多くてめんどい パレットからいちいち選択するのがめんどい TileBaseはScriptableObjectである
るっちょ (@ruccho_vector)