Search found 1 match
- Wed May 04, 2022 12:59 pm
- Forum: General
- Topic: Make table "love" local only to main.lua
- Replies: 2
- Views: 2146
Make table "love" local only to main.lua
Hi, this is my first question on the forum :awesome:. I want to prevent lua files outside main.lua from accessing the love table. Example: -- main.lua require "test" -- test.lua love.graphics.setColor(1, 1, 1) -- return error: --test.lua:1: attempt to index global 'love' (a nil value) or -...