Evil stuff

This commit is contained in:
entar 2025-05-25 14:30:16 +07:00
parent a48dead3cc
commit 859fd960f0
8 changed files with 17 additions and 8 deletions

5
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"Lua.diagnostics.disable": [
"different-requires"
]
}

View File

@ -1,11 +1,11 @@
local Height = 0
local Width = 0
local myMath = require("modules.math")
local myTypes = require("modules.types")
local conductor = require("modules.conductor")
local json = require("modules.json")
local files = require("modules.files")
local myMath = require("source.modules.math")
local myTypes = require("source.modules.types")
local conductor = require("source.modules.conductor")
local json = require("source.modules.json")
local files = require("source.modules.files")
local socket = require("socket")
local newVector2 = myTypes.Vector2(10, 10)
@ -17,6 +17,10 @@ local songDifficulty = "erect"
local chartString = files.read_file(string.format("charts/%s/%s-%s.json", songName, songName, songDifficulty))
if not chartString then
error("Chart couldn't be loaded!")
end
print(chartString)
local chart = json.parse(chartString).song

View File

@ -1,5 +1,5 @@
local myMath = require("modules.math")
local logging = require("modules.logging")
local myMath = require("source.modules.math")
local logging = require("source.modules.logging")
local conductor = {}
conductor.bpm = 120

View File

@ -1,6 +1,6 @@
local module = {}
local myMath = require("modules.math")
local myMath = require("source.modules.math")
local Vector2 = {}
Vector2.__index = Vector2