Learn to implement games with code:
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Boca Raton
CRC Press
[2017]
|
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis Klappentext |
Beschreibung: | Includes bibliographical references and index |
Beschreibung: | xix, 355 Seiten Illustrationen 24 cm |
ISBN: | 9781498753388 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV044332801 | ||
003 | DE-604 | ||
005 | 20170803 | ||
007 | t | ||
008 | 170531s2017 xxua||| |||| 00||| eng d | ||
010 | |a 016007414 | ||
020 | |a 9781498753388 |9 978-1-4987-5338-8 | ||
035 | |a (OCoLC)961841624 | ||
035 | |a (DE-599)BVBBV044332801 | ||
040 | |a DE-604 |b ger |e rda | ||
041 | 0 | |a eng | |
044 | |a xxu |c US | ||
049 | |a DE-355 | ||
050 | 0 | |a QA76.76.C672 | |
082 | 0 | |a 794.8/1536 |2 23 | |
084 | |a ST 324 |0 (DE-625)143660: |2 rvk | ||
100 | 1 | |a Quick, John M. |4 aut | |
245 | 1 | 0 | |a Learn to implement games with code |c John M. Quick |
264 | 1 | |a Boca Raton |b CRC Press |c [2017] | |
300 | |a xix, 355 Seiten |b Illustrationen |c 24 cm | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
500 | |a Includes bibliographical references and index | ||
650 | 4 | |a Computer games |x Programming | |
650 | 0 | 7 | |a Computerspiel |0 (DE-588)4010457-6 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Programmierung |0 (DE-588)4076370-5 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Computerspiel |0 (DE-588)4010457-6 |D s |
689 | 0 | 1 | |a Programmierung |0 (DE-588)4076370-5 |D s |
689 | 0 | |5 DE-604 | |
856 | 4 | 2 | |m Digitalisierung UB Regensburg - ADAM Catalogue Enrichment |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029736015&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
856 | 4 | 2 | |m Digitalisierung UB Regensburg - ADAM Catalogue Enrichment |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029736015&sequence=000002&line_number=0002&func_code=DB_RECORDS&service_type=MEDIA |3 Klappentext |
999 | |a oai:aleph.bib-bvb.de:BVB01-029736015 |
Datensatz im Suchindex
_version_ | 1804177559375577088 |
---|---|
adam_text | Contents
Preface xiii
Acknowledgment xvii
Author x։x
I. The World Beyond the Screen I
Goals......................................................... 1
Required Files..................................................2
Unity Game Engine...............................................2
Test the Example Solution..................................... 2
Build Your Solution........................................... 3
Put Logic before Syntax....................................... 3
Pseudocode...................................................4
Process Mapping............................................ 4
Challenge Context............................................. 5
Prefabs..................................................... 5
Scenes...................................................... 7
Scripts......................................................7
Sprites......................................................8
Challenge: Move the Camera with Luna..............................8
Hint: Create a New Script.......................................9
Hint: Attach the Script to an Object............................9
Hint: Pin the Camera to Luna....................................10
Hint: Access Unity Objects and Components.......................12
Hint: Apply Unity Control Functions.............................13
Example Solution: Move the Camera with Luna.....................14
Challenge: Stop the Camera at the Boundaries......................16
Hint: Find the Map Boundaries...................................17
Hint: Apply the Boundary Limits.................................18
Example Solution: Stop the Camera at the Boundaries.............19
Challenge: Give the Camera Smooth Movement........................24
Hint: Determine the Camera Properties...........................24
Hint: Apply Smoothing to the Camera Movement....................25
Hint: Account for the Distance Threshold........................25
Example Solution: Give the Camera Smooth Movement...............26
Summary......................................................... 30
References........................................................31
2. A Dialogue with the Red Knight 33
Goals......................................................... 33
Required Files....................................................34
Challenge Context.................................................34
Dialogue Box Panel............................................. 34
Unity User Interface System......................,,.............34
Challenge: Notify the Player Using a Dismissible Dialogue Box.....37
Hint: Update the Dialogue Text..................................37
Hint: Change the Visibility of the Dialogue Box.................38
Hint: Dismiss the Dialogue Box Based on User Input..............39
Unity Input Functions........................................39
Coroutines...................................................39
Hint: Detect the Collision....................... ..............41
Unity Console Window....................................... 41
Unity Trigger Collisions.............-.......................42
Example Solution: Notify the Player Using a Dismissible
Dialogue Box....................................................44
Challenge: Notify the Player Using a Timed Dialogue Box...........47
Hint: Introduce a Timed Delay.................................. 47
Hint: Use the WaitForSeconds () Function........................48
Example Solution: Notify the Player Using a Timed Dialogue Box--48
Challenge: Update the Dialogue Box with a Scrolling Text Effect...49
Hint: Store Each Line of Text...................................50
Hint: Update the Lines of Text....*.............................51
Example Solution: Update the Dialogue Box with a Scrolling
Text Effect.....................................................52
vi Contents
Summary........................................................ 59
References...................................................... 60
3. A Daring Decision 61
Goals........................................................... 61
Required Files................................................ 62
Challenge: Present a Choice.......................................62
Hint: Leverage Your Codebase....................................63
Hint: Set and Reset the Selection Box......................... 63
Hint: Position the Selection Box................................64
Hint: Detect the Collision.................................... 66
Example Solution: Present a Choice..............................67
Challenge: Make a Choice........................................ 71
Hint: Manage Information Flow with Delegates and
Lambda Expressions.......................................... 72
Delegates for Asynchronous Callback..........................72
Lambda Expressions for Asynchronous Callback.................73
Asynchronous Callback Example................................74
Hint: Implement the Selection Process...........................77
Hint: Execute the Choice...................................... 79
Example Solution: Make a Choice ................................79
Summary.......................................................... 89
References...................................................... 89
4. Face the Dragon 91
Goals.............................................................91
Required Files................ *..................................92
Challenge: Prepare the Interaction................................92
Hint: Manage All Interactions...................................94
Hint: Keep Track of the Characters..............................95
Hint: Start an Interaction .....................................97
Hint: Generate an Interaction................................. 98
Example Solution: Prepare the Interaction..................... 98
Challenge: Implement Turns.......................................104
Hint: Choose an Action.........................................105
Hint: Choose a Target..........................................105
Hint: Focus on a Single Turn...................................106
Hint: Focus on the Entire Interaction..........................107
Hint: Generate Opponent Turns..................................107
Example Solution: Implement Turns............................ 107
Challenge: Determine the Interaction Result......................118
Hint: Determine Outcomes.......................................118
Hint: Apply Outcomes.......................................... 118
Hint: Manage the Interaction State........................... 119
Example Solution: Determine the Interaction Result.............119
Contents vii
Challenge: Visualize the Interaction............................126
Hint: Position the Characters.................................126
Hint: Show the Actions....................................... 127
Hint: Indicate the Target.....................................127
Hint: Log the Events..........................................128
Example Solution: Visualize the Interaction...................128
Summary.........................................................147
References.................................................... 147
5. A Group of Heroes 149
Goals...........................................................150
Required Files...............................................150
Challenge: Swap the Leader......................................150
Hint; Detect Collisions.......................................152
Hint: Store Group Data........................................152
Hint: Toggle the Leader...................................... 152
Example Solution: Swap the Leader........................... 153
Challenge: Follow the Leader................................ .157
Hint: Revise Your Code........................................158
Hint: Design the Movement Logic...............................158
Example Solution: Follow the Leader...........................159
Summary........................................................ 170
6. Save the Day 171
Goals...........................................................172
Required Files................................................ 172
Challenge: Save and Load Game Data............................. 172
Hint: Create the Save Data....................................173
Serialization..............................................174
MonoBehaviour and Serialization ......................... 175
Custom Constructor....................................... 175
Hint: Manage the Data....................................... 176
Hint: Update the Data ..................................... 181
Example Solution: Save and Load Game Data................... 181
Summary.........................................................188
References .................................................... 189
7. Design Your World 191
Goals...........................................................191
Required Files..................................................192
Challenge: Implement Your Design----;...........................192
Hint: Think about Characters..................................192
Dragons............................................. .193
Drakes................................................. 194
viii Contents
Knights...................................................194
Heroes ...................................................194
Player....................................................195
Hint: Think about Scenes.....................................195
Map.......................................................195
Dungeon...................................................195
Interaction...............................................197
Hint: Think about Win Conditions.............................198
Example Solution: Implement Your Design...................198
Game Design...............................................198
Game Implementation......,................................199
Summary.........................................................217
References......................................................217
8. A Proper Introduction 219
Goals ..........................................................219
Required Files..................................................220
Challenge: Create a Loading Screen............................ 220
Hint: Preload Critical Components.......................... 220
Hint: Design the Loading Screen..............................221
Example Solution: Create a Loading Screen....................222
Challenge: Create a Main Menu................................ .225
Hint: Listen for User Input..................................225
Hint: Design the Main Menu.................................. 226
Example Solution: Create a Main Menu.........................226
Summary........................................................ 228
Reference.......................................................228
9. A Proper Transition 229
Goals....................................................... 229
Required Files................................................. 230
Challenge: Fade the Screen In and Out...........................230
Hint: Apply the Texture Technique............................231
Hint: Manage the Texture’s Alpha Transparency................232
Example Solution: Fade the Screen In and Out............... 233
Challenge: Ease the Fade Transition.............................242
Hint: Select an Easing Equation..............................243
Hint: Apply an Easing Equation...............................243
Example Solution: Ease the Fade Transition...................244
Challenge: Coordinate the Timing................................250
Hint: Use Time-Based Scene Transitions.......................250
Hint: Be Aware of Unexpected Gameplay Events.................251
Example Solution: Coordinate the Timing......................252
Summary.........................................................256
References................................................... 257
Contents ix
10. The World Is in Motion 259
Goals............................................................259
Required Files............................................... 260
Challenge: Slice the Sprite Sheet................................260
Hint: Slice the Sprite Sheet into Frames......................260
Hint: Integrate the Sprite Slicer.............................261
Example Solution: Slice the Sprite Sheet......................261
Challenge: Create a Frame Animation..............................267
Hint: Use Frame Animation.....................................267
Hint: Provide Controls....................................... 268
Hint: Execute the Animation................................. 268
Example Solution: Create a Frame Animation ...................268
Challenge: Manage Multiple Animations............................276
Hint: Manage Characters* Animations......................... .277
Dictionary.................................................277
Hint: Implement the Character Animator...................... 278
Hint: Integrate the Character Animator...................... 279
Example Solution: Manage Multiple Animations..................279
Challenge: Apply the Animations.......................!----288
Hint: Think about Characters..................................288
Hint: Think about Interactions................................289
Example Solution: Apply the Animations........................289
Summary..........................................................297
References..................................................... 297
11. The World Can Be Heard 299
Goals.......................................................... 299
Required Files...................................................300
Challenge: Manage Music and Sound Effects....................... 300
Hint: Use Sources and Clips...................................300
Hint: Implement the Audio Manager.............................302
Example Solution: Manage Music and Sound Effects..............303
Challenge: Apply Music and Sound Effects.........................314
Hint: Think about Scenes......................................315
Hint: Think about Interactions.............................. 316
Example Solution: Apply Music and Sound Effects...............316
Summary..........................................................325
References................................................... 325
12. Celebrate Victory 327
Goals............................................................327
Required Files...................................................328
Challenge: Create a Win Scene....................................328
Hint: Create the Win Scene....................................328
x Contents
Hint: Reset the Game........................................329
Example Solution: Create a Win Scene........................329
Challenge: Play the Game.......................................334
Hint: Export for Windows....................................334
Hint: Export for Mac........................................336
Hint: Other Export Options..................................336
Example Solution: Play the Game.............................337
Summary........................................................338
Index 341
Contents xi
Game development is one of the most rewarding crafts of modern times.
Not only is making games a wonderful lifelong hobby, but employment
opportunities exist at many levels. Learn to Implement Games with Code
guides you through the development process as you put together a
release-ready game. It is written in a friendly and conversational tone, which
is suitable for a wide audience of aspiring game developers, such as
yourself. You will gain practical, hands-on experience with implementing
game components using code. Gradually, you will build a complete game
that you can be proud of. After finishing this book, you will be prepared to
start making games of your very own design.
Features
• Engage in a hands-on, practical approach to learning
game programming
• Build a release-ready game from start to finish using
C#and Unity
• Improve your game development and programming skills,
whether you re an early computer science student, aspiring
game developer, or professional retraining for a new career.
About the Author
John M. Quick, PhD, is an expert in the strategic enhancement of motivation,
learning, and performance. He collaborates with industry and university clients
to strategically solve our greatest challenges. John earned a PhD in educational
technology at Arizona State University, where he researched enjoyment and
individual differences in games. He has released more than 15 digital games that
focus on innovative topics, such as learner engagement and experimental
human-computer interaction. John has more than five years of classroom
experience at the higher education level and is the author of three books that
apply novel methods to help diverse learners build practical, hands-on
|
any_adam_object | 1 |
author | Quick, John M. |
author_facet | Quick, John M. |
author_role | aut |
author_sort | Quick, John M. |
author_variant | j m q jm jmq |
building | Verbundindex |
bvnumber | BV044332801 |
callnumber-first | Q - Science |
callnumber-label | QA76 |
callnumber-raw | QA76.76.C672 |
callnumber-search | QA76.76.C672 |
callnumber-sort | QA 276.76 C672 |
callnumber-subject | QA - Mathematics |
classification_rvk | ST 324 |
ctrlnum | (OCoLC)961841624 (DE-599)BVBBV044332801 |
dewey-full | 794.8/1536 |
dewey-hundreds | 700 - The arts |
dewey-ones | 794 - Indoor games of skill |
dewey-raw | 794.8/1536 |
dewey-search | 794.8/1536 |
dewey-sort | 3794.8 41536 |
dewey-tens | 790 - Recreational and performing arts |
discipline | Sport Informatik |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01788nam a2200421 c 4500</leader><controlfield tag="001">BV044332801</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20170803 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">170531s2017 xxua||| |||| 00||| eng d</controlfield><datafield tag="010" ind1=" " ind2=" "><subfield code="a">016007414</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781498753388</subfield><subfield code="9">978-1-4987-5338-8</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)961841624</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV044332801</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rda</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="044" ind1=" " ind2=" "><subfield code="a">xxu</subfield><subfield code="c">US</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-355</subfield></datafield><datafield tag="050" ind1=" " ind2="0"><subfield code="a">QA76.76.C672</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">794.8/1536</subfield><subfield code="2">23</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 324</subfield><subfield code="0">(DE-625)143660:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Quick, John M.</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Learn to implement games with code</subfield><subfield code="c">John M. Quick</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Boca Raton</subfield><subfield code="b">CRC Press</subfield><subfield code="c">[2017]</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">xix, 355 Seiten</subfield><subfield code="b">Illustrationen</subfield><subfield code="c">24 cm</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Includes bibliographical references and index</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Computer games</subfield><subfield code="x">Programming</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Computerspiel</subfield><subfield code="0">(DE-588)4010457-6</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Programmierung</subfield><subfield code="0">(DE-588)4076370-5</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Computerspiel</subfield><subfield code="0">(DE-588)4010457-6</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2="1"><subfield code="a">Programmierung</subfield><subfield code="0">(DE-588)4076370-5</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Regensburg - ADAM Catalogue Enrichment</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029736015&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Regensburg - ADAM Catalogue Enrichment</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029736015&sequence=000002&line_number=0002&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Klappentext</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-029736015</subfield></datafield></record></collection> |
id | DE-604.BV044332801 |
illustrated | Illustrated |
indexdate | 2024-07-10T07:50:00Z |
institution | BVB |
isbn | 9781498753388 |
language | English |
lccn | 016007414 |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-029736015 |
oclc_num | 961841624 |
open_access_boolean | |
owner | DE-355 DE-BY-UBR |
owner_facet | DE-355 DE-BY-UBR |
physical | xix, 355 Seiten Illustrationen 24 cm |
publishDate | 2017 |
publishDateSearch | 2017 |
publishDateSort | 2017 |
publisher | CRC Press |
record_format | marc |
spelling | Quick, John M. aut Learn to implement games with code John M. Quick Boca Raton CRC Press [2017] xix, 355 Seiten Illustrationen 24 cm txt rdacontent n rdamedia nc rdacarrier Includes bibliographical references and index Computer games Programming Computerspiel (DE-588)4010457-6 gnd rswk-swf Programmierung (DE-588)4076370-5 gnd rswk-swf Computerspiel (DE-588)4010457-6 s Programmierung (DE-588)4076370-5 s DE-604 Digitalisierung UB Regensburg - ADAM Catalogue Enrichment application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029736015&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis Digitalisierung UB Regensburg - ADAM Catalogue Enrichment application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029736015&sequence=000002&line_number=0002&func_code=DB_RECORDS&service_type=MEDIA Klappentext |
spellingShingle | Quick, John M. Learn to implement games with code Computer games Programming Computerspiel (DE-588)4010457-6 gnd Programmierung (DE-588)4076370-5 gnd |
subject_GND | (DE-588)4010457-6 (DE-588)4076370-5 |
title | Learn to implement games with code |
title_auth | Learn to implement games with code |
title_exact_search | Learn to implement games with code |
title_full | Learn to implement games with code John M. Quick |
title_fullStr | Learn to implement games with code John M. Quick |
title_full_unstemmed | Learn to implement games with code John M. Quick |
title_short | Learn to implement games with code |
title_sort | learn to implement games with code |
topic | Computer games Programming Computerspiel (DE-588)4010457-6 gnd Programmierung (DE-588)4076370-5 gnd |
topic_facet | Computer games Programming Computerspiel Programmierung |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029736015&sequence=000001&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=029736015&sequence=000002&line_number=0002&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT quickjohnm learntoimplementgameswithcode |