Загрузка...

while loops in Lua: Learn Programming and Game Development with Lua

Control Flow in Lua: while loops

In this video in my series Learn Programming and Game Development with Lua I demonstrate how a while loop may be used to make a simple game loop.

#programming #gamedevelopment #gamedev #lua #love2d

00:00 - Start
00:06 - Introduction
00:31 - while loop in Lua demonstration : Creating some local variables
01:08 - Implementing an increment score function
02:28 - Coding a while loop in Lua
04:16 - Replacing the boolean variable gameIsOver with gameIsRunning to simplify the while statement

Link to the code on GitHub:
https://github.com/CharlesKirkSD/Learn-Programming-and-Game-Development-with-Lua/blob/main/07%20Control%20Flow%20while/while.lua

Видео while loops in Lua: Learn Programming and Game Development with Lua канала Charles Studio Tech
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять