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 - https://www.patreon.com/GameMakersToolkit
Read this on Substack - https://open.substack.com/pub/gmtk/p/how-to-make-a-good-2d-camera
=== Sources and Resources ===
- Additional resources
Platformer Toolkit
https://gmtk.itch.io/platformer-toolkit
Math for Game Programmers: Juicing Your Cameras With Math | GDC on YouTube
https://www.youtube.com/watch?v=tu-Qe66AvtY
Scroll Back: The Theory and Practice of Cameras in Side-Scrollers | Game Developer
https://www.gamedeveloper.com/design/scroll-back-the-theory-and-practice-of-cameras-in-side-scrollers
How Cameras in Side-Scrollers Work | GDC
https://www.youtube.com/watch?v=pdvCO97jOQk
Insanely Twisted Shadow Planet Camera Explained | Ryan Meyer
https://www.youtube.com/watch?v=aAKwZt3aXQM
Analysis of Screenshake Types | DaveTech
http://www.davetech.co.uk/gamedevscreenshake
Basic 2D “Screen Shake” in Unity | Medium
https://medium.com/nice-things-ios-android-development/basic-2d-screen-shake-in-unity-9c27b56b516
Amplify Your Game Camera | Medium
https://medium.com/cg-cookie/amplify-your-game-camera-a9fb4e56570c
Muno | Twitter
https://twitter.com/munosnail/status/1597255824904441859
50 Camera Mistakes | GDC Vault (Free)
https://www.gdcvault.com/play/1020460/50-Camera
=== 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 - https://www.epidemicsound.com/referral/vtdu5y (Referral Link)
=== Subtitles ===
Contribute translated subtitles - https://amara.org/videos/6cZLYxYTl6OP/
Other Videos By Game Maker's Toolkit
2024-02-13 | Wishlist Mind Over Magnet on Steam! |
2024-02-01 | Why Spec Ops: The Line Mattered |
2024-01-19 | Super Mario's Invisible Difficulty Settings |
2023-12-22 | How Jusant Makes Rock-Climbing More Immersive |
2023-12-07 | How I polished my indie magnet puzzle game |
2023-11-14 | The one thing you need to finish your game (Developing 11) |
2023-10-23 | A puzzle game where your tools are completely random |
2023-10-18 | How Nintendo Designed Ultrahand |
2023-10-04 | The World Design of Banjo-Kazooie |
2023-09-21 | A puzzle game where you decipher languages |
2023-09-12 | How to Make a Good 2D Camera |
2023-08-11 | The 3 Types of Detective Game |
2023-07-18 | The Best Games from GMTK Game Jam 2023 |
2023-06-30 | The Genius AI Behind The Sims |
2023-05-26 | The GMTK Game Jam Returns for 2023 |
2023-05-24 | Valve's "Secret Weapon" |
2023-05-15 | The GMTK Game Jam Returns in July 2023 |
2023-05-09 | How Nintendo Solved Zelda's Open World Problem |
2023-04-24 | Why Capcom is the King of Remakes |
2023-04-03 | Don't make this assumption about your players |
2023-02-17 | How To Think Like A Game Designer |
Other Statistics
Spelunky Statistics For Game Maker's Toolkit
At this time, Game Maker's Toolkit has 3,933,514 views for Spelunky spread across 5 videos. Less than an hour worth of Spelunky videos were uploaded to his channel, or 1.77% of the total watchable video on Game Maker's Toolkit's YouTube channel.