How to Make a Good 2D Camera

Making a 2D game? Then you’ll need to code a camera. But there’s more to it than just following the main character. Here are five tips for making a better camera. GMTK is powered by Patreon - Read this on Substack - === Sources and Resources === - Additional resources Platformer Toolkit Math for Game Programmers: Juicing Your Cameras With Math | GDC on YouTube Scroll Back: The Theory and Practice of Cameras in Side-Scrollers | Game Developer How Cameras in Side-Scrollers Work | GDC Insanely Twisted Shadow Planet Camera Explained | Ryan Meyer Analysis of Screenshake Types | DaveTech Basic 2D “Screen Shake” in Unity | Medium Amplify Your Game Camera | Medium Muno | Twitter 50 Camera Mistakes | GDC Vault (Free) === Chapters === 00:00 - Intro 00:26 - Lookahead 03:06 - Jumping 05:06 - Damping 06:21 - Framing 08:16 - Juice 09:55 - Conclusion === Games Shown === Super Mario Maker 2 (2019) Super Mario 64 (1996) Life is Strange (2015) Platformer Toolkit (2022) Sonic Mania (2017) Metroid Dread (2021) Terraria (2011) Super Catboy (2023) Geometry Dash (2013) OlliOlli World (2022) Cave Story (2004) New Super Mario Bros. U Deluxe (2019) Sonic Generations (2011) Hyper Light Drifter (2016) Luftrausers (2014) Nuclear Throne (2015) Enter the Gungeon (2016) The Swapper (2013) Hotline Miami (2012) Ghost Song (2022) Bubsy: The Woolies Strike Back (2017) The Messenger (2018) Donkey Kong Country: Tropical Freeze (2014) Rayman Legends (2013) Shovel Knight (2014) The End Is Nigh (2017) VVVVVV (2010) Grapple Dog (2022) Haiku, the Robot (2022) Pizza Tower (2023) Hollow Knight (2017) Ori and the Will of the Wisps (2020) Guacamelee! 2 (2018) Fez (2012) Gravity Circuit (2023) Spelunky 2 (2020) Cyber Shadow (2021) Little Nightmares II (2021) Blasphemous (2019) Insanely Twisted Shadow Planet (2011) Disney Illusion Island (2023) Pyre (2017) Inside (2016) Gris (2018) Celeste (2018) Katana Zero (2019) Dave the Diver (2023) Hades (2020) Cuphead (2017) Viewfinder (2023) Tormentor X Punisher (2017) The Legend of Zelda: Link’s Awakening (2019) === Credits === Music provided by Epidemic Sound - (Referral Link) === Subtitles === Contribute translated subtitles -
Back to Top