Microsoft MakeCode

Levels

is it possible to make auto generated levels?

1 Like

Yes, it would actually be pretty easy. The hard part is that you have to make sure the level can be playable. In my (SHAMELESS SELF PROMOTION) Crossy Roads 3, each map is different. But I’ve made basically no effort to ensure that the level is playable, so there may be a hit and miss. For platformer games, you could probably do something like this:

  1. Make a starting platform for the player.
  2. Now place some blocks for the player to walk on
  3. Leave a gap
  4. Choose whether to move the next platforms higher or lower or not.
  5. Go back to step 2 until you hit the end
  6. Place an ending platform.
2 Likes

We did a livestream showing one way to do this!

The strategy was based on what I did for my game Dungeon

1 Like

but what code would I run to do that?

Do you have a game that you would like to auto-generate levels for?