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
ゲーム技術基礎#2
Search
ISHIGO Yusuke
PRO
June 04, 2025
Education
95
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ゲーム技術基礎#2
ISHIGO Yusuke
PRO
June 04, 2025
More Decks by ISHIGO Yusuke
See All by ISHIGO Yusuke
SFプロトタイピング体験(滝中学校)
yusk1450
PRO
0
140
2026年度アプリ開発プロジェクト紹介(名古屋文理大学)
yusk1450
PRO
0
39
講演(滝学園)2025/12/22
yusk1450
PRO
0
100
2026年度 基礎演習(石郷ゼミ)紹介(名古屋文理大学)
yusk1450
PRO
0
66
ハッカソンを活用したモノづくり教育について
yusk1450
PRO
2
500
コロナ対応 混雑状況マップ搭載 「岐阜県観光AIサイネージ」(2021年)
yusk1450
PRO
0
85
ゲーム技術基礎#1
yusk1450
PRO
0
190
ゲーム技術基礎#3
yusk1450
PRO
0
81
2025年度アプリ開発プロジェクト紹介(名古屋文理大学)
yusk1450
PRO
1
260
Other Decks in Education
See All in Education
未踏峰連山 Frontiers: Creating and Conquering Untrodden Peaks
ishii_mit
1
120
sepm-training-sample
levii
0
240
マークシート試験のTeX言語を用いた自動採点について
doratex
0
4k
Fundamentos, Caracteristicas y Aplicaciones de los Modulos NumPy , Matplotlib y Pandas
robintux
0
260
形骸化しない社内勉強会の取り組み - オーナーシップの作り方 / In-house study session
soudai
PRO
1
290
DecisionesEjecutivasCrisis
mariooc
0
330
批判的応用言語学ワークショップ(2026-08-12 お茶の⽔⼥⼦⼤学)
terasawat
0
200
Agent = Model + Harness
moon004
0
110
遊ぶかね欲しさの犯行(ルビ:労働)です
shirayanagiryuji
0
270
AIがコードを書く時代に、何を教えるのか / What Should We Teach in the Age of AI-Generated Code?
ichiroc
1
560
NDIAS Automotive / IoT CTF 2026 Recap - Keyfob & OSINT
himitu23
0
340
Throw Yourself In! - How I've learned English and What I'm Facing
georgeorge
1
260
Featured
See All Featured
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.6k
RailsConf 2023
tenderlove
30
1.6k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
sira's awesome portfolio website redesign presentation
elsirapls
0
420
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
Building Adaptive Systems
keathley
44
3.2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
550
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Site-Speed That Sticks
csswizardry
13
1.5k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
Transcript
ゲーム技術基礎#2 Basics of Game Technology 名古屋造形大学
コライダー(Colider) GameObjectに当たり判定を設定する Box Colider 2D Circle Colider 2D 当たり判定の種類 トリガー系
対象をすり抜けたときに判定する コリジョン系 対象に衝突したときに判定する
コライダー(Colider)の使い方 ① 「Box Collider 2D」コンポーネントを追加する
コライダー(Colider)の使い方 ② 「Rigidbody 2D」コンポーネントを追加する
コライダー(Colider)の使い方 ③ 「Rigidbody 2D」は物理演算のためのコンポーネント そのままだと重力が働いて落ちてしまう 重力値を0にしておく
コライダー(Colider)の使い方 ④ 相手にも「Box Collider 2D」を つけておく Box Collider 2D Rigidbody
2D Box Collider 2D private void OnCollisionEnter2D(Collision2D collision) { Debug.Log("Collision"); } private void OnTriggerEnter2D(Collider2D collision) { Debug.Log("Trigger"); }
課題:耐久ゲーム 何もしていないと 下に落ちる スペースキーで ジャンプする ランダムに障害物が 左から流れてくる
課題:シューティング 自機 敵機 弾 左右キーで移動 左右移動(画面端まで) スペースキーで発射
シーンの切り替え ① 画面のことをシーンと呼ぶ シーンの作成 シーンの保存
シーンの切り替え ② シーンの名前を入力する Assets→Scenes内に保存する ダブルクリックで シーンを開くことができる
シーンの切り替え ③ ヒエラルキー右クリック → Create Empty → 「ClearDirector」を作成する プロジェクトビュー右クリック →
Create → C# Script → 「ClearDirector」を作成する ヒエラルキーの「ClearDirector」に、プロジェクトビューの「ClearDirector」をアタッチする using UnityEngine.SceneManagement; public class ClearDirector : MonoBehaviour { void Update() { if (Input.GetMouseButtonDown(0)) { SceneManager.LoadScene("ClearScene"); } } } ClearSceneに切り替える
シーンの切り替え ④ シーンを登録する ドラッグアンドドロップする
パラパラアニメーション ① アニメーションさせたい画像をプロジェクトビューに登録する
パラパラアニメーション ② public Sprite[] sprites; public fl oat span =
0.5f; public fl oat delta = 0.0f; public int number = 0; void Start() { GetComponent<SpriteRenderer>().sprite = this.sprites[0]; } void Update() { this.delta += Time.deltaTime; if (this.delta > this.span) { this.delta = 0.0f; this.number++; if (this.number > sprites.Length-1) { this.number = 0; } GetComponent<SpriteRenderer>().sprite = this.sprites[this.number]; } } numberは最初0にする 変数の型の後ろに[]をつけることで変数をリストにすることができる (複数の値を変数に入れることができる) GameObjectのSpriteRendererコンポーネントのspriteに指定した画像を入れる リストは0から始まる sprites.Lengthでリストの個数を取り出せる numberが最大個数-1を超えたら0に戻す
パラパラアニメーション ③ ドラッグアンドドロップする 0番目 1番目
課題:ワンボタンゲームを作ってみよう マウスクリックだけで成立するゲームを作ってみよう 連射 ボタン連打の早さを競うもの タイミング 所定のタイミングでボタンを押す 早押し 合図に合わせてなるべく早く押す 切り替え 状態や押し続ける/押さないを適切に切り替える