Hello Jay and thank you for using SUPERSTRICT.
In your case, you have 2 options.
You can either require your lib files BEFORE requiring SUPERSTRICT.
Or you can put the following line at the top of your lib file:
It's thinking my function call is a variable I guess. How do I stop that? Yes, function calls are variables too. You have to make sure the function "Initialise2DArrays" is not global (or declare the function before you include SUPERSTRICT). Looking at your code "Initialise2DArrrays&q...
You are right, it doesn't check main.lua by default.
One option is to include main twice: require("main")
Please note that you don't need to run SUPERSTRICT in real-time.
You can run a separate script that goes through all of the files in your game folder.
Thanks for using SUPERSTRICT.
If your level generator is deterministic you can just send the initial random seed as well as the visible range and let the client reproduce the level from scratch. Note that the server would still need to provide information about the state of destructible tiles and so on.
-- I'm not testing for nil because that would throw a runtime error and will be instantly obvious anyway. You are on the right path there - that's why you should rarely assert the "type" of the parameters. Also make sure you only assert parameters that are coming from an external source. ...
The way you zip the love file can also affect its final size. Make sure to choose the slowest and highest level of compression. PNGGauntlet can reduce the size of PNGs considerably and FLAC/OGG is considerably smaller than WAVs. You could also try minifying the Lua code, using something like https:/...
Hello, I haven't tested your code, but I think there are a lot simpler and more efficient ways to test if a point is inside a triangle: https://2dengine.com/?p=intersections#Point_inside_triangle The issues with your code are: 1. The intermediate a,b,c tables. That's very inefficient 2. No "ear...