From dbe85cb5d1b897ad07c54f6ba89009f99f5f754f Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Mon, 19 Sep 2022 22:47:00 +0300 Subject: [PATCH] switch to mirin-esque require semantics; don't include all stdlib modules by default --- README.md | 2 +- main.xml | 214 ++++++++++++++++--------------------------- stdlib/aft.lua | 10 +- stdlib/bitop.lua | 2 + stdlib/easable.lua | 2 +- stdlib/index.lua | 11 --- stdlib/input.lua | 20 ++-- stdlib/rng.lua | 2 + stdlib/scheduler.lua | 14 ++- 9 files changed, 115 insertions(+), 162 deletions(-) delete mode 100644 stdlib/index.lua diff --git a/README.md b/README.md index 6f38518..c618140 100644 --- a/README.md +++ b/README.md @@ -32,4 +32,4 @@ During distribution, there are a couple of files that should be left out: Everything related to the core functionality - loading actors, callbacks - goes in `template/main.xml`. It's not the most convinient, but I want to eventually move this out to its own Lua file. -Everything related to the standard library should go into `template/stdlib/` - all files there are manually required in `template/stdlib/index.lua`. \ No newline at end of file +Everything related to the standard library should go into `template/stdlib/` - all files there are required by the user, so be mindful of filenames \ No newline at end of file diff --git a/main.xml b/main.xml index c3301ea..43c1e05 100644 --- a/main.xml +++ b/main.xml @@ -1,6 +1,7 @@