
Lua Scripting
About
Before I started at Playground Squad I had little to no experience with Lua, except for some custom work with WoW Addons. However, all my accumulated knowledge about coding from all other languages very much applies to Lua as well. While we did make several games using Lua, from Pong or RPGs, the one that took most of my skills were Snake.
​
I wanted to make it so you could essentially play with as many players as you could possibly want, at the same time. But the one thing that made this the most difficult by far was that I wanted to do it using Classes, creating every player out of a "Player Class". However, Lua does not really do classes, at least not in a way I am used to, which is why this was a lot trickier than if I were to do it in C#.
​
Eventually though I managed to figure it out, with some assistance from our teacher, and I am really happy with it.

Main Role: Scripting
Team Size: Me
Time: 5 Days
Engine: LÖVE
Platform: PC
Genre: Multiplayer, Snake
Scripts
Here are the three scripts that work this magic.
.
Collision
The one other Lua project that is rather interesting is a version of Breakout we made where I, to my knowledge, was the only person to achieve perfect collision! "Perfect Collision" became an inside joke due to people constantly believing they had achieved it, only to be proven wrong when the ball took a wrong turn at some collision.