Learn how to make an endless runner for the Sega Mega Drive using SGDK! I highly recommend working through the Megapong Tutorial first, as that explains a lot of the basics of MD coding.

Megarunner BONUS - Tile Scrolling


Know what makes any game better? Parallax scrolling! I know that might sound like an overstatement, because it is. But parallax scrolling is really cool, so let’s add a small parallax effect to our game!

This content is a Thank You for my patrons on Patreon.

Please enter the password you received to view this content.

Z6XN8Qu4Ywl+BAlb75GwMA5UwpOS3H/yDi3fQ3qHULKDB0Lt9I24XllBVR8vG8WPlOoR+zMun5+rBTa1BHR6qY9lZ9we5PfyHLHWhxcRrvkXtQflCJFLKAK+O+kIVEobAI5/vt1zmmwA5BZQIZ0GmGJe89S7J8D7nuO9iggcG6+Rc0V6fAYr1zDlB0399x/YcFoJvttnCddzS8BFqgBIICH+d5tpLKmYp0/Tmma2ynxpSg+F1N1UJC3deO/rFwxDU15w0ldQMI2aCPQlDvV1mmc5DRHn/z7fQZnNQtRgVzWE4hX+btW35CwUx2uoUBu0Y5omtvBdZDmw2szt+89vt4cuT+7NrVy+ANoM2J5cu3COihIvi92E4zKGdabUabqWjwADn0lTF0ZvUza2d3gV9MmHbf3FOPsOmjsHC63aZe/DNMkxVyeg0GD2EK045ZaQa5cNV9WmCL/zEC0xhZcG3piuUocq2tfX0WcduQ+wsLdyxwNVGUKck+q68+yvWYQxSVXOvzhWCav1c+/s3Y0fUfZcEN6/hfs2BSn2sLSVtL3LnzOZBW9TQ3RfxIXHDC8P8OlAwvHJaW2J503/NWtM+eqBojx1fqW3mQOoaCRcUUwCS+Tjo1sbN7gTHny2t1O+edKNosbimK2maW4sm8jJL6u9I9aNqCZqxH82iGEulbX6BEGN3I+N1PI3B/DdRDgND8BZ2goTaQqaIOWFCidQ2GtVKwm+EvsKDuiafchZz1ycinpBJaC2o+BuzDJIsNS3xzpm5W88AAmpb2IuiiNLkpf1F1Ua+/AJSvwBb/rU5Jp8hAlGUBnNhvDFhEq5BemZXl2R61OCG70+Sc6BQbasxIARdke8NCKQJ/GlrZlirrDRHI6cR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HHrwJBQ9uUd/vYhovIQhx9BkmGAGJEIhRNFRu8HLXBQs1USkIhDyYoK0Z666iL4vgkPKrWpyko1cu8WG+otwg3EzOjAI3ywqm3Bk/dGJUTogd9bvNTwBPwhcgFu0uFrL8imGY2628gfUpTPsixtm2xtTNuVqBB5uU+ZfVdSCQI+f15yZJtUuhCePiJ81bLY6yBA3Ay+8rJ75MguWqhYMM88NFFdHEy5WJOaJ4AQk5B6G7kc/H2xyKbAJgCv6ELcoizOgn7D9DL82qCbr9W2MYT9kK0vfdc0KbEKomSeyQwO9TwsURVNr7FNYfXu80keaGTfxR7FYbvNkiXw1TB3gNO66Hm0cg9K06sBB47XBNymch18+dFgLPru+h+xQWHTkKDOmhNG6W+WGo85+Lg1NXmTOp3OS5xpA7henry3UeT9iyhzoMD12g5U76rFGSRXEukrhdoQxA4FjAFctDUZdnSjZ4QJUU33NTsV4rx3A72APIRn3O4elVWDqdesOeatPLiO2HVMDrKzELN2Jga5renedTfAA6N6OsmxYeGola8judWHZ0nA68gtGYytUQyMYmJSaNV7S2HB6eO/Q7XKyfAXq5b9Am90ncYzf/kDIopLHtoJyLHjavhC5MdqB5MXZPH60S2hAg5EtvKkTa5edd9EpwJBu2Tx2FyCCF0xX0yl2Bd1E+xb7AdU1TEu/Ep3pdEn2cd5DJSHIqwq9/9hqiRwbZvgNKaoQnaevU894mrnqfA2Alma16/x+pJVyIywHjfDlU806jS1u4yvdH4AvsL7EpU4AkhghAJzvccW97DfCg8OucCt3NLz7dNsT5rwoBKNaSvAWIUt4N6taj7Gp8Kk+bTo8Mcd8MB/yNXELkmzI8jDHjrmJIwMgwhW2ExRfenjNYs7RyiL+o1tuhjwdUplHjCVakxpWSy9rbLWl8d+10qv+AsVqleycFyw0T7DUSgduJLeLCdr8AdRKIVUv5kSsH4LuBafRmBN4+WcSzowixz+O

images/parallax.gif

Thank you for reading and thank you even more for supporting me on Patreon! It means a lot to me and I hope I can keep doing tutorials like this for a long time to come. Until next time and be excellent to each other!

If you have any questions, comments or criticism, post them in the comments below or reach out to me on Twitter @ohsat_games! Special thanks to Stephane Dallongeville for creating SGDK and everyone in the SGDK Discord for their help and keeping the dream alive!

Take It to the Next Level!

Want to boost your Mega Drive coding skills? Get exclusive bonus steps and project files for each tutorial by supporting me on Patreon!

Become a Patron!
Just Want to Buy Me a Coffee?

Check out the rest of this tutorial series!

  • Megarunner 1 - The Framework
  • Megarunner 2 - Tiles
  • Megarunner 3 - Scrolling
  • Megarunner 4 - Player and Obstacles
  • Megarunner 5 - Jumping Math
  • Megarunner 6 - Collision and Score
  • Megarunner BONUS - Tile Scrolling
  • Get Words in Your Inbox!

    Be oldschool and sign up for my newsletter to get updates! Just enter your email address, prove you're not part of Skynet and you're good to go!



    Powered by CleverReach. I will not send you spam or sell/give your email address to someone else.  You can of course unsubscribe at any time. By clicking the subscribe button above, you confirm that you have read and agreed to our privacy policy.

    By using the Disqus service you confirm that you have read and agreed to the privacy policy.

    comments powered by Disqus

    Related Posts

    Streets of Rage 2 Design Docs

    A few years ago, Yuzo Koshiro posted a pile of old game design documents for Bare Knuckle 2 aka Streets of Rage 2 on the Ancient blog to commemorate the release of Streets of Rage 2 3D on the Nintendo 3DS. These documents gave a deep insight into the game’s inner workings, technical aspects, designs and even some cut content. They were an awesome resource for one of the most awesome games ever created.

    Read More

    Make a Space Shooter for the Mega Drive!

    It’s time for another SGDK tutorial series! After doing a single player Pong game and an endless runner, it’s time to reach for the stars… and make a space shooter! Apart from things like scrolling and animating sprites, this new series will show you how to deal with multiple entities and their collisions, how to randomly generate backgrounds and more! This project builds upon the previous tutorials, so if you’re new to SGDK programming and have not done those yet, I highly recommend starting with Megapong.
    Read More

    Patreon Revamps

    Hey there, what’s up? Things are continuing to evolve, as I’ve now updated my Patreon to give patrons more perks! Apart from early access to new tutorials and posts, the biggest one is probably the ability to peek behind the scenes…and there will be a lot to peek at in the coming months! This year I’m writing and submitting my MA thesis, meaning that I will have to do more stuff to make ends meet.
    Read More