LunaLua Tutorials Index

Share guides you have written for SMBX, and related tools here.
Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9722
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

LunaLua Tutorials Index

Postby Emral » Sat Mar 30, 2019 7:34 am

This thread serves as an index for my lunalua tutorial series. The series is designed for SMBX2 builds starting with the MAGLX3 build.
If you have suggestions for future episodes, please post them below. I'll try to answer questions on each episode to the best of my ability in the respective comments section.

If you'd like to just have a list of the individual episodes, you can take a look at the playlist:
https://www.youtube.com/playlist?list=P ... eONYCNMzI_

MAIN SERIES

Episode 0: Finding your way around the editor
No lua in this episode, hence Episode 0. The main focus point is addressing the most important elements of the PGE editor, to give newcomers an easier time finding their way around it.

Episode 1: Fundamentals
We discuss the basic setup of the standard luna.lua file and delve into a few snippits of code that can be used in order to create effects within the SMBX game.

Episode 2: Variables
This episode introduces the basic concept of variables and variable manipulation. Numbers are used in order to make a timer count down, and the concept of a table is briefly touched upon. Tables are more elaborately used in future episodes, whenever a [] or . is used in our code.

Episode 3: Practical use of variables
Knowing what a variable is is fine and all, but what are the extents we can use them for? In this episode, I dive into some easy manipulation of Boom Boom in order to show how through the use of variables and lua code, a boss fight can be quickly and easily enhanced.

Episode 4: Augmenting an NPC
Now that we know that NPCs can be manipulated, let's work on a piece of code where NPCs run additional behaviour for each instance. In this episode, a Galoomba is made more to act like its winged companion using pnpc. We even take a look at edge cases such as projectile generators, which form an important basis for creating your own custom NPCs in the future.

Episode 5: Saving data
Elaborating on the concept of tables as containers for storing variables, I introduce the new saving mechanisms we introduced in the MAGLX3 build. In this episode, these saving mechanisms are used in order to make Dragon Coins save permanently if all have been collected in a level in a single playthrough. The resulting code is structured in a way in which it's applicable to all levels in an episode.

Episode 6: Autoscrolling
Ever wanted multi-section or multi-direction autoscroll? This episode covers various things you can do using autoscroll.lua, including that!

Episode 7: Darkness
Continuing the detour across various included libraries, this episode explains how to use the new darkness feature that can be used for dark caves and dark grasslands alike.

Episode 8: Parallaxing backgrounds
The parallaxing system has been reworked for the MAGLX3 build. This episode goes through an example setup in order to convey the idea of how to use this system. A few additions to the parallaxing background are made through code, in order to showcase runtime changes to the parallaxing background's properties.

Episode 9: Writing a library
Now that we have taken a closer look at several libraries, let's take a look at how one of these works in detail. Finally, a library simulating Go Go Goomba!

Episode 10: Sound and music [TEMPORARILY UNAVAILABLE]
Whether your goal is multiple custom tracks in a section or replaced sound effects throughout an episode, this episode of lunalua tutorials covers all of that and more. Some of these features were present in Beta 3, others were not.

Episode 11: Monitoring the player
We've taken extensive looks at how to augment NPC behaviour, but how would we go about augmenting player behaviour? This episode answers just that, by creating a double jump system from scratch. It serves as a fundamental building block for creating your own characters.

Episode 12: Particle effects
Returning to the visual effects side of libraries, this episode goes through the process of creating a particle system and manipulating it through code.

Episode 13: Drawing images
We've drawn a lot of images through helpful libraries like particles and paralx2, but those cases were very function-specific, so let's take a shot at getting our own spritesheet into the scene! This tutorial covers basic image drawing and the basics of sprite objects using the Sprite class, including rotation functionality.

Episode 14: Optimizing code
Kind of an "End of Chapter 1" to the tutorial series, as I round out this week of recording with what I consider the last major topic to discuss at this stage. Presented are 8 code examples that focus on code organisation, object creation, and optimizing for performance. This episode also introduces unctions as the last variable type I had previously omitted by name, and we create our own ones in order to make our life easier.
This is an "End of Chapter 1" video in the sense that a lot of what these cases stand for will flow into the general workflow as we tackle more advanced topics in this series.

ADVANCED SERIES - NPC PACKS
The videos in this series go through the process of creating an NPC pack. It's very helpful to have a fundamental understanding of various parts of lua and lunalua before attempting this. Episodes 1, 2, 3, 4 and 9 are key.

Episode 1: Parachuting Galoomba
Episode 2: Parachuting Bob-Omb and creating an AI file

MmmMario
Monty Mole
Monty Mole
Posts: 127
Joined: Sun Aug 05, 2018 6:28 am
Flair: Yeet

Re: LunaLua Tutorials Index

Postby MmmMario » Sat Mar 30, 2019 7:27 pm

FINALLY SOME UP-TO-DATE LUNALUA TUTORIALS THANKS ENJL!

Sednaiur
Volcano Lotus
Volcano Lotus
Posts: 579
Joined: Fri Dec 20, 2013 2:16 pm

Re: LunaLua Tutorials Index

Postby Sednaiur » Mon Oct 28, 2019 7:18 pm

I just started to see how to paralax a background. This is actually really helpful and well-made, in my opinion. I can probably learn a lot from these tutorials. I will come back many times to see and learn more.
Luckily I already made graphical sheets for this magic more than 3 years ago. :-P
Thanks again.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9722
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: LunaLua Tutorials Index

Postby Emral » Wed Mar 11, 2020 3:47 pm

Few changes and new things:
1) I removed the vertical wrap tutorial because it's now a basic feature in the editor
2) I added the following:
How to remove pnpc: https://www.youtube.com/watch?v=A3qBcwecmXk
How to make music loop well: https://www.youtube.com/watch?v=bX8VVqejaZc


Return to “Guides”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari