Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Infinite Mario AI: Mario follows Mouse

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
167,490
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 7, 2009

This is work in progress!
I'm playing around with the "run to the right" AI I've shown here before (http://www.youtube.com/watch?v=DlkMs4ZHHr8 ). I decided to change the heuristic for A* (roughly speaking, the goal the Mario AI is trying to archieve), so that Mario tries to be as close as possible to the mouse pointer. In the video, I just show the behaviour a bit and try to bring Mario in dangerous situations, which the AI solves on its own!

Slowmotion of the part with lots of enemies: http://www.youtube.com/watch?v=J2shAMA0dfM

This is based on Infinite Mario ( http://www.mojang.com/notch/mario/ ). In this version, walljumps are possible (you can see Mario climbing out of a hole).

The red lines show which routes the AI is considering, you can see them adapting to new obstacles once they appear. The AI only uses information on screen, and runs in Java, in real time.

Music: "Slap the phono" from Ohmega Watts (album: wax reform).

More info: http://www.doc.ic.ac.uk/~rb1006/projects:marioai

Enjoy!

PS: I need some more participants in a very small Pac-Man survey for my PhD! If you play it 5 times, it would help me a lot: http://apps.facebook.com/adaptive_game/

Category:

Education

Tags:

License:

Standard YouTube License

Link to this comment:

Share to:

Top Comments

  • So I undestand correctly: da computer will play video games for us, so we have more free time? Way cool.

  • Actually, it is.

    The point is for Mario (controlled by the computer) to follow the cursor without dieing. And it seems to work really well, too! Notice that Mario never touches the spiny, even though the cursor is telling him to move towards the spiny. If this wasn't AI, and Mario was simply following the cursor no matter what, he would run right into the spiny and die!

see all

All Comments (144)

Sign In or Sign Up now to post a comment!
  • SimpleMLPAgent.java!?

    Video is now 20% cooler. 0c0

  • @Isncee it loves the mouse

  • Just send Rick Deckard to kill mario :3

  • but will it blend?

  • @Isncee No, the question is: Will it blend?

  • @00ShowYouHow00 I think the AI would desperately attempt to survive as long as possible or kill the enemies.

  • Thumbs up if you wanna play with it. Please tell us where to download this awesome program!

  • @00ShowYouHow00 There's always a walljump, and he probably wouldn't get into the center of the enemies if there was 1000.

  • is the game completely deterministic?

  • and what would the AI do if there isnt a walljump and there are 1000 enemys attacking mario and no chance to stay alive?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more