from Hacker News

MarioGPT Uses AI to Generate Endless Super Mario Levels for Free

by Mxbonn on 2/15/23, 11:01 AM with 51 comments

  • by a13o on 2/15/23, 1:01 PM

    The secret to Mario games is a new gimmick introduced every level. They've gotten better at this over the years, and Mario 1 + Lost Levels is the worst example of it. That makes it a great comp for GPT-3 which can churn out an endless supply of flavorless brick & pipe levels and still feel vaguely Mario 1. Were this tool to live up to the hype of "indies punching above their weight", it would need to design novel platformer mechanics. The work it's doing isn't the hard part of platformer level design.

    For another example of why this isn't commercially viable, look at what happened with Super Mario Maker. In that game _humans_ are given a fixed set of Mario doodads with which to build levels. But Nintendo kept the secret sauce for themselves - the ability to create new doodads. What follows is millions of derivative Mario levels unworthy of their own game. Even if you trained MarioGPT on the rich set of level data available in Mario Maker, you would not have an algorithm that makes commercially viable Mario levels.

  • by mtlmtlmtlmtl on 2/15/23, 12:29 PM

    This is neat and all, but procedural 2D level generation can be done really well just with simple heuristics, see Spelunky from 2008. And that can be built into the game and computed efficiently on the fly, not requiring an internet connection.
  • by vyrotek on 2/15/23, 3:41 PM

    I'm surprised there haven't been more games like Cloudberry Kingdom. It has fantastic level generation with a bunch of settings to play with. Players can even have various movement abilities which the level generation considers. If you got stuck it provided an AI to follow.

    https://store.steampowered.com/app/210870/Cloudberry_Kingdom...

  • by nomilk on 2/15/23, 1:16 PM

    Are the levels playable, or just static lookalikes without moving parts?

    Incidentally, there's a nice example of a text representation of a level in the source code (requires scrolling horizontally, which isn't totally obvious from the GitHub UI): https://github.com/shyamsn97/mario-gpt/blob/main/mario_gpt/l...

    Some parts are recognisable, for example the flag pole (which is typically at the end of mario levels, I believe).

  • by jhoelzel on 2/15/23, 1:01 PM

    Port Mario to WebGL, integrate this model, tell you friend he gets 100 bucks when he beats the level ;)

    On another thought: this could probably replace the chrome dino pretty well

  • by gigel82 on 2/15/23, 6:13 PM

    It's interesting because this is using GPT-2 (https://huggingface.co/distilgpt2 specifically) which you can just fine on a reasonable GPU.

    But I'm not convinced the results are any smarter than a randomized procedural generation (I'm sure using it for text generation instead will yield sub-par results).

  • by sylware on 2/15/23, 1:05 PM

    I wonder if ML will find its way to maths as a assistive intuition.
  • by tantalor on 2/15/23, 2:51 PM

  • by rolenthedeep on 2/15/23, 10:47 PM

    Can't wait to see someone hook this into an AI that plays the levels and put it on Twitch
  • by anthk on 2/15/23, 8:29 PM

    Retux and Wario Land like games make better levels for sure because of the puzzles.