Skip to content

loading a library/module #1

@lee2sman

Description

@lee2sman

This is really exciting. I've done some simple Love2d tests in your demo instance already.

I'm developing a library for creative coding that uses Love2d under the hood. A minimal demo looks like this:

require "L5" --single file library in directory is L5.lua

function setup()
    text("Hello world", 20, 20) -- draws "Hello world" at x=20, y=20
end

I attempted to load L5.lua in your demo instance and then to write code with that library in main.lua, but when I checked the console for error it appears that you can only load json files. Any way to fix this or allow pulling in other lua files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions