Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Replace forward slashes with dots
Browse files Browse the repository at this point in the history
Seems like this is the standard for Lua now.

Furthermore, forward slashes in requires are deprecated in LOVE 12.0.
  • Loading branch information
ShamblesSM committed Feb 21, 2023
1 parent bf19d02 commit f5f66ea
Show file tree
Hide file tree
Showing 91 changed files with 253 additions and 253 deletions.
4 changes: 2 additions & 2 deletions .vscode/lua_snippets.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"scope": "lua",
"prefix": "!class",
"body": [
"local class = require \"com/class\"",
"local class = require \"com.class\"",
"",
"---@class ${TM_FILENAME_BASE}",
"---@overload fun(${1:params}):${TM_FILENAME_BASE}",
Expand All @@ -43,7 +43,7 @@
"scope": "lua",
"prefix": "!classn",
"body": [
"local class = require \"com/class\"",
"local class = require \"com.class\"",
"",
"---@class ${1:${TM_FILENAME_BASE}}",
"---@overload fun(${2:params}):${1:${TM_FILENAME_BASE}}",
Expand Down
2 changes: 1 addition & 1 deletion conf.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local json = require("com/json")
local json = require("com.json")



Expand Down
2 changes: 1 addition & 1 deletion crash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local utf8 = require("utf8")



local CrashScreen = require("src/Kernel/CrashScreen")
local CrashScreen = require("src.Kernel.CrashScreen")
local crashScreen = nil
local DT = 0.1

Expand Down
24 changes: 12 additions & 12 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@
require("crash")

-- global utility methods
require("src/strmethods")
require("src/mathmethods")
require("src.strmethods")
require("src.mathmethods")

local json = require("com/json")
local json = require("com.json")

local Vec2 = require("src/Essentials/Vector2")
local Color = require("src/Essentials/Color")
local Vec2 = require("src.Essentials.Vector2")
local Color = require("src.Essentials.Color")

local Log = require("src/Kernel/Log")
local Debug = require("src/Kernel/Debug")
local Log = require("src.Kernel.Log")
local Debug = require("src.Kernel.Debug")

local BootScreen = require("src/Kernel/BootScreen")
local Game = require("src/Game")
local BootScreen = require("src.Kernel.BootScreen")
local Game = require("src.Game")

local ExpressionVariables = require("src/ExpressionVariables")
local Settings = require("src/Kernel/Settings")
local ExpressionVariables = require("src.ExpressionVariables")
local Settings = require("src.Kernel.Settings")

local DiscordRichPresence = require("src/DiscordRichPresence")
local DiscordRichPresence = require("src.DiscordRichPresence")



Expand Down
6 changes: 3 additions & 3 deletions src/BonusScarab.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
local class = require "com/class"
local class = require "com.class"

---@class BonusScarab
---@overload fun(path, deserializationTable):BonusScarab
local BonusScarab = class:derive("BonusScarab")

local Vec2 = require("src/Essentials/Vector2")
local Color = require("src/Essentials/Color")
local Vec2 = require("src.Essentials.Vector2")
local Color = require("src.Essentials.Color")



Expand Down
4 changes: 2 additions & 2 deletions src/Collectible.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
local class = require "com/class"
local class = require "com.class"

---@class Collectible
---@overload fun(deserializationTable, pos, name):Collectible
local Collectible = class:derive("Collectible")

local Vec2 = require("src/Essentials/Vector2")
local Vec2 = require("src.Essentials.Vector2")



Expand Down
2 changes: 1 addition & 1 deletion src/CollectibleGenerator/Entry.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local class = require "com/class"
local class = require "com.class"

---@class CollectibleGeneratorEntry
---@overload fun(manager, name):CollectibleGeneratorEntry
Expand Down
4 changes: 2 additions & 2 deletions src/CollectibleGenerator/Manager.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
local class = require "com/class"
local class = require "com.class"

---@class CollectibleGeneratorManager
---@overload fun():CollectibleGeneratorManager
local CollectibleGeneratorManager = class:derive("CollectibleGeneratorManager")

local CollectibleGeneratorEntry = require("src/CollectibleGenerator/Entry")
local CollectibleGeneratorEntry = require("src.CollectibleGenerator.Entry")



Expand Down
2 changes: 1 addition & 1 deletion src/ColorManager.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local class = require "com/class"
local class = require "com.class"

---Counts spheres on the board.
---@class ColorManager
Expand Down
10 changes: 5 additions & 5 deletions src/ConfigManager.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
local class = require "com/class"
local class = require "com.class"

---@class ConfigManager
---@overload fun():ConfigManager
local ConfigManager = class:derive("ConfigManager")

local CollectibleGeneratorManager = require("src/CollectibleGenerator/Manager")
local CollectibleGeneratorManager = require("src.CollectibleGenerator.Manager")

local ShooterConfig = require("src/Configs/Shooter")
local Power = require("src/Configs/Power")
local FoodItem = require("src/Configs/FoodItem")
local ShooterConfig = require("src.Configs.Shooter")
local Power = require("src.Configs.Power")
local FoodItem = require("src.Configs.FoodItem")



Expand Down
2 changes: 1 addition & 1 deletion src/Configs/FoodItem.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local class = require "com/class"
local class = require "com.class"

---@class FoodItem
---@overload fun(data, path):FoodItem
Expand Down
4 changes: 2 additions & 2 deletions src/Configs/Power.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
local class = require "com/class"
local class = require "com.class"

---@class Power
---@overload fun(data):Power
local Power = class:derive("Power")

local Profile = require("src/Profile")
local Profile = require("src.Profile")



Expand Down
6 changes: 3 additions & 3 deletions src/Configs/Shooter.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
local class = require "com/class"
local class = require "com.class"

---@class ShooterConfig
---@overload fun(data):ShooterConfig
local ShooterConfig = class:derive("ShooterConfig")

local Vec2 = require("src/Essentials/Vector2")
local ShooterMovementConfig = require("src/Configs/ShooterMovement")
local Vec2 = require("src.Essentials.Vector2")
local ShooterMovementConfig = require("src.Configs.ShooterMovement")



Expand Down
2 changes: 1 addition & 1 deletion src/Configs/ShooterMovement.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local class = require "com/class"
local class = require "com.class"

---@class ShooterMovementConfig
---@overload fun(data):ShooterMovementConfig
Expand Down
4 changes: 2 additions & 2 deletions src/Configs/UI2Animation.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
local class = require "com/class"
local class = require "com.class"

---@class UI2AnimationConfig
---@overload fun(data):UI2AnimationConfig
local UI2AnimationConfig = class:derive("UI2AnimationConfig")

local Vec2 = require("src/Essentials/Vector2")
local Vec2 = require("src.Essentials.Vector2")



Expand Down
6 changes: 3 additions & 3 deletions src/Configs/UI2Node.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
local class = require "com/class"
local class = require "com.class"

---@class UI2NodeConfig
---@overload fun(data):UI2NodeConfig
local UI2NodeConfig = class:derive("UI2NodeConfig")

local Vec2 = require("src/Essentials/Vector2")
local UI2WidgetConfig = require("src/Configs/UI2Widget")
local Vec2 = require("src.Essentials.Vector2")
local UI2WidgetConfig = require("src.Configs.UI2Widget")



Expand Down
6 changes: 3 additions & 3 deletions src/Configs/UI2Sequence.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
local class = require "com/class"
local class = require "com.class"

---@class UI2SequenceConfig
---@overload fun(data):UI2SequenceConfig
local UI2SequenceConfig = class:derive("UI2SequenceConfig")

local Vec2 = require("src/Essentials/Vector2")
local Color = require("src/Essentials/Color")
local Vec2 = require("src.Essentials.Vector2")
local Color = require("src.Essentials.Color")



Expand Down
6 changes: 3 additions & 3 deletions src/Configs/UI2Widget.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
local class = require "com/class"
local class = require "com.class"

---@class UI2WidgetConfig
---@overload fun(data):UI2WidgetConfig
local UI2WidgetConfig = class:derive("UI2WidgetConfig")

local Vec2 = require("src/Essentials/Vector2")
local Color = require("src/Essentials/Color")
local Vec2 = require("src.Essentials.Vector2")
local Color = require("src.Essentials.Color")



Expand Down
4 changes: 2 additions & 2 deletions src/DiscordRichPresence.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local class = require "com/class"
local class = require "com.class"

---@class DiscordRichPresence
---@overload fun():DiscordRichPresence
Expand Down Expand Up @@ -37,7 +37,7 @@ end

---Includes and initializes the actual Rich Presence code.
function DiscordRichPresence:init()
self.rpcMain = require("com/discordRPC")
self.rpcMain = require("com.discordRPC")

function self.rpcMain.ready(userId, username, discriminator, avatar)
self.connected = true
Expand Down
4 changes: 2 additions & 2 deletions src/DummyLevel.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
local class = require "com/class"
local class = require "com.class"

---@class DummyLevel
---@overload fun(path):DummyLevel
local DummyLevel = class:derive("DummyLevel")

local Map = require("src/Map")
local Map = require("src.Map")



Expand Down
2 changes: 1 addition & 1 deletion src/Essentials/Color.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local class = require "com/class"
local class = require "com.class"

---@class Color
---@overload fun(r, g, b):Color
Expand Down
6 changes: 3 additions & 3 deletions src/Essentials/ColorPalette.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
local class = require "com/class"
local class = require "com.class"

---@class ColorPalette
---@overload fun(path):ColorPalette
local ColorPalette = class:derive("ColorPalette")

local Vec2 = require("src/Essentials/Vector2")
local Color = require("src/Essentials/Color")
local Vec2 = require("src.Essentials.Vector2")
local Color = require("src.Essentials.Color")



Expand Down
6 changes: 3 additions & 3 deletions src/Essentials/Font.lua
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
local class = require "com/class"
local class = require "com.class"

---@class ColorPalette
---@overload fun(path):ColorPalette
local Font = class:derive("Font")

local Vec2 = require("src/Essentials/Vector2")
local Color = require("src/Essentials/Color")
local Vec2 = require("src.Essentials.Vector2")
local Color = require("src.Essentials.Color")



Expand Down
4 changes: 2 additions & 2 deletions src/Essentials/Image.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
local class = require "com/class"
local class = require "com.class"

---@class Image
---@overload fun(path):Image
local Image = class:derive("Image")

local Vec2 = require("src/Essentials/Vector2")
local Vec2 = require("src.Essentials.Vector2")



Expand Down
2 changes: 1 addition & 1 deletion src/Essentials/Music.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local class = require "com/class"
local class = require "com.class"

---@class Music
---@overload fun(path):Music
Expand Down
4 changes: 2 additions & 2 deletions src/Essentials/Sound.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
local class = require "com/class"
local class = require "com.class"

---@class Sound
---@overload fun(path):Sound
local Sound = class:derive("Sound")

local SoundInstance = require("src/Essentials/SoundInstance")
local SoundInstance = require("src.Essentials.SoundInstance")



Expand Down
2 changes: 1 addition & 1 deletion src/Essentials/SoundEvent.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local class = require "com/class"
local class = require "com.class"

---@class SoundEvent
---@overload fun():SoundEvent
Expand Down
4 changes: 2 additions & 2 deletions src/Essentials/SoundInstance.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
local class = require "com/class"
local class = require "com.class"

---@class SoundInstance
---@overload fun(path, instance):SoundInstance
local SoundInstance = class:derive("SoundInstance")

local Vec2 = require("src/Essentials/Vector2")
local Vec2 = require("src.Essentials.Vector2")



Expand Down
8 changes: 4 additions & 4 deletions src/Essentials/Sprite.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
local class = require "com/class"
local class = require "com.class"

---@class Sprite
---@overload fun(path):Sprite
local Sprite = class:derive("Sprite")

local Vec2 = require("src/Essentials/Vector2")
local Color = require("src/Essentials/Color")
local Image = require("src/Essentials/Image")
local Vec2 = require("src.Essentials.Vector2")
local Color = require("src.Essentials.Color")
local Image = require("src.Essentials.Image")



Expand Down
2 changes: 1 addition & 1 deletion src/Essentials/Vector2.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local class = require "com/class"
local class = require "com.class"

---@class Vector2
---@operator add(Vector2|number):Vector2
Expand Down
2 changes: 1 addition & 1 deletion src/Expression.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@



local class = require "com/class"
local class = require "com.class"

---@class Expression
---@overload fun(str):Expression
Expand Down
Loading

0 comments on commit f5f66ea

Please sign in to comment.