This GitHub project contains source code, downloadable PDFs, graphics, and additional files for the projects in the 4th edition of Head First C# (O'Reilly Media 2020).
Do you want to learn C#? Are you trying to figure out if our book is right for you? We think our book is one of the most effective ways to learn C#. But you don't have to take our word for it! We want you to have the best C# learning experience possible, so to make things easy for you we've provided the first four chapters of our book for free.
Download a free PDF of the first 4 chapters: Head_First_CSharp_4e_chapters_1_to_4.pdf
That PDF includes the complete introduction, chapters 1 through 4, the first two Unity Labs, and the complete Visual Studio for Mac Learner's Guide appendix, as well as the full table of contents and index (so you can see everything that we cover).
Try out our book today and see what you think!
☮️
Dive into C# and create apps, user interfaces, games, and more using this fun and highly visual introduction to C#, .NET Core, and Visual Studio. With this completely updated guide, which covers C# 8.0 and Visual Studio 2019, beginning programmers like you will build a fully functional game in the opening chapter. Then you'll learn how to use classes and object-oriented programming, create 3D games in Unity, and query data with LINQ. And you'll do it all by solving puzzles, doing hands-on exercises, and building real-world applications. By the time you're done, you'll be a solid C# programmer--and you'll have a great time along the way!
Based on the latest research in cognitive science and learning theory, Head First C# uses a visually rich format to engage your mind rather than a text-heavy approach that puts you to sleep. Why waste your time struggling with new concepts? This multisensory learning experience is designed for the way your brain really works.
Find the video walkthroughs for Chapter 1 on our YouTube channel.
Some of the chapters have downloadable projects. You can download PDFs of those projects here:
Chapter_5_Blazor_projects.pdf– The two Blazor projects from Chapter 5Chapter_6_Blazor_project.pdf– The Blazor project from Chapter 5Chapter_8_WPF_project.pdf– The WPF project from Chapter 8Chapter_8_Blazor_project.pdf– The Blazor project from Chapter 8Chapter_9_project.pdf– The project from Chapter 9Chapter_10_project.pdf– We're working really hard to finish this as fast as we can! It's coming soon, we promise.
NOTE: The downloadable projects for these chapters are early release PDFs! That means that while the code works, the projects are complete, and we've done our initial review of them, we're still working on polishing them up and putting the final touches on them. But you can definitely start using them today!*
In the Head First C# Unity Labs you'll use Unity, the powerful platform for 2D and 3D game development, to explore C# and practice your C# skills.
- Unity_Lab_1.pdf – Explore C# with Unity
- Unity_Lab_2.pdf – Write C# Code for Unity
- Unity_Lab_3.pdf – GameObject Instances
- Unity_Lab_4.pdf – User Interfaces
- Unity_Lab_5.pdf – Raycasting
- Unity_Lab_6.pdf – Scene Navigation
There's more to learn about Unity! We've written additional Unity Labs that go beyond the material in the book to teach you important Unity topics, and give you more practice building 3D games.
Unity_Lab_7.pdf– PhysicsUnity_Lab_8.pdf- Collision Detection (coming soon!)Unity_Lab_9.pdf- Unity Boss Battle (coming soon!)Unity_Lab_10.pdf- robots (coming soon!)
You can find the code for the Unity Lab projects in the Unity_Labs/Projcts folder. You can load a project into Unity by:
- Downloading it (or cloning this whole repository)
- Adding its folder to Unity Hub
- Opening it in Unity Hub
- Opening SampleScene from the Scenes folder
Here's what you'll find in this repository:
Head_First_CSharp_4e_chapters_1_to_4.pdf– a PDF of the first four chapters, including the first two Unity Labs and the Visual Studio for Mac Learner's Guide appendixUnity Labs– PDFs and graphics files for the Unity Lab projects throughout the bookBilliard Ball Textures– billiard ball textures for the Unity Lab projects
We worked really hard to make this book as error-free as possible! But we're only human, and we do occasionally make mistkaes. If you spot an error in the book, please use the [https://www.oreilly.com/catalog/errata.csp?isbn=9781491976708](O'Reilly errata page) to let us know about it. That way it goes into a database so we can keep track of it and fix it in future printings.
All of the source code and graphics used by the source code is licensed under the MIT License.
PDFs, cover, and other written book material © 2020 Andrew Stellman and Jennifer Greene, all rights reserved.
Cover art by Jose Marzan Jr. (@JoseMarzan).
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc. The Head First series designations, Head First C#, and related trade dress are trademarks of O’Reilly Media, Inc.
