Change Level Shape

mechanics space polish and systems

How to implement this Pattern in MakeCode

Change the width of your level to make it longer

The most simple way to add this game pattern is to make your level length longer. To do this click on your tilemap image and click on the numbers at the bottom left to change them.

The first one is the width so try changing that from 20 to 40. This make the level twice as long. Fill in the blank space to add your level design.

Change the shape of your level.

Another way to radically change the feel of your game is to make it tall and thin. Try this out by making the second value (the height) much higher than first value (the width)

change level shape

If you want your player to start at the bottom then you’ll need to change your starting position. You may need to do some maths. The position is in pixels. If each square on the tilemap is 16 pixels and it is 40 squares high then the screen will be 40 x 16 pixels high. You can set your player position based on that.

Test your Changes and Next Steps

Test your game to check that your changes have the desired behaviour and that there are no side effects. For example,
you can ask yourself the following questions:

This Game Pattern is one of many allowing you to make improvements to your platform game and to learn coding and wider computing concepts. Find more on the Game Pattern page.