Suche senden
Hochladen
玉転がしゲームで学ぶUnity入門
•
27 gefällt mir
•
25,299 views
nakamura001
Folgen
解説を聞きながら見る前提で作成しているスライドです。こちらの動画と一緒にご覧下さい。 http://www.ustream.tv/recorded/14715477
Weniger lesen
Mehr lesen
Bildung
Melden
Teilen
Melden
Teilen
1 von 61
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
Paperjs presentation
Paperjs presentation
sharp-blade
Azure sql insert perf
Azure sql insert perf
Mornè Blake
Async Redux Actions With RxJS - React Rally 2016
Async Redux Actions With RxJS - React Rally 2016
Ben Lesh
Home Automation with Android Things and the Google Assistant
Home Automation with Android Things and the Google Assistant
Nilhcem
Paperjs presentation
Paperjs presentation
sharp-blade
Debugging JavaScript with Chrome
Debugging JavaScript with Chrome
Igor Zalutsky
Jk rubyslava 25
Jk rubyslava 25
Jozef Képesi
Deploy in the Cloud
Deploy in the Cloud
Pablo Cantero
Empfohlen
Paperjs presentation
Paperjs presentation
sharp-blade
Azure sql insert perf
Azure sql insert perf
Mornè Blake
Async Redux Actions With RxJS - React Rally 2016
Async Redux Actions With RxJS - React Rally 2016
Ben Lesh
Home Automation with Android Things and the Google Assistant
Home Automation with Android Things and the Google Assistant
Nilhcem
Paperjs presentation
Paperjs presentation
sharp-blade
Debugging JavaScript with Chrome
Debugging JavaScript with Chrome
Igor Zalutsky
Jk rubyslava 25
Jk rubyslava 25
Jozef Képesi
Deploy in the Cloud
Deploy in the Cloud
Pablo Cantero
Google I/O 2013 - Android Graphics Performance
Google I/O 2013 - Android Graphics Performance
DouO
Playing With Fire - An Introduction to Node.js
Playing With Fire - An Introduction to Node.js
Mike Hagedorn
Using Android Things to Detect & Exterminate Reptilians
Using Android Things to Detect & Exterminate Reptilians
Nilhcem
Rethink Async With RXJS
Rethink Async With RXJS
Ryan Anklam
Letswift19-clean-architecture
Letswift19-clean-architecture
Jung Kim
You will learn RxJS in 2017
You will learn RxJS in 2017
名辰 洪
MBL203 Building a Mobile Application Platform on AWS - AWS re: Invent 2012
MBL203 Building a Mobile Application Platform on AWS - AWS re: Invent 2012
Amazon Web Services
Program to sort array using insertion sort
Program to sort array using insertion sort
Swarup Boro
Python modulesfinal
Python modulesfinal
Saraswathi Murugan
Real life XNA
Real life XNA
Johan Lindfors
A More Flash Like Web?
A More Flash Like Web?
Murat Can ALPAY
Testing a 2D Platformer with Spock
Testing a 2D Platformer with Spock
Alexander Tarlinder
HTML5 - Daha Flash bir web?
HTML5 - Daha Flash bir web?
Ankara JUG
Emerging Languages: A Tour of the Horizon
Emerging Languages: A Tour of the Horizon
Alex Payne
ES6 Overview
ES6 Overview
Bruno Scopelliti
Intro to HTML5
Intro to HTML5
Jussi Pohjolainen
【Unity】Scriptable object 入門と活用例
【Unity】Scriptable object 入門と活用例
Unity Technologies Japan K.K.
ECMAScript 6 major changes
ECMAScript 6 major changes
hayato
jQuery Foot-Gun Features
jQuery Foot-Gun Features
dmethvin
Fullstack Conference - Proxies before proxies: The hidden gems of Javascript...
Fullstack Conference - Proxies before proxies: The hidden gems of Javascript...
Tim Chaplin
NodeJS
NodeJS
.toster
Pointer Events in Canvas
Pointer Events in Canvas
deanhudson
Weitere ähnliche Inhalte
Was ist angesagt?
Google I/O 2013 - Android Graphics Performance
Google I/O 2013 - Android Graphics Performance
DouO
Playing With Fire - An Introduction to Node.js
Playing With Fire - An Introduction to Node.js
Mike Hagedorn
Using Android Things to Detect & Exterminate Reptilians
Using Android Things to Detect & Exterminate Reptilians
Nilhcem
Rethink Async With RXJS
Rethink Async With RXJS
Ryan Anklam
Letswift19-clean-architecture
Letswift19-clean-architecture
Jung Kim
You will learn RxJS in 2017
You will learn RxJS in 2017
名辰 洪
MBL203 Building a Mobile Application Platform on AWS - AWS re: Invent 2012
MBL203 Building a Mobile Application Platform on AWS - AWS re: Invent 2012
Amazon Web Services
Program to sort array using insertion sort
Program to sort array using insertion sort
Swarup Boro
Python modulesfinal
Python modulesfinal
Saraswathi Murugan
Was ist angesagt?
(9)
Google I/O 2013 - Android Graphics Performance
Google I/O 2013 - Android Graphics Performance
Playing With Fire - An Introduction to Node.js
Playing With Fire - An Introduction to Node.js
Using Android Things to Detect & Exterminate Reptilians
Using Android Things to Detect & Exterminate Reptilians
Rethink Async With RXJS
Rethink Async With RXJS
Letswift19-clean-architecture
Letswift19-clean-architecture
You will learn RxJS in 2017
You will learn RxJS in 2017
MBL203 Building a Mobile Application Platform on AWS - AWS re: Invent 2012
MBL203 Building a Mobile Application Platform on AWS - AWS re: Invent 2012
Program to sort array using insertion sort
Program to sort array using insertion sort
Python modulesfinal
Python modulesfinal
Ähnlich wie 玉転がしゲームで学ぶUnity入門
Real life XNA
Real life XNA
Johan Lindfors
A More Flash Like Web?
A More Flash Like Web?
Murat Can ALPAY
Testing a 2D Platformer with Spock
Testing a 2D Platformer with Spock
Alexander Tarlinder
HTML5 - Daha Flash bir web?
HTML5 - Daha Flash bir web?
Ankara JUG
Emerging Languages: A Tour of the Horizon
Emerging Languages: A Tour of the Horizon
Alex Payne
ES6 Overview
ES6 Overview
Bruno Scopelliti
Intro to HTML5
Intro to HTML5
Jussi Pohjolainen
【Unity】Scriptable object 入門と活用例
【Unity】Scriptable object 入門と活用例
Unity Technologies Japan K.K.
ECMAScript 6 major changes
ECMAScript 6 major changes
hayato
jQuery Foot-Gun Features
jQuery Foot-Gun Features
dmethvin
Fullstack Conference - Proxies before proxies: The hidden gems of Javascript...
Fullstack Conference - Proxies before proxies: The hidden gems of Javascript...
Tim Chaplin
NodeJS
NodeJS
.toster
Pointer Events in Canvas
Pointer Events in Canvas
deanhudson
Test driven game development silly, stupid or inspired?
Test driven game development silly, stupid or inspired?
Eric Smith
HTML5って必要?
HTML5って必要?
GCS2013
JavaScript - Object-Oriented Programming & Remote Scripting
JavaScript - Object-Oriented Programming & Remote Scripting
Chen Huang
Matthew Eernisse, NodeJs, .toster {webdev}
Matthew Eernisse, NodeJs, .toster {webdev}
.toster
create file name as board.javawrite below codeimport java.aw.pdf
create file name as board.javawrite below codeimport java.aw.pdf
proloyankur01
How to build a html5 websites.v1
How to build a html5 websites.v1
Bitla Software
Mary Had a Little λ (QCon)
Mary Had a Little λ (QCon)
Stephen Chin
Ähnlich wie 玉転がしゲームで学ぶUnity入門
(20)
Real life XNA
Real life XNA
A More Flash Like Web?
A More Flash Like Web?
Testing a 2D Platformer with Spock
Testing a 2D Platformer with Spock
HTML5 - Daha Flash bir web?
HTML5 - Daha Flash bir web?
Emerging Languages: A Tour of the Horizon
Emerging Languages: A Tour of the Horizon
ES6 Overview
ES6 Overview
Intro to HTML5
Intro to HTML5
【Unity】Scriptable object 入門と活用例
【Unity】Scriptable object 入門と活用例
ECMAScript 6 major changes
ECMAScript 6 major changes
jQuery Foot-Gun Features
jQuery Foot-Gun Features
Fullstack Conference - Proxies before proxies: The hidden gems of Javascript...
Fullstack Conference - Proxies before proxies: The hidden gems of Javascript...
NodeJS
NodeJS
Pointer Events in Canvas
Pointer Events in Canvas
Test driven game development silly, stupid or inspired?
Test driven game development silly, stupid or inspired?
HTML5って必要?
HTML5って必要?
JavaScript - Object-Oriented Programming & Remote Scripting
JavaScript - Object-Oriented Programming & Remote Scripting
Matthew Eernisse, NodeJs, .toster {webdev}
Matthew Eernisse, NodeJs, .toster {webdev}
create file name as board.javawrite below codeimport java.aw.pdf
create file name as board.javawrite below codeimport java.aw.pdf
How to build a html5 websites.v1
How to build a html5 websites.v1
Mary Had a Little λ (QCon)
Mary Had a Little λ (QCon)
Kürzlich hochgeladen
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
ChitralekhaTherkar
mini mental status format.docx
mini mental status format.docx
PoojaSen20
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
Celine George
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Sarwono Sutikno, Dr.Eng.,CISA,CISSP,CISM,CSX-F
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
Maestría en Comunicación Digital Interactiva - UNR
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
GeoBlogs
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
TechSoup
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
FatimaKhan178732
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
RoyAbrique
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
NirmalaLoungPoorunde1
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
VS Mahajan Coaching Centre
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
JhengPantaleon
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
chloefrazer622
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
ssuser54595a
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Celine George
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
manuelaromero2013
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
anshu789521
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
EduSkills OECD
Kürzlich hochgeladen
(20)
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
mini mental status format.docx
mini mental status format.docx
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
玉転がしゲームで学ぶUnity入門
1.
Unity
2.
※
http://www.ustream.tv/recorded/14715477
3.
4.
• Hierarchy
Cube
5.
•
Floor
6.
• Position
0, 0, 0
7.
• Scale
10, 1, 30
8.
• Project
Material
9.
•
FloorMaterial •
10.
• Hierarchy
Floor
11.
•
12.
13.
• Hierarchy
Directional light
14.
• •
) Position -3, 9, -7 Rotation 38, 0, 0
15.
Player(
)
16.
• Hierarchy
Sphere
17.
•
Player • Position 0, 3, -5
18.
• Project
Material • PlayerMaterial
19.
• Project
※ http://d.hatena.ne.jp/nakamura001/files/net.png
20.
• PlayerMaterial
21.
• Player
22.
23.
• MainCamera Position
0, 6, -10 • Rotation 40, 0, 0
24.
Player(
)
25.
Player • Project
JavaScript
26.
Player •
PlayerAction • Player
27.
JavaScript var power =
20.0; function Update () { ! var x = Input.GetAxis("Horizontal") * Time.deltaTime * power; ! var z = Input.GetAxis("Vertical") * Time.deltaTime * power; ! Debug.Log("x="+x+", z="+z); ! transform.Translate(x, 0, z); }
28.
29.
•
30.
•
31.
32.
33.
• Player
Rigidbody
34.
Package Project Import Package→Physic Materials
35.
Package •
import
36.
• Ice
Player Sphere Collider Material
37.
JavaScript var power =
80.0; function Update () { ! var x = Input.GetAxis("Horizontal") * Time.deltaTime * power; ! var z = Input.GetAxis("Vertical") * Time.deltaTime * power; ! Debug.Log("x="+x+", z="+z); ! rigidbody.AddForce(x, 0, z); }
38.
•
39.
40.
JavaScript var power =
80.0; var jumpPower = 300.0; function Update () { ! var x = Input.GetAxis("Horizontal") * Time.deltaTime * power; ! var z = Input.GetAxis("Vertical") * Time.deltaTime * power; ! Debug.Log("x="+x+", z="+z); ! rigidbody.AddForce(x, 0, z); ! if (Input.GetButtonDown("Jump")) { ! ! Debug.Log("Jump"); ! ! rigidbody.AddForce(0, jumpPower, 0); ! } }
41.
•
42.
43.
• Hierarchy Cube •
Goal • Position 0, 1.4, 0 Scale 2, 2, 2
44.
• Project
Material • GoalMaterial
45.
• Shader
Particles/Additive (Particles→ Additive ) •
46.
• GoalMaterial
Goal
47.
48.
• GUI Text
GameClear
49.
• Text GAME
CLEAR • Anchor middle center • Font Size 40
50.
Goal JavaScript
51.
JavaScript • JavaScript •
GoalAction • Goal
52.
JavaScript private var player:
GameObject; private var gameClear: GameObject; function Start() { ! player = GameObject.Find("Player"); ! gameClear = GameObject.Find("GameClear"); ! gameClear.active = false; } function OnCollisionEnter(theCollision : Collision){ ! if(theCollision.gameObject.name == "Player"){ ! ! gameClear.active = true; ! ! player.rigidbody.Sleep(); ! ! player.SendMessage("stop"); ! } }
53.
Player JavaScript
var power = 80.0; var jumpPower = 300.0; var stopFlag = false; function Update () { ! if (stopFlag) return; ! var x = Input.GetAxis("Horizontal") * Time.deltaTime * power; ! var z = Input.GetAxis("Vertical") * Time.deltaTime * power; ! rigidbody.AddForce(x, 0, z); ! if (Input.GetButtonDown("Fire1")) { ! ! rigidbody.AddForce(0, jumpPower, 0); ! ! Debug.Log("hoge"); ! } } function stop() { ! stopFlag = true; }
54.
55.
GetAxis()
56.
GetAxis() • GetAxis("Horizontal")
Horizontal
57.
GetAxis()
58.
IDE
59.
MonoDevelop • Unity
MonoDevelop C# IDE • MonoDevelop Unity
60.
MonoDevelop • Unity
Assets → Sync MonoDevelop Project MonoDevelop
61.
Mac • MonoDevelop
Mac Mac MonoDevelop - http://d.hatena.ne.jp/nakamura001/20110711/1310364725
Jetzt herunterladen