Starting from:
$35

$29

Assignment 01 Solution

Overview




In this assignment, you will create the basics of a side-scrolling platformer game. This assignment requires you to combine many of the concepts we’ve learned about 2D game programming together in a single (incomplete) game:




Designing levels




Sprites and animations 2D physics and colliders User interaction







Tile Map




First, download a royalty-free platformer tile set. You can use any tile set that you like. Here is an example on opengameart.org:




https://opengameart.org/content/platformer-tilesets (Creative Commons license)




Create a tile map of your own design using the Tilemap gameobject in Unity. Follow the same technique that we used in for the top-down RPG Tilemap, creating multiple layers of Tilemap as required to build your level.




Character




Download a royalty-free side-view sprite sheet. You can use any sprite sheet that you like. Here is an example on opengameart.org:




https://opengameart.org/content/golden-knight-character-sprite (Creative Commons license) It is not required to use every sprite in the sprite sheet.




Controls, the Camera, Collisions, and Physics




The character should be able to walk (left and right), and jump. The default input mappings are acceptable for the purposes of this assignment. Left and right movement should be enabled with the horizontal axis (a and d, or left

and right cursor, or left and right on the gamepad). Jumping should be enabled with the space bar or the first button on the gamepad.




Jumping should use the Rigidbody2D component by adding an upward force. Once in the air, jumping should not be possible. Colliders should be added to allow the character to jump up onto platforms. This is where separating the Tilemap layers will be handy, as you can have background tiles which don’t affect collisions, and platform tiles which do, each on their own layers.




The camera should follow the character around the map, so that the character is always at the centre of the screen.







How to Submit




Submit your assignment1 GitHub URL to the Assignment 1 drop box on Blackboard.


























































































































































2

More products