Pygame Tutorial 20 - Scrolling Camera
pygame tutorial. At this point, we have implemented most of the core features of the megaman game, including a metall enemy that fires bullets and guards, a blader enemy that flies around, trap spikes, tiles, and items. In this video, we will focus on expanding the map by implementing scrolling. Currently megaman is stuck within the confines of the game window boundaries. With scrolling, instead of moving megaman, we move everything else on the map. So if we press on the left arrow key to move megaman to the left, we actually move everything else to the right, and vice versa. By having everything else move to the right, it simulates megaman moving to the left.
How to install Python for VS Code: • How to set up Python on Visual Studio Code
How to install Pygame: • How to Install Pygame
Pygame Tutorial Playlist: • Create a Platformer Game in Python with Py...
Click on the link below to access the images used in the tutorial!
Github for Pygame Tutorial Code: https://github.com/ImKennyYip/pygame
Python Object Oriented Programming Playlist: • Python Object Oriented Programming
Python Game Projects Tutorial Playlist: • Python Game Programming Tutorials
Pygame Website: https://www.pygame.org/
⭐ If you enjoyed the tutorial and would like to support the channel, you can do so here 💖 :https://buymeacoffee.com/kennyyipcodingg
Other Videos By Kenny Yip Coding
2025-08-11 | C++ Date and Time with CTime |
2025-08-07 | C++ Algorithms and Vector Functions |
2025-08-05 | How to add a Custom Domain on Github Pages |
2025-08-05 | How to Host a Website On Github Pages |
2025-08-04 | Pygame Tutorial 26 - Animations |
2025-08-01 | Pygame Tutorial 25 - Game Over and Reset Game |
2025-07-31 | Pygame Tutorial 24 - Draw Text and Game Score |
2025-07-30 | Pygame Tutorial 23 - Fix Enemy Bullets |
2025-07-29 | Pygame Tutorial 22 - Optimize Tile Map |
2025-07-28 | Pygame Tutorial 21 - Tile Map |
2025-07-24 | Pygame Tutorial 20 - Scrolling Camera |
2025-07-23 | Pygame Tutorial 19 - Flying Enemies |
2025-07-22 | Pygame Tutorial 18 - Traps, Hazards, Spikes |
2025-07-21 | Pygame Tutorial 17 - Items |
2025-07-04 | Pygame Tutorial 16 - Enemy Defense |
2025-07-02 | Pygame Tutorial 15 - Enemy Bullets |
2025-06-30 | Pygame Tutorial 14 - Changing Enemy Direction |
2025-06-25 | Pygame Tutorial 13 - Shooting Bullets |
2025-06-20 | Pygame Tutorial 12 - Create a Health Bar |
2025-06-11 | Pygame Tutorial 11 - Invincibility |
2025-06-02 | Code Flappy Bird in Python with Pygame |