8/16/2023 0 Comments Original pacman characters![]() We will use this value for all our textures. Note: a Pixels Per Unit value of 8 means that 8 x 8 pixels will fit into one unit in the game world. We need to modify the Import Settings in the Inspector as shown: Note: right click on the image, select Save As., navigate to the project's Assets folder and save it in a new Sprites folder.Īfter saving it in our Project directory we can select it in the Project Area: We will draw one that is inspired by the original one, but not completely the same: We will also adjust the Size and the Position like shown in the following image: Creating The Maze The Maze Sprite Once Unity has created our project and loaded the editor which may take a few minutes depending on your computers' hardware, select the Main Camera in the Hierarchy and then set the Background Color to Black. We will name it PacMan, save it in a location such as C:\GameDev, select the 2D Game template and click Create Project, as shown below: We will start the Unity Hub and select New Project: Please adapt the instructions to your version accordingly - most of the time, newer versions of Unity have User Interface differences that can throw people off-guard. Unity 2018.3 and newer versions should work fine as well, older versions of Unity may or may not work. Our Pac-Man Tutorial will be developed with Unity 2018.4 (also known as 2018 LTS). By completing those tutorials before attempting this one, you will feel at ease with this tutorial. And if you didn't or you don’t fully understand the basics, don't worry about it too much as we’ve got you covered.įeel free to read our easier Unity Tutorials like the Unity 2D Pong Game to get a feeling for the engine first. If you know your way around Unity and heard about GameObjects, Prefabs and Transforms before, then you are good to go. This tutorial does not require any special skills. Here is a preview of the final game in action: We'll focus on the Maze, the Ghosts, the food ( pellets) and of course, the hero himself: Pac-Man.Īs with our other tutorials, we'll keep things as simple as possible so everyone can understand it. The game took the world by storm and due to its popularity, Unity Technologies included a tiny easter-egg featuring Pac-Man in their game engine:īy the end of this tutorial, we have a fully functional Pac-Man clone with only 62 lines of code by utilizing Unity's powerful 2D features. The original game was released in October 1980 and soon became the most famous arcade game of all time. Let's make a Pac-Man inspired game in Unity.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |