Functions In Lua: Learn Programming And Game Development With Lua

Publicado el: 08 enero 2025
en el canal de: Charles Studio Tech
373
14

In this video in my series Learn Programming and Game Development with Lua I introduce functions in Lua.
First I demonstrate a simple function that returns a single value.
Then I demonstrate returning mulitple values from a function.

#programming #gamedevelopment #gamedev #lua #love2d

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

00:00 - Start
00:06 - Introduction
00:44 - Writing Our First Function in Lua
02:41 - Function Structure: Discussion of the structure of a function.
03:55 - Returning Multiple Values from a Function: Introduction - In this second example we look at returning multiple values from a function
04:15 - Returning Multiple Values from a Function: Color Components - Introduction to color representation in computer graphics.
04:23 - Returning Multiple Values from a Function: Adding Colors - Writing a function that adds colors
05:12 - Returning Multiple Values from a Function: Outputting the values returned from the function - Demonstration of using the print function to output the return values from a function that returns multiple values.
05:52 - Returning Multiple Values from a Function: Processing the values returned - Demonstration of the handling of return values from a function that returns multiple values.
07:13 - Returning Multiple Values from a Function: Demonstration of what happens when the last parameter returned, from a function that returns multiple values, is not assigned to a variable.
07:35 - Returning Multiple Values from a Function : Assigning too many variables for the number of values returned


En esta página del sitio puede ver el video en línea Functions In Lua: Learn Programming And Game Development With Lua de Duración hora minuto segunda en buena calidad , que subió el usuario Charles Studio Tech 08 enero 2025, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 373 veces y le gustó 14 a los espectadores. Disfruta viendo!