In Unity, when using C# to create your game, you will be writing statements and creating new classes in C# following an object-oriented programming syntax. However, compared to the usual Object Oriented programming practices, Unity’s syntax may seem different, at first glance, even to seasoned developers. So this post will help you to compare and see how Object Oriented concepts can be used with Unity.
From September onward, a “School Bundle” will be made available to schools and universities; the idea is to make the books and videos more accessible to students.
As a teacher, you will be able to enroll your class or school to the “School Bundle”; all students will then have access to all my books (the ones that I have published) in pdf format, as well as all the videos currently available on learntocreategames.usefedora.com plus any additional course or video, for 12 months.
See more here…
You can now access a free pdf sample of any of the book published on this website.
If you have been considering some of these topics you can now download the first chapters of any these books for free today and see how they can help you to create games; here is how:
– Open this page.
– Select a book (i.e., click on it).
– On the new page, select the link “Free Book Sample”.
– Click on the button labelled Checkout; this will take you to a FREE Checkout page where you just have to enter your email address to receive the pdf sample.
PS: If there is a topic that should be covered, please leave a note/comment.
In this section, we will create a word guessing game with Unity, with the following features:
- A word will be picked at random from an existing list.
- The letters of the word will be hidden.
- The players will try to guess each letter by pressing a letter on their keyboard.
- Once a letter has been discovered it will then be displayed onscreen.
- The player has a limited number of attempts to guess the word.
So, after completing this tutorial, you will be able to:
- Read words from a text file.
- Pick a random word.
- Process and assess the letters pressed by the player.
- Display the letters that were correctly guessed by the player.
- Track and display the score.
- Check when the player has used too many guesses.
Figure 1: The final game
In this post, we will be looking at some frequently asked questions about Unity and 2D shooters and 2D Games (in general).
Enter the raffle and be in for chance to win a free copy of this book + a free pass for the video course.
a Rafflecopter giveaway
Following the first part of the tutorial on 2D Shooter Games, we will, in this second part of the tutorial, learn how to:
- Spawn meteorites randomly
- Move these meteorites by applying forces
- Destroy these meteorites
Creating a 2D Shooter game in Unity: Introduction
In this tutorial, we will learn how to create a simple 2D spaceship that fires missiles with Unity; some of the skills that you will learn along the way include:
- Creating sprites
- Instantiating Objects.
- Add and use Rigidbody physics components for 2D objects.
- Apply a force on an object.
Creating a shaky bridge
In this post, we will create a shaky bridge, a bridge that collapse as the player walks on it. For this we will create a sprite and add a Rigidbody2D component to it. We will then either activate or deactivate the gravity on this object so that it starts to fall only the player collides with it.