First off, some details:
OS: Mac Sierra
LOVE2D version: 11.1
The console outputs the following error to the screen:
Code: Select all
Error
bad argument #1 to '?' (string expected, got nil)
Traceback
[C]: at 0x010f045a10
[C]: in function 'require'
main.lua:22: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'
[C]: in function 'xpcall'
And yes, push.lua is in the same directory as main.lua
Here is a snippet of the code:
Code: Select all
push = require 'push'
-- classic OOP class library
Class = require 'class'
-- bird class we've written
require 'Bird'