How to add a Game Camera that follows the player | Love2D Basics

Channel:
Subscribers:
113,000
Published on ● Video Link: https://www.youtube.com/watch?v=F3zKl70RJlk



Duration: 9:56
29,055 views
0


This video is part of the Love2D Basics series:
https://www.youtube.com/playlist?list=PLqPLyUreLV8DrLcLvQQ64Uz_h_JGLgGg2

HUMP download:
https://github.com/vrld/hump

Final result from this video:
https://github.com/kyleschaub/snippets/tree/main/love2d/5_camera

Check out my full course on Udemy! If you're new to programming, it teaches you everything you need. Use this link to automatically apply a discount:
https://www.udemy.com/course/lua-love/?couponCode=4773D25F00A01B61246B

0:00 Introduction
0:31 Installing HUMP's camera.lua
1:36 Creating a camera
2:35 Fixing Tiled maps
3:36 Following the player
4:17 Fixing offset
5:30 Stopping the camera at the borders
9:12 Adding a HUD







Tags:
camera
love2d
lua
programming
HUMP
game development