Загрузка...

LUA Basics - table.sort High Score!

Please subscribe and check out some of the other AV programming & engineering videos on my channel! Arctics 8-bit bytes! #arctics8bit

In this video, we play around with the table.sort command in LUA. the syntax is.... table.sort(table,comparison). The comparison field takes in two variables.... always a, and b. Depending on how you compare them in its anonymous function is the way in which they will be sorted. This one sorts them in decending order to simulate the High Score Table in a classic video game like Galaga! and hey.... I added a fun little nugget, the print statement in this little program contains a Unicode emoji! syntax is print("\u{character code}"). This is how I printed the video game controller emoji.

#qsc #qsys #audiovideo #audio #audiovisual #coding #lua #programminglanguage #programming #programmer

Видео LUA Basics - table.sort High Score! канала Arctic's 8-Bit Bytes
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять