Animating Graphics In Love2D With Lua: Learn Programming and Game Development with Lua

Опубликовано: 02 Май 2026
на канале: Charles Studio Tech
1,381
37

In this video in my series Learn Programming and Game Development with Lua I continue from where I left off in the last video.
I demonstrate how to animate graphics in Love2D.
I show how to use Delta Time in the update function to make the motion hardware independent.
Along the way we look at how to add functions to tables to create objects.

#programming #gamedevelopment #gamedev #lua #love2d

00:00 - Start
00:06 - Introduction
01:45 - Completing the character table.
04:40 - Improving setting the eye positions.
05:49 - Animating the line graphic.
08:27 - What is Delta Time and why do we need it?
09:07 - Multiplying by Delta Time to scale the movement amount to give device independent movement speed.
09:48 - Setting the movement speed.
10:28 - Adding functions to tables.
12:00 - Calling the character's movement function with the . dot operator.
13:45 - Making the Delta Time adjustment for the character movement.
14:30 - The concept of self in Lua, the equivalent of this in other languages.
17:57 - Object Orientated Programming

Link to the code from the previous tutorial on GitHub which is the starting point for this tutorial:
https://github.com/CharlesKirkSD/Lear...

Link to the complete code for this tutorial on GitHub:
https://github.com/CharlesKirkSD/Lear...