Godot from Zero to Proficiency (Beginner): Godot from Zero to Proficiency, #2
5/5
()
Game Development
Programming
Godot Game Engine
Scripting
Gdscript
Fish Out of Water
Chosen One
Virtual Reality
Corporate Espionage
Time Limit
Power-Up
Education Revolution
Interactive Learning
Genius Teacher
Level Progression
Learning
Education
User Interface
Game Polishing
Coding
About this ebook
Get started with Godot and game programming fast without the headaches
Godot is a great software to create video games; however, it includes so many options and features that getting started can feel overwhelming.
Without my book, most people spend too long trying to learn how to use Godot and GDScript the hard way. This book is the only one that will get you to learn GDScript fast without wasting so much time. This book is the second book in the series "Godot from Zero to Proficiency" where you will learn to code fast and be able to create your own video games with Godot in no time.
What you will learn
After completing this book, you will be able to:
- Code in GDScript.
- Understand and apply GDScript concepts.
- Create a 3D adventure game with the main character, a timer, and a mini-map.
- Display and update a user interface with text and images.
- Create and use variables and methods for your game.
- Load new scenes from the code, based on events in your games.
Who this book is for
This book is for:
- Hobbyists who need a book that gets them started with GDScript and game development easily.
- Parents looking for a book that introduces their children to game programming painlessly.
- Teachers looking for a complete and clear resource on programming through the creation of games.
- Aspiring indie game developers.
How this book is different
This is the only book that you need to get started with Godot fast and to enjoy the journey without frustration. This book includes six chapters that painlessly guide you through the necessary skills to master GDScript, use Godot's core features, and create key game mechanics through GDScript (collisions, user interface, etc). It assumes no prior knowledge on your part and ensures that you have all the information and explanations that you need every step of the way.
Content of the book
- Chapter 1 introduces some core programming and GDScript principles.
- Chapter 2 helps you to code your first script in GDScript.
- Chapter 3 gets you to improve your scripting skills, enhance your game and add more interaction with a scoring system, collision detection, and access to new levels.
- Chapter 4 shows you how to create and update the user interface of your game with text and images.
- Chapter 5 shows you how to enhance your game with a splash-screen, a simple inventory system, and sound effects, as well as a mini-map.
What this book offers
- Learn without the headaches: This book assumes that you can't be expected to learn everything at once; this is why you will build all your skills incrementally.
- Make your dream of creating your own games come true: This book ensures that you stay motivated by giving you the right amount of information and challenge in each chapter.
- Progress and feel confident in your skills: You will have the opportunity to learn and to use Godot at your own pace and to become comfortable with its interface. This is because every single new concept introduced will be explained in great detail so that you never feel lost. All the concepts are introduced progressively so that you don't feel overwhelmed.
If you want to get started with Godot today, then buy this book now.
Patrick Felicia
Patrick Felicia is a lecturer and researcher at Waterford Institute of Technology, where he teaches and supervises undergraduate and postgraduate students. He obtained his MSc in Multimedia Technology in 2003 and PhD in Computer Science in 2009 from University College Cork, Ireland. He has published several books and articles on the use of video games for educational purposes, including the Handbook of Research on Improving Learning and Motivation through Educational Games: Multidisciplinary Approaches (published by IGI), and Digital Games in Schools: a Handbook for Teachers, published by European Schoolnet. Patrick is also the Editor-in-chief of the International Journal of Game-Based Learning (IJGBL), and the Conference Director of the Irish Symposium on Game-Based Learning, a popular conference on games and learning organized throughout Ireland.
Other titles in Godot from Zero to Proficiency (Beginner) Series (5)
Godot from Zero to Proficiency (Foundations): Godot from Zero to Proficiency, #1 Rating: 5 out of 5 stars5/5Godot from Zero to Proficiency (Advanced): Godot from Zero to Proficiency, #1 Rating: 5 out of 5 stars5/5Godot from Zero to Proficiency (Beginner): Godot from Zero to Proficiency, #2 Rating: 5 out of 5 stars5/5Godot from Zero to Proficiency (Intermediate): Godot from Zero to Proficiency, #3 Rating: 5 out of 5 stars5/5Godot from Zero to Proficiency (Proficient): Godot from Zero to Proficiency, #5 Rating: 5 out of 5 stars5/5
Read more from Patrick Felicia
Roblox Game Development: From Zero To Proficiency (Beginner) Rating: 0 out of 5 stars0 ratingsLearn C# Programming by Creating Games with Unity Rating: 0 out of 5 stars0 ratingsMaster Procedural Generation with Unity and C# Rating: 0 out of 5 stars0 ratingsUnity from Zero to Proficiency (Foundations): A Companion Book Rating: 0 out of 5 stars0 ratingsUnity All-In-One Rating: 0 out of 5 stars0 ratings
Related to Godot from Zero to Proficiency (Beginner)
Titles in the series (5)
Godot from Zero to Proficiency (Foundations): Godot from Zero to Proficiency, #1 Rating: 5 out of 5 stars5/5Godot from Zero to Proficiency (Advanced): Godot from Zero to Proficiency, #1 Rating: 5 out of 5 stars5/5Godot from Zero to Proficiency (Beginner): Godot from Zero to Proficiency, #2 Rating: 5 out of 5 stars5/5Godot from Zero to Proficiency (Intermediate): Godot from Zero to Proficiency, #3 Rating: 5 out of 5 stars5/5Godot from Zero to Proficiency (Proficient): Godot from Zero to Proficiency, #5 Rating: 5 out of 5 stars5/5
Related ebooks
Godot from Zero to Proficiency (Intermediate): Godot from Zero to Proficiency, #3 Rating: 5 out of 5 stars5/5Godot from Zero to Proficiency (Advanced): Godot from Zero to Proficiency, #1 Rating: 5 out of 5 stars5/5Godot from Zero to Proficiency (Proficient): Godot from Zero to Proficiency, #5 Rating: 5 out of 5 stars5/5Godot from Zero to Proficiency (Foundations): Godot from Zero to Proficiency, #1 Rating: 5 out of 5 stars5/5The Ultimate Guide to 2D games with Unity: Ultimate Guides, #2 Rating: 0 out of 5 stars0 ratingsMastering Godot: A Comprehensive Guide to Game Development Rating: 0 out of 5 stars0 ratingsGd Script Rating: 0 out of 5 stars0 ratingsA Quick Guide to Procedural Levels with Unity: Quick Guides, #2 Rating: 5 out of 5 stars5/5Unity from Zero to Proficiency (Beginner): Unity from Zero to Proficiency, #2 Rating: 5 out of 5 stars5/5Unity from Zero to Proficiency (Proficient): Unity from Zero to Proficiency, #5 Rating: 5 out of 5 stars5/5A Beginner's Guide to Puzzle Games: Beginners' Guides, #3 Rating: 0 out of 5 stars0 ratingsA Beginner's Guide to 2D Shooter Games: Beginners' Guides, #2 Rating: 0 out of 5 stars0 ratingsUnity from Proficiency to Mastery (Artificial Intelligence): Unity from Proficiency to Mastery, #1 Rating: 0 out of 5 stars0 ratingsLÖVE for Lua Game Programming Rating: 5 out of 5 stars5/5Unity from Zero to Proficiency (Advanced): Unity from Zero to Proficiency, #4 Rating: 0 out of 5 stars0 ratingsA Quick Guide to Artificial Intelligence with Unity: Quick Guides, #4 Rating: 0 out of 5 stars0 ratingsUnity from Zero to Proficiency (Intermediate): Unity from Zero to Proficiency, #3 Rating: 2 out of 5 stars2/5Learn Python by Coding Video Games (Intermediate): Learn Python by Coding Video Games, #2 Rating: 0 out of 5 stars0 ratingsBuilding a Game with Unity and Blender Rating: 0 out of 5 stars0 ratingsGameMaker Essentials Rating: 1 out of 5 stars1/5A Quick Guide to Card Games with Unity: Quick Guides, #5 Rating: 0 out of 5 stars0 ratingsA Beginner's Guide to 2D Platform Games with Unity: Beginners' Guides, #1 Rating: 0 out of 5 stars0 ratingsUnity Game Development Blueprints Rating: 0 out of 5 stars0 ratingsUnity Game Development Essentials Rating: 5 out of 5 stars5/5GameMaker Cookbook: Over 50 hands-on recipes to help you build exhilarating games using the robust GameMaker system Rating: 0 out of 5 stars0 ratingsUnity Animation Essentials Rating: 0 out of 5 stars0 ratingsMobile Game Design Essentials Rating: 0 out of 5 stars0 ratings
Programming For You
Python: Learn Python in 24 Hours Rating: 4 out of 5 stars4/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Python Programming : How to Code Python Fast In Just 24 Hours With 7 Simple Steps Rating: 4 out of 5 stars4/5Linux: Learn in 24 Hours Rating: 5 out of 5 stars5/5Learn SQL in 24 Hours Rating: 5 out of 5 stars5/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5JavaScript All-in-One For Dummies Rating: 5 out of 5 stars5/5Microsoft Azure For Dummies Rating: 0 out of 5 stars0 ratingsLearn to Code. Get a Job. The Ultimate Guide to Learning and Getting Hired as a Developer. Rating: 5 out of 5 stars5/5SQL All-in-One For Dummies Rating: 3 out of 5 stars3/5Python Data Structures and Algorithms Rating: 5 out of 5 stars5/5PYTHON: Practical Python Programming For Beginners & Experts With Hands-on Project Rating: 5 out of 5 stars5/5Beginning Programming with C++ For Dummies Rating: 4 out of 5 stars4/5PYTHON PROGRAMMING Rating: 4 out of 5 stars4/5Mastering JavaScript: The Complete Guide to JavaScript Mastery Rating: 5 out of 5 stars5/5C All-in-One Desk Reference For Dummies Rating: 5 out of 5 stars5/5Excel 101: A Beginner's & Intermediate's Guide for Mastering the Quintessence of Microsoft Excel (2010-2019 & 365) in no time! Rating: 0 out of 5 stars0 ratingsAlgorithms For Dummies Rating: 4 out of 5 stars4/5Problem Solving in C and Python: Programming Exercises and Solutions, Part 1 Rating: 5 out of 5 stars5/5
Reviews for Godot from Zero to Proficiency (Beginner)
1 rating0 reviews
Book preview
Godot from Zero to Proficiency (Beginner) - Patrick Felicia
Patrick Felicia
Godot From Zero to Proficiency
(Beginner)
Copyright © 2021 Patrick Felicia
All rights reserved. No part of this book may be reproduced, stored in retrieval systems, or transmitted in any form or by any means, without the prior written permission of the publisher (Patrick Felicia), except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either expressed or implied. Neither the author and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
First published: April 2021
Published by Patrick Felicia
Credits
Author: Patrick Felicia
About the Author
Patrick Felicia is a lecturer and researcher at Waterford Institute of Technology, where he teaches and supervises undergraduate and postgraduate students. He obtained his MSc in Multimedia Technology in 2003 and PhD in Computer Science in 2009 from University College Cork, Ireland. He has published several books and articles on the use of video games for educational purposes, including the Handbook of Research on Improving Learning and Motivation through Educational Games: Multidisciplinary Approaches (published by IGI), and Digital Games in Schools: A Handbook for Teachers, published by European Schoolnet. Patrick is also the Editor-in-chief of the International Journal of Game-Based Learning (IJGBL), and the Conference Director of the Irish Symposium on Game-Based Learning, a popular conference on games and learning organized throughout Ireland.
Support and Resources for this Book
To complete the activities presented in this book you need to download the startup pack on the companion website; it consists of free resources that you will need to complete your projects. To download these resources, please do the following:
Open the page http://www.learntocreategames.com/books.
Click on your book (Godot From Zero to Proficiency (Beginner))
On the new page, please click the link that says "Please Here Click to Download Your Resource Pack"
This book is dedicated to Helena & Mathis
[ ]
Table of Contents
Chapter 1: Introduction to Programming in GDScript
Introduction
Statements
Comments
Variables
Arrays
Constants
Operators
Conditional statements
Match statements
Loops
Classes
Defining a class
Accessing class members and variables
Constructors
Static members of a class
Inheritance
Methods and Functions
Default parameters and return types for functions
Scope of variables
Events or Signals
Workflow to create a script
Coding convention
A few things to remember when you create a script (checklist)
Level roundup
Chapter 2: Creating your First Script
Quick overview of the interface
Getting started
Creating your first function
Creating your own class
Best practices
Level roundup
Chapter 3: Adding Interaction with GDScript
Resources necessary for this chapter
Creating a simple script to collect objects
Adding a scoring system
Loading a new level based on the score
Level roundup
Chapter 4: Creating and Updating a User Interface from Your Code
Setting up the scene
Creating a timer
Collecting boxes and displaying messages accordingly
Deleting the user messages after a few seconds
Displaying a dynamic message for the boxes collected
Rotating objects to be picked up
Collecting petrol cans in the second level
Activating the Spacecraft
Level roundup
Chapter 5: Polishing Our Game
Creating a splash screen for the game
Displaying the score in each scene
Displaying items collected as part of the user interface using images
Adding sound effects
Playing background music
Adding a mini-map
Level roundup
Chapter 6: Frequently Asked Questions
Scripts
Interaction with assets
Using a graphical user interface
Audio
Detecting user inputs
Thank you
Preface
This book will show you how you can very quickly start using Godot and code in GDScript, a scripting language similar to Python.
Although it may not be as powerful as Unity or Unreal yet, Godot offers a wide range of features for you to create your video games. More importantly, this game engine is both Open Source and lightweight which means that even if you have (or you are teaching with) computers with very low technical specification, you should still be able to use Godot, and teach or learn how to code while creating video games.
This book series entitled Godot From Zero to Proficiency allows you to play around with Godot’s core features, and essentially those that will make it possible to create interesting 3D and 2D games rapidly. After reading this book series, you should find it easier to use Godot and its core functionalities, including programming with GDScript.
This book series assumes no prior knowledge on the part of the reader, and it will get you started on Godot so that you quickly master all the wonderful features that this software provides by going through an easy learning curve.
By completing each chapter, and by following step-by-step instructions, you will progressively improve your skills, become more proficient in Godot, and create a survival game using Godot’s core features in terms of programming (i.e., GDScript), game design, and drag and drop features.
In addition to understanding and being able to master Godot’s core features, you will also create a game that includes many of the common techniques found in video games, including: level design, object creation, textures, collision detection, lights, weapon creation, character animations, particles, artificial intelligence, and menus.
Throughout this book series, you will create a game that includes environments where the player needs to find its way out of the levels, escalators, traps, and other challenges, avoid or eliminate enemies using weapons (i.e., guns or grenades), and drive a car or pilot an aircraft.
You will learn how to create customized menus and simple user interfaces using Godot’s UI system, and animate and give artificial intelligence to Non-Player Characters (NPCs) that will be able to follow the player character using pathfinding.
Finally, you will also get to export your game at the different stages of the books, so that you can share it with friends and obtain some feedback as well.
[ ]
Content Covered by this Book
Chapter 1, Introduction to Programming in GDScript, provides an introduction to GDScript and to core principles that will help you to get started. It explains key programming concepts such as variables, variable types, or functions.
Chapter 2, Creating your First Script, helps you to code your first script. It explains common coding mistakes and errors in GDScript, and how to avoid them easily. It also goes through some common error messages for beginners, and explains what they mean and how they can be avoided easily.
Chapter 3, Adding Interaction with GDScript, gets you to improve your scripting skills and your game and add more interaction. You will learn to create a scoring system, detect collisions, and load new levels.
Chapter 4, Creating and Updating a User Interface, explains how you can create a user interface using Godot’s UI system. You will add onscreen elements such as images, or text, and update them with your scripts to display the score and other messages to the user.
Chapter 5, Polishing Our Game, explains how you can improve your game, by adding a splash-screen, displaying items collected onscreen, or adding sound effects and a mini-map.
Chapter 6 provides answers to Frequently Asked Questions (FAQs) related to the topics covered in this book (e.g., scripting, audio, interaction, AI, or user interface). It also provides links to additional exclusive video tutorials that can help you with some of your questions.
Chapter 7 summarizes the topics covered in the book and provides you with more information on the next steps.
What you Need to Use this Book
To complete the project presented in this book, you only need Godot 3.2 (or a more recent version), and to also ensure that your computer and its operating system comply with Godot’s requirements. Godot can be downloaded from the official website (http://www.godotengine.org/download), and before downloading, you can check that your computer fulfills the requirements for Godot on the same page.
At the time of writing this book, the following operating systems are supported by Godot for development: Windows, Linux and Mac OS X.
In terms of computer skills, all knowledge introduced in this book will assume no prior programming experience from the reader. This book does not include any programming, as this will be introduced in the second book in the series. So for now, you only need to be able to perform common computer tasks such as downloading files, opening and saving files, be comfortable with dragging and dropping items, and typing.
Who this book is for
If you can answer yes to all these questions, then this book is for you:
Are you a total beginner in GDScript?
Would you like to become proficient in the core functionalities offered by Godot?
Would you like to teach students or help your child to understand how to create games, using programming?
Would you like to start creating great 2D or 3D games?
Although you may have had some prior exposure to Godot, would you like to delve more into Godot and understand its core functionalities in more detail?
Who this book is not for
If you can answer yes to all these questions, then this book is not for you:
Can you already code with GDScript to implement simple behaviors such as score, collision detection, or to update the user interface?
Can you already easily code a 3D game with Godot with built-in objects, controllers, cameras, lights, and terrains?
Are you looking for a reference book on GDScript?
Are you an experienced (or at least advanced) Godot user?
If you can answer yes to all four questions, you may instead look for the next books in the series. To see the content and topics covered by these books, you can check the official website (www.learntocreategames.com/books).
How you will learn from this book
Because all students learn differently and have different expectations of a course, this book is designed to ensure that all readers find a learning structure that suits them. Therefore, it includes the following:
A list of the learning objectives at the start of each chapter so that readers have a snapshot of the skills that will be covered.
Each section includes an overview of the activities covered.
Many of the activities are step-by-step, and learners are also allowed to engage in deeper learning and problem-solving skills through the challenges offered at the end of each chapter.
Each chapter ends up with a quiz and challenges through which you can put your skills (and knowledge acquired) into practice, and see how much you know. Challenges consist in coding, debugging, or creating new features based on the knowledge that you have acquired in the chapter.
The book focuses on the core skills that