![]() ![]() Your first step is to slice it correctly. Slicing The Mouse Sprite Sheetįrames of the running, flying and dying animation are contained within the mouse_sprite_sheet. Many animated game sprites are supplied in a sprite sheet, and our heroic mouse is no exception. Apart from that, there is a sprite sheet for the mouse character, the laser and the coin objects. Don’t worry, most of the images are just decorations and backgrounds. At this point, it might seem that there are many strange files in there. To add the assets, open the RocketMouse_Resources folder, select both the Sprites and Audio folders, and drag them onto the Assets folder in the Project view. You will not use the audio files until a future part of this tutorial. Unpack the materials you downloaded for this tutorial and locate the two directories Sprites and Audio. Just when you thought you had seen it all! In this section of the tutorial you will add the player character: a cool mouse with a jetpack. There are no big changes since the project creation, but you’ve done several very important configuration steps. In the Inspector, inside the Camera component, set the Size to 3.2. If you don’t have this resolution option in the list, create it and name it iPhone Landscape. Switch to the Game view and set the size to a fixed resolution of 1136×640. Navigate to the Scenes folder you just created, name the scene RocketMouse.unity and click Save. Then open the Save Scene dialog by selecting File ▸ Save Scene or using the ⌘S ( Ctrl+S on Windows) shortcut. This will keep them separate from assets you import.Ĭreate another new folder named Scenes within the RW directory in the Project view. You will save all subsequent folders and files you create within this directory. Unless you downloaded the Starter Project, create a folder named RW in the Project view using Assets▸ ▸ Create ▸ Folder, or use the Create dropdown at the top left of the Project view. Select the 2D radio button and click Create Project. Once you’ve chosen a location, click Select folder to set the Location. The ellipsis button at the end of the field will allow you to navigate to a directory of your choosing. Type RocketMouse in the Project name field and set the location to where you would like the project saved. However, for simplicity sake, in this tutorial you will work with Retina resolution images for iPhone. Your mouse will be pleased to not be blasted into orbit with a long click!Īlso Note: You can support many different platforms and resolutions when creating games with Unity. Use colliders to define your world limits.Use sorting layers to organize your sprites.This is the first part of a three part series. Granted, not everyone hangs coins from their walls, but I’m guessing a few of you have one or two high-wattage lasers hanging about! In this game, you will be steering a mouse through a very long house, collecting coins and avoiding lasers in a similar fashion. Notably, my kids know the game well and were super excited that I was writing an update for this tutorial: Avoid the obstacles to stay alive as long as you can. In essence, it’s a fun twist on an endless runner that works well with touch screens: Touch the screen to fly up release the screen to drop back down. Collect the low hanging coins and avoid the lasers! Jetpack Joyride was released by Halfbrick Studios in 2011. Now is definitely the perfect time to revisit this tutorial using Unity’s beautifully matured 2D feature set and their revamped UI system. ![]() With the release of Unity 2017.3, much has been refined or completely changed since Kirill Muzykov’s superb Jetpack Joyride tutorial. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |