Http : //Creating a project and Importing the assets into Unity If this doesn’t make sense then play the game. The player spaceship, wreckage spaceship, wreckage from a wrecked ship, player’s lasers and the pretty space background.
We can import and prepare them all and when we write code that depends on them we can focus on that code and not get distracted. Downloading the assetsĪlthough we won’t use all the assets straight away, having them all to hand from the start is useful. For example, what about when I am referring to a file name that is on the screen? Which formatting should I use? In such cases, I use the formatting type that I think makes the situation as clear as possible.
Note that sometimes even sticking to a convention can cause a little ambiguity. If the text represents a file or folder name it will also be formatted the same as code within the text.īlocks of code should easily stand out from the text as I am using a plugin to highlight them, like this: Perhaps if we are discussing a single line or part of a single line of code. If there is a mention of the code within the text, it will beįormatted like this. For example, the text on a button to click or the menu option to select will likely appear in this color. If the text is something you will see on screen then it is formatted in this orange color. To help I have a few text formatting conventions. I hope to make this tutorial as easy as possible, so a complete beginner can follow along. Use the WASD keys for rotate, thrust and reverse thrust. Fly around destroying pilotless spaceships (and the junk they drop when shot) and be rewarded with a magnificent high-score for all to see. Having just fought, and won, a long and bitter war with the evil Unrealious Enginios, the current issue is the vast amount of space debris. The game takes place in 2096 in a region of the Milkyway ruled by the Humanoid and Martian peoples of Earth. You can load it up and just see the game running in most mobile browsers as well. The game is only properly playable in desktop Web browsers because it uses keyboard and mouse to control. Be sure to play the game (below) so you will be able to understand what we are going to build.
The whole thing should take no longer than a couple of hours to work through. This 2D space shooter tutorial features spaceships, spinning sprites, steadily increasing difficulty, some simple lighting, retro sound effects and a cool backing track.