diff --git a/.vscode/settings.json b/.vscode/settings.json index c8988a9..4568c68 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,7 +3,7 @@ "love", "loadstring", "unpack", - "birb", + "framework", "utils", "core", "scenes", diff --git a/CHANGELOG.md b/CHANGELOG.md index 093dc08..b56fc15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased -- Project renamed to Birb and rebased entirely on Sonic Radiance codebase +- Project renamed to Epervier Framework and rebased entirely on Sonic Radiance codebase - New loading system @@ -25,7 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **core/input:** extract virtualpads from the input controller -- **core:** The core is now separated from the rest of birb +- **core:** The core is now separated from the rest of the framework - **core+assets:** Music are now managed directly by the core diff --git a/README.md b/README.md index ffadc57..93e1439 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,40 @@ -# Birb Love2D Engine +# Épervier Framework -Birb aim to be an integrated, simple engine for love2D, in replacement of my old "gamecore" love2D engine. It aim to work as a set of managers to automatically handle inputs, screen, and several utilities to make game developpement easier and less repetitive. It's also specialized in game with RPG mechanics, with functions to serialize/deserialize easily datas. +The Épervier Framework is an RPG-oriented framework for Love2D. It aim to work as a set of managers to automatically handle inputs, screen, and several utilities to make game developpement easier and less repetitive. It's also specialized in game with RPG mechanics, with functions to serialize/deserialize easily datas. -Birb use [Classic](https://github.com/rxi/classic/) as its base Object. +Épervier use [Classic](https://github.com/rxi/classic/) as its base Object. -## How to load Birb +## Core features -The birb engine must be located in the `birb/` folder to work. After that, all you have to do is to load a gamecore based engine and then. +Épervier provide a lot of feature that can be usefull to create an RPG. This is a non-exhaustive list of what the framework can do : -Note : the `birb` and `utils` global namespace will be used by birb. +- Scene system to be able to change your gameplay easily, with transitions +- Easy data loading and parsing via the core.data module +- A save system using data serialization +- Tweening and time support via tween.lua +- A world system with support for camera, multiple hitbox per actor, and two type of physics (bump2D and bump3D) and tiled map loading (via sti.lua) +- A GUI system to make your game more easily have HUD and menus +- Several utilities functions -```` -require "birb" +## How to load Épervier -function love.load() - birb.startCore() +The framework must be located in the `framework/` folder to work. After that, all you have to do is to load a gamecore based engine and then. + +Note : the `framework`, `core`, `game` and `utils` global namespaces will be used by the framework. + +```lua +require "framework" + +function love.load(args) + framework.start("game", args) end -```` +``` + +### Launch in debug mode + +To launch in debug mode, the love2D game must be launched with a DEBUGLEVEL bigger than 1, for instance : + +```sh +love ./examples DEBUGLEVEL=4 +``` \ No newline at end of file diff --git a/birb/modules/transitions/init.lua b/birb/modules/transitions/init.lua deleted file mode 100644 index 0a28aef..0000000 --- a/birb/modules/transitions/init.lua +++ /dev/null @@ -1,4 +0,0 @@ -return { - default = require "birb.modules.transitions.default", - circle = require "birb.modules.transitions.circle" -} \ No newline at end of file diff --git a/examples/birb b/examples/birb deleted file mode 120000 index 0629dda..0000000 --- a/examples/birb +++ /dev/null @@ -1 +0,0 @@ -../birb/ \ No newline at end of file diff --git a/examples/framework b/examples/framework new file mode 120000 index 0000000..0906d5b --- /dev/null +++ b/examples/framework @@ -0,0 +1 @@ +../framework/ \ No newline at end of file diff --git a/examples/game/init.lua b/examples/game/init.lua index aba2b14..1866c70 100644 --- a/examples/game/init.lua +++ b/examples/game/init.lua @@ -1,4 +1,4 @@ -local GameSystem = require "birb.gamesystem" +local GameSystem = require "framework.gamesystem" local Game = GameSystem:extend() function Game:new() diff --git a/examples/main.lua b/examples/main.lua index 1efcb52..5c3f3ef 100644 --- a/examples/main.lua +++ b/examples/main.lua @@ -21,12 +21,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -require "birb" +require "framework" scenes = require "scenes" function love.load(args) print(utils.table.toString(args)) - birb.start("game", args) + framework.start("game", args) scenes.MainMenu() end diff --git a/examples/scenes/basic/test_menus/init.lua b/examples/scenes/basic/test_menus/init.lua index d317ef1..870f973 100644 --- a/examples/scenes/basic/test_menus/init.lua +++ b/examples/scenes/basic/test_menus/init.lua @@ -21,13 +21,13 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Scene = require "birb.modules.scenes" +local Scene = require "framework.scenes" local TestScene = Scene:extend() -local MenuType = require "birb.modules.gui.menus.listbox" -local MenuType2 = require "birb.modules.gui.menus.flowbox" -local MenuType3 = require "birb.modules.gui.menus.grid" -local Widget = require "birb.modules.gui.menus.widgets" +local MenuType = require "framework.scenes.gui.menus.listbox" +local MenuType2 = require "framework.scenes.gui.menus.flowbox" +local MenuType3 = require "framework.scenes.gui.menus.grid" +local Widget = require "framework.scenes.gui.menus.widgets" local MenuWidget = Widget.Text:extend() diff --git a/examples/scenes/basic/test_scene/init.lua b/examples/scenes/basic/test_scene/init.lua index af4a622..86bb229 100644 --- a/examples/scenes/basic/test_scene/init.lua +++ b/examples/scenes/basic/test_scene/init.lua @@ -21,7 +21,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Scene = require "birb.modules.scenes" +local Scene = require "framework.scenes" local TestScene = Scene:extend() function TestScene:new() diff --git a/examples/scenes/basic/test_scene2/actors/parent.lua b/examples/scenes/basic/test_scene2/actors/parent.lua index 60ba267..ac33a8c 100644 --- a/examples/scenes/basic/test_scene2/actors/parent.lua +++ b/examples/scenes/basic/test_scene2/actors/parent.lua @@ -1,4 +1,4 @@ -local Base = require "birb.modules.world.actors.actor2D" +local Base = require "framework.scenes.world.actors.actor2D" local Parent = Base:extend() function Parent:new(world, type, x, y, w, h) diff --git a/examples/scenes/basic/test_scene2/init.lua b/examples/scenes/basic/test_scene2/init.lua index edd02df..26deeeb 100644 --- a/examples/scenes/basic/test_scene2/init.lua +++ b/examples/scenes/basic/test_scene2/init.lua @@ -21,12 +21,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Scene = require "birb.modules.scenes" +local Scene = require "framework.scenes" local TestScene = Scene:extend() local folder = "scenes/basic/test_scene2/" -local World = require "birb.modules.world.baseworld" +local World = require "framework.scenes.world.baseworld" function TestScene:new() TestScene.super.new(self) diff --git a/examples/scenes/gameplay/action3D/actors/box.lua b/examples/scenes/gameplay/action3D/actors/box.lua index ed93259..4b7717d 100644 --- a/examples/scenes/gameplay/action3D/actors/box.lua +++ b/examples/scenes/gameplay/action3D/actors/box.lua @@ -1,4 +1,4 @@ -local Base = require "birb.modules.world.actors.actor3D" +local Base = require "framework.scenes.world.actors.actor3D" local Box = Base:extend() function Box:new(world, x, y, z) diff --git a/examples/scenes/gameplay/action3D/actors/coin.lua b/examples/scenes/gameplay/action3D/actors/coin.lua index cc324f1..75714b4 100644 --- a/examples/scenes/gameplay/action3D/actors/coin.lua +++ b/examples/scenes/gameplay/action3D/actors/coin.lua @@ -1,4 +1,4 @@ -local Base = require "birb.modules.world.actors.actor3D" +local Base = require "framework.scenes.world.actors.actor3D" local Coin = Base:extend() function Coin:new(world, x, y, z) diff --git a/examples/scenes/gameplay/action3D/actors/init.lua b/examples/scenes/gameplay/action3D/actors/init.lua index 69122db..7d17fe2 100644 --- a/examples/scenes/gameplay/action3D/actors/init.lua +++ b/examples/scenes/gameplay/action3D/actors/init.lua @@ -5,7 +5,7 @@ local cwd = (...):gsub('%.init$', '') .. "." Obj.Player = require(cwd .. "player") Obj.Box = require(cwd .. "box") Obj.Coin = require(cwd .. "coin") -Obj.GFX = require("birb.modules.world.actors.gfx3D") +Obj.GFX = require("framework.scenes.world.actors.gfx3D") Obj.index = {} Obj.index["player"] = Obj.Player diff --git a/examples/scenes/gameplay/action3D/actors/parent.lua b/examples/scenes/gameplay/action3D/actors/parent.lua index fd67fd8..aa39640 100644 --- a/examples/scenes/gameplay/action3D/actors/parent.lua +++ b/examples/scenes/gameplay/action3D/actors/parent.lua @@ -1,4 +1,4 @@ -local Base = require "birb.modules.world.actors.actor3D" +local Base = require "framework.scenes.world.actors.actor3D" local Parent = Base:extend() function Parent:new(world, type, x, y, z, w, h, d, isSolid) diff --git a/examples/scenes/gameplay/action3D/actors/wall.lua b/examples/scenes/gameplay/action3D/actors/wall.lua index 667bdda..9cf1d1e 100644 --- a/examples/scenes/gameplay/action3D/actors/wall.lua +++ b/examples/scenes/gameplay/action3D/actors/wall.lua @@ -1,4 +1,4 @@ -local Base = require "birb.modules.world.actors.actor3D" +local Base = require "framework.scenes.world.actors.actor3D" local Wall = Base:extend() function Wall:new(world, x, y, z, w, h, d) diff --git a/examples/scenes/gameplay/action3D/init.lua b/examples/scenes/gameplay/action3D/init.lua index 6e91136..63daf12 100644 --- a/examples/scenes/gameplay/action3D/init.lua +++ b/examples/scenes/gameplay/action3D/init.lua @@ -21,10 +21,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Scene = require "birb.modules.scenes" +local Scene = require "framework.scenes" local MovePlayer = Scene:extend() -local World = require "birb.modules.world.world3D" +local World = require "framework.scenes.world.world3D" function MovePlayer:new(playerNumber, cameraMode) local playerNumber = playerNumber or 1 diff --git a/examples/scenes/gameplay/moveplayer/actors/parent.lua b/examples/scenes/gameplay/moveplayer/actors/parent.lua index 39c049b..9de5ea3 100644 --- a/examples/scenes/gameplay/moveplayer/actors/parent.lua +++ b/examples/scenes/gameplay/moveplayer/actors/parent.lua @@ -1,4 +1,4 @@ -local Base = require "birb.modules.world.actors.actor2D" +local Base = require "framework.scenes.world.actors.actor2D" local Parent = Base:extend() function Parent:new(world, type, x, y, w, h, isSolid) diff --git a/examples/scenes/gameplay/moveplayer/actors/wall.lua b/examples/scenes/gameplay/moveplayer/actors/wall.lua index 40b737d..2fa73dc 100644 --- a/examples/scenes/gameplay/moveplayer/actors/wall.lua +++ b/examples/scenes/gameplay/moveplayer/actors/wall.lua @@ -1,4 +1,4 @@ -local Base = require "birb.modules.world.actors.actor2D" +local Base = require "framework.scenes.world.actors.actor2D" local Wall = Base:extend() function Wall:new(world, x, y, w, h) diff --git a/examples/scenes/gameplay/moveplayer/init.lua b/examples/scenes/gameplay/moveplayer/init.lua index 7d2fde5..9691a7f 100644 --- a/examples/scenes/gameplay/moveplayer/init.lua +++ b/examples/scenes/gameplay/moveplayer/init.lua @@ -21,10 +21,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Scene = require "birb.modules.scenes" +local Scene = require "framework.scenes" local MovePlayer = Scene:extend() -local World = require "birb.modules.world.world2D" +local World = require "framework.scenes.world.world2D" function MovePlayer:new(playerNumber, cameraMode) local playerNumber = playerNumber or 1 diff --git a/examples/scenes/gameplay/moveplayer3D/actors/parent.lua b/examples/scenes/gameplay/moveplayer3D/actors/parent.lua index f0cc900..456450d 100644 --- a/examples/scenes/gameplay/moveplayer3D/actors/parent.lua +++ b/examples/scenes/gameplay/moveplayer3D/actors/parent.lua @@ -1,4 +1,4 @@ -local Base = require "birb.modules.world.actors.actor3D" +local Base = require "framework.scenes.world.actors.actor3D" local Parent = Base:extend() function Parent:new(world, type, x, y, z, w, h, d, isSolid) diff --git a/examples/scenes/gameplay/moveplayer3D/actors/wall.lua b/examples/scenes/gameplay/moveplayer3D/actors/wall.lua index b303d62..137540a 100644 --- a/examples/scenes/gameplay/moveplayer3D/actors/wall.lua +++ b/examples/scenes/gameplay/moveplayer3D/actors/wall.lua @@ -1,4 +1,4 @@ -local Base = require "birb.modules.world.actors.actor3D" +local Base = require "framework.scenes.world.actors.actor3D" local Wall = Base:extend() function Wall:new(world, x, y, z, w, h, d) diff --git a/examples/scenes/gameplay/moveplayer3D/init.lua b/examples/scenes/gameplay/moveplayer3D/init.lua index 4f33cd4..23a5266 100644 --- a/examples/scenes/gameplay/moveplayer3D/init.lua +++ b/examples/scenes/gameplay/moveplayer3D/init.lua @@ -21,10 +21,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Scene = require "birb.modules.scenes" +local Scene = require "framework.scenes" local MovePlayer = Scene:extend() -local World = require "birb.modules.world.world3D" +local World = require "framework.scenes.world.world3D" function MovePlayer:new(playerNumber, cameraMode) local playerNumber = playerNumber or 1 diff --git a/examples/scenes/gameplay/plateform/actors/coin.lua b/examples/scenes/gameplay/plateform/actors/coin.lua index 17b6219..34e1003 100644 --- a/examples/scenes/gameplay/plateform/actors/coin.lua +++ b/examples/scenes/gameplay/plateform/actors/coin.lua @@ -1,4 +1,4 @@ -local Base = require "birb.modules.world.actors.actor2D" +local Base = require "framework.scenes.world.actors.actor2D" local Coin = Base:extend() function Coin:new(world, x, y) diff --git a/examples/scenes/gameplay/plateform/actors/init.lua b/examples/scenes/gameplay/plateform/actors/init.lua index 0fa7209..7a7ff0c 100644 --- a/examples/scenes/gameplay/plateform/actors/init.lua +++ b/examples/scenes/gameplay/plateform/actors/init.lua @@ -4,7 +4,7 @@ local Obj = {} local cwd = (...):gsub('%.init$', '') .. "." Obj.Player = require(cwd .. "player") -Obj.GFX = require("birb.modules.world.actors.gfx2D") +Obj.GFX = require("framework.scenes.world.actors.gfx2D") Obj.index = {} Obj.index["player"] = require(cwd .. "player") diff --git a/examples/scenes/gameplay/plateform/actors/player.lua b/examples/scenes/gameplay/plateform/actors/player.lua index 44a5422..43217a0 100644 --- a/examples/scenes/gameplay/plateform/actors/player.lua +++ b/examples/scenes/gameplay/plateform/actors/player.lua @@ -1,4 +1,4 @@ -local Base = require "birb.modules.world.actors.actor2D" +local Base = require "framework.scenes.world.actors.actor2D" local Player = Base:extend() function Player:new(world, x, y, id) diff --git a/examples/scenes/gameplay/plateform/actors/wall.lua b/examples/scenes/gameplay/plateform/actors/wall.lua index d5513e2..20893c2 100644 --- a/examples/scenes/gameplay/plateform/actors/wall.lua +++ b/examples/scenes/gameplay/plateform/actors/wall.lua @@ -1,4 +1,4 @@ -local Base = require "birb.modules.world.actors.actor2D" +local Base = require "framework.scenes.world.actors.actor2D" local Wall = Base:extend() function Wall:new(world, x, y, w, h) diff --git a/examples/scenes/gameplay/plateform/init.lua b/examples/scenes/gameplay/plateform/init.lua index e62d01a..1660bd3 100644 --- a/examples/scenes/gameplay/plateform/init.lua +++ b/examples/scenes/gameplay/plateform/init.lua @@ -21,10 +21,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Scene = require "birb.modules.scenes" +local Scene = require "framework.scenes" local Plateformer = Scene:extend() -local World = require "birb.modules.world.world2D" +local World = require "framework.scenes.world.world2D" local Pause = require "scenes.gameplay.plateform.pause" function Plateformer:new() diff --git a/examples/scenes/gameplay/plateform/pause.lua b/examples/scenes/gameplay/plateform/pause.lua index 4b93cbd..66e6035 100644 --- a/examples/scenes/gameplay/plateform/pause.lua +++ b/examples/scenes/gameplay/plateform/pause.lua @@ -1,5 +1,5 @@ -local ListMenu = require "birb.modules.gui.menus.listbox" -local Widget = require "birb.modules.gui.menus.widgets" +local ListMenu = require "framework.scenes.gui.menus.listbox" +local Widget = require "framework.scenes.gui.menus.widgets" local PauseMenu = ListMenu:extend() diff --git a/examples/scenes/mainmenu/init.lua b/examples/scenes/mainmenu/init.lua index 3930438..5621cfc 100644 --- a/examples/scenes/mainmenu/init.lua +++ b/examples/scenes/mainmenu/init.lua @@ -21,7 +21,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Scene = require "birb.modules.scenes" +local Scene = require "framework.scenes" local MainMenu = Scene:extend() local Menu = require "scenes.mainmenu.menu" diff --git a/examples/scenes/mainmenu/menu.lua b/examples/scenes/mainmenu/menu.lua index 5ecd2ba..9101269 100644 --- a/examples/scenes/mainmenu/menu.lua +++ b/examples/scenes/mainmenu/menu.lua @@ -1,7 +1,7 @@ -local Parent = require "birb.modules.gui.textmenu" +local Parent = require "framework.scenes.gui.textmenu" local MainMenu = Parent:extend() -local defTransitions = require "birb.modules.transitions" +local defTransitions = require "framework.scenes.transitions" local MENU_X, MENU_Y = 24, 48 local MENU_W = 424/3 diff --git a/examples/scenes/menus/inventory/init.lua b/examples/scenes/menus/inventory/init.lua index 6bdf0b6..22dfaf2 100644 --- a/examples/scenes/menus/inventory/init.lua +++ b/examples/scenes/menus/inventory/init.lua @@ -21,12 +21,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Scene = require "birb.modules.scenes" +local Scene = require "framework.scenes" local Inventory = Scene:extend() -local HListBox = require "birb.modules.gui.menus.hlistbox" -local FloxBox = require "birb.modules.gui.menus.flowbox" -local Widget = require "birb.modules.gui.menus.widgets" +local HListBox = require "framework.scenes.gui.menus.hlistbox" +local FloxBox = require "framework.scenes.gui.menus.flowbox" +local Widget = require "framework.scenes.gui.menus.widgets" local InventoryWidget = Widget.Text:extend() local ItemWidget = Widget.Text:extend() diff --git a/examples/scenes/menus/options/init.lua b/examples/scenes/menus/options/init.lua index a1cef42..8be6ece 100644 --- a/examples/scenes/menus/options/init.lua +++ b/examples/scenes/menus/options/init.lua @@ -21,7 +21,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Scene = require "birb.modules.scenes" +local Scene = require "framework.scenes" local OptionsMenu = Scene:extend() local Widgets = require "scenes.menus.options.widgets" diff --git a/examples/scenes/menus/options/menu.lua b/examples/scenes/menus/options/menu.lua index 0a56960..5f1ff28 100644 --- a/examples/scenes/menus/options/menu.lua +++ b/examples/scenes/menus/options/menu.lua @@ -1,4 +1,4 @@ -local TextMenu = require "birb.modules.gui.textmenu" +local TextMenu = require "framework.scenes.gui.textmenu" local OptionMenu = TextMenu:extend() local consts = require "scenes.menus.options.consts" diff --git a/examples/scenes/menus/options/widgets.lua b/examples/scenes/menus/options/widgets.lua index 1711237..65df85e 100644 --- a/examples/scenes/menus/options/widgets.lua +++ b/examples/scenes/menus/options/widgets.lua @@ -23,7 +23,7 @@ local widgets = {} -local Widget = require "birb.modules.gui.textmenu.widgets.basic" +local Widget = require "framework.scenes.gui.textmenu.widgets.basic" local DoubleTextWidget = Widget:extend() widgets.SubMenu = DoubleTextWidget:extend() diff --git a/birb/callbacks.lua b/framework/callbacks.lua similarity index 100% rename from birb/callbacks.lua rename to framework/callbacks.lua diff --git a/birb/classes/2D/indexedrect.lua b/framework/classes/2D/indexedrect.lua similarity index 96% rename from birb/classes/2D/indexedrect.lua rename to framework/classes/2D/indexedrect.lua index 7511046..5d51935 100644 --- a/birb/classes/2D/indexedrect.lua +++ b/framework/classes/2D/indexedrect.lua @@ -23,7 +23,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Rect = require "birb.classes.2D.rect" +local Rect = require "framework.classes.2D.rect" local IndexedRect = Rect:extend() function IndexedRect:new(origin, ox, oy, w, h) diff --git a/birb/classes/2D/point.lua b/framework/classes/2D/point.lua similarity index 100% rename from birb/classes/2D/point.lua rename to framework/classes/2D/point.lua diff --git a/birb/classes/2D/rect.lua b/framework/classes/2D/rect.lua similarity index 97% rename from birb/classes/2D/rect.lua rename to framework/classes/2D/rect.lua index 75e46f0..5871261 100644 --- a/birb/classes/2D/rect.lua +++ b/framework/classes/2D/rect.lua @@ -21,7 +21,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Point = require "birb.classes.2D.point" +local Point = require "framework.classes.2D.point" local Rect = Point:extend() function Rect:new(x, y, w, h) diff --git a/birb/classes/3D/box.lua b/framework/classes/3D/box.lua similarity index 97% rename from birb/classes/3D/box.lua rename to framework/classes/3D/box.lua index 904a1fe..c9a4528 100644 --- a/birb/classes/3D/box.lua +++ b/framework/classes/3D/box.lua @@ -21,7 +21,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Point = require "birb.classes.3D.point3D" +local Point = require "framework.classes.3D.point3D" local Box = Point:extend() function Box:new(x, y, z, w, h, d) diff --git a/birb/classes/3D/indexedbox.lua b/framework/classes/3D/indexedbox.lua similarity index 97% rename from birb/classes/3D/indexedbox.lua rename to framework/classes/3D/indexedbox.lua index e8b2857..74359dd 100644 --- a/birb/classes/3D/indexedbox.lua +++ b/framework/classes/3D/indexedbox.lua @@ -23,7 +23,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Rect = require "birb.classes.2D.rect" +local Rect = require "framework.classes.2D.rect" local IndexedRect = Rect:extend() function IndexedRect:new(origin, ox, oy, oz, w, h, d) diff --git a/birb/classes/3D/point3D.lua b/framework/classes/3D/point3D.lua similarity index 100% rename from birb/classes/3D/point3D.lua rename to framework/classes/3D/point3D.lua diff --git a/birb/classes/datapack.lua b/framework/classes/datapack.lua similarity index 100% rename from birb/classes/datapack.lua rename to framework/classes/datapack.lua diff --git a/birb/classes/parser.lua b/framework/classes/parser.lua similarity index 100% rename from birb/classes/parser.lua rename to framework/classes/parser.lua diff --git a/birb/classes/predicate/init.lua b/framework/classes/predicate/init.lua similarity index 97% rename from birb/classes/predicate/init.lua rename to framework/classes/predicate/init.lua index 26abbbb..2675ad8 100644 --- a/birb/classes/predicate/init.lua +++ b/framework/classes/predicate/init.lua @@ -28,7 +28,7 @@ ]] local Predicate = Object:extend() -local SimplePredicate = require "birb.classes.predicate.simple" +local SimplePredicate = require "framework.classes.predicate.simple" function Predicate.createPredicate(data, solver, asker) local predicate = nil diff --git a/birb/classes/predicate/simple.lua b/framework/classes/predicate/simple.lua similarity index 96% rename from birb/classes/predicate/simple.lua rename to framework/classes/predicate/simple.lua index f342721..c23648c 100644 --- a/birb/classes/predicate/simple.lua +++ b/framework/classes/predicate/simple.lua @@ -34,7 +34,7 @@ local SEPARATOR = ":" local NOT = "not" local DEFAULT = "default" -SimplePredicate.utils = require "birb.classes.predicate.utils" +SimplePredicate.utils = require "framework.classes.predicate.utils" function SimplePredicate:new(data, solver, asker) self.solver = solver diff --git a/birb/classes/predicate/utils.lua b/framework/classes/predicate/utils.lua similarity index 100% rename from birb/classes/predicate/utils.lua rename to framework/classes/predicate/utils.lua diff --git a/birb/classes/serializable/init.lua b/framework/classes/serializable/init.lua similarity index 100% rename from birb/classes/serializable/init.lua rename to framework/classes/serializable/init.lua diff --git a/birb/classes/serializable/serializer.lua b/framework/classes/serializable/serializer.lua similarity index 95% rename from birb/classes/serializable/serializer.lua rename to framework/classes/serializable/serializer.lua index 24636b3..fc09bfa 100644 --- a/birb/classes/serializable/serializer.lua +++ b/framework/classes/serializable/serializer.lua @@ -20,9 +20,9 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Serializable = require "birb.classes.serializable" +local Serializable = require "framework.classes.serializable" local Serializer = Serializable:extend() -local binser = require("birb.libs.binser") +local binser = require("framework.libs.binser") function Serializer:new(serializeFields, listSerializable) Serializer.super.new(self, serializeFields, listSerializable) diff --git a/birb/classes/time/func.lua b/framework/classes/time/func.lua similarity index 77% rename from birb/classes/time/func.lua rename to framework/classes/time/func.lua index 3684bf4..7c50e98 100644 --- a/birb/classes/time/func.lua +++ b/framework/classes/time/func.lua @@ -1,4 +1,4 @@ -local Timer = require "birb.classes.time.timer" +local Timer = require "framework.classes.time.timer" local TimedFunction = Timer:extend() function TimedFunction:new(actor, name, func, t) diff --git a/birb/classes/time/init.lua b/framework/classes/time/init.lua similarity index 95% rename from birb/classes/time/init.lua rename to framework/classes/time/init.lua index c980378..460cdae 100644 --- a/birb/classes/time/init.lua +++ b/framework/classes/time/init.lua @@ -1,6 +1,6 @@ -- time.lua :: a timer, tweener and timed switch handler. --- This class need birb.libs.tween to work +-- This class need framework.libs.tween to work --[[ Copyright © 2019 Kazhnuz @@ -25,9 +25,9 @@ local TweenManager = Object:extend() -local tween = require "birb.libs.tween" -local Timer = require "birb.classes.time.timer" -local TimedFunction = require "birb.classes.time.func" +local tween = require "framework.libs.tween" +local Timer = require "framework.classes.time.timer" +local TimedFunction = require "framework.classes.time.func" function TweenManager:new(subject) self.subject = subject diff --git a/birb/classes/time/timer.lua b/framework/classes/time/timer.lua similarity index 100% rename from birb/classes/time/timer.lua rename to framework/classes/time/timer.lua diff --git a/birb/core/datas.lua b/framework/core/datas.lua similarity index 95% rename from birb/core/datas.lua rename to framework/core/datas.lua index 324e748..44f1d4a 100644 --- a/birb/core/datas.lua +++ b/framework/core/datas.lua @@ -24,8 +24,8 @@ ]] local DataManager = Object:extend() -local DataPack = require "birb.classes.datapack" -local Parser = require "birb.classes.parser" +local DataPack = require "framework.classes.datapack" +local Parser = require "framework.classes.parser" local index = require "datas.gamedata.index" function DataManager:new(core) diff --git a/birb/core/debug.lua b/framework/core/debug.lua similarity index 98% rename from birb/core/debug.lua rename to framework/core/debug.lua index 6e2531f..1f4d260 100644 --- a/birb/core/debug.lua +++ b/framework/core/debug.lua @@ -38,7 +38,7 @@ function DebugSystem:new(controller, debugLevel) self.debugLevel = debugLevel or Levels.WARNING self.active = (self.debugLevel == Levels.DEBUG) if (self.active) then - lovebird = require "birb.libs.lovebird" + lovebird = require "framework.libs.lovebird" lovebird.update() end end diff --git a/birb/core/init.lua b/framework/core/init.lua similarity index 100% rename from birb/core/init.lua rename to framework/core/init.lua diff --git a/birb/core/input.lua b/framework/core/input.lua similarity index 100% rename from birb/core/input.lua rename to framework/core/input.lua diff --git a/birb/core/lang.lua b/framework/core/lang.lua similarity index 100% rename from birb/core/lang.lua rename to framework/core/lang.lua diff --git a/birb/core/music.lua b/framework/core/music.lua similarity index 100% rename from birb/core/music.lua rename to framework/core/music.lua diff --git a/birb/core/options.lua b/framework/core/options.lua similarity index 98% rename from birb/core/options.lua rename to framework/core/options.lua index 5f6baf2..f5c48a0 100644 --- a/birb/core/options.lua +++ b/framework/core/options.lua @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Serializer = require "birb.classes.serializable.serializer" +local Serializer = require "framework.classes.serializable.serializer" local OptionsManager = Serializer:extend() local TRANSLATION_PATH = "datas/languages/" diff --git a/birb/core/scenemanager.lua b/framework/core/scenemanager.lua similarity index 100% rename from birb/core/scenemanager.lua rename to framework/core/scenemanager.lua diff --git a/birb/core/screen.lua b/framework/core/screen.lua similarity index 98% rename from birb/core/screen.lua rename to framework/core/screen.lua index 16651b9..76fca71 100644 --- a/birb/core/screen.lua +++ b/framework/core/screen.lua @@ -24,7 +24,7 @@ local ScreenManager = Object:extend() -local CScreen = require("birb.libs.cscreen") +local CScreen = require("framework.libs.cscreen") -- INIT FUNCTIONS -- Initialize and configure the screen manager diff --git a/birb/gamesystem/init.lua b/framework/gamesystem/init.lua similarity index 96% rename from birb/gamesystem/init.lua rename to framework/gamesystem/init.lua index aebf3dc..dfae995 100644 --- a/birb/gamesystem/init.lua +++ b/framework/gamesystem/init.lua @@ -21,7 +21,7 @@ ]] -local Serializer = require "birb.classes.serializable.serializer" +local Serializer = require "framework.classes.serializable.serializer" local GameSystem = Serializer:extend() local VAR_TO_SERIALIZE = { diff --git a/birb/init.lua b/framework/init.lua similarity index 72% rename from birb/init.lua rename to framework/init.lua index b6827c4..d92ed23 100644 --- a/birb/init.lua +++ b/framework/init.lua @@ -1,4 +1,5 @@ --- birb :: The main birb script, loading the core and main utilities +-- framework :: The main Épervier Framework script, loading the core and main +-- utilities --[[ Copyright © 2021 Kazhnuz @@ -21,32 +22,32 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -birb = {} +framework = {} -- GLOBAL UTILS/FUNCTION LOADING -- Load in the global namespace utilities that'll need to be reusable everywhere -- in the game -Object = require("birb.libs.classic") -utils = require("birb.utils") -enum = require("birb.utils.enum") +Object = require("framework.libs.classic") +utils = require("framework.utils") +enum = require("framework.utils.enum") -birb.Core = require("birb.core") +framework.Core = require("framework.core") -function birb.start(gamemodule, args) - birb.startCore(args) +function framework.start(gamemodule, args) + framework.startCore(args) if (gamemodule ~= nil) then - birb.startGame(gamemodule) + framework.startGame(gamemodule) end end -function birb.startCore(args) - core = birb.Core(args) +function framework.startCore(args) + core = framework.Core(args) end -function birb.startGame(gamemodule) +function framework.startGame(gamemodule) local GameObject = require(gamemodule) game = GameObject() end -require("birb.callbacks") \ No newline at end of file +require("framework.callbacks") \ No newline at end of file diff --git a/birb/libs/binser.lua b/framework/libs/binser.lua similarity index 100% rename from birb/libs/binser.lua rename to framework/libs/binser.lua diff --git a/birb/libs/classic.lua b/framework/libs/classic.lua similarity index 100% rename from birb/libs/classic.lua rename to framework/libs/classic.lua diff --git a/birb/libs/cscreen.lua b/framework/libs/cscreen.lua similarity index 100% rename from birb/libs/cscreen.lua rename to framework/libs/cscreen.lua diff --git a/birb/libs/lovebird.lua b/framework/libs/lovebird.lua similarity index 100% rename from birb/libs/lovebird.lua rename to framework/libs/lovebird.lua diff --git a/birb/libs/talkies.lua b/framework/libs/talkies.lua similarity index 100% rename from birb/libs/talkies.lua rename to framework/libs/talkies.lua diff --git a/birb/libs/tween.lua b/framework/libs/tween.lua similarity index 100% rename from birb/libs/tween.lua rename to framework/libs/tween.lua diff --git a/birb/modules/assets/init.lua b/framework/scenes/assets/init.lua similarity index 100% rename from birb/modules/assets/init.lua rename to framework/scenes/assets/init.lua diff --git a/birb/modules/assets/types/animator.lua b/framework/scenes/assets/types/animator.lua similarity index 100% rename from birb/modules/assets/types/animator.lua rename to framework/scenes/assets/types/animator.lua diff --git a/birb/modules/assets/types/autotile.lua b/framework/scenes/assets/types/autotile.lua similarity index 100% rename from birb/modules/assets/types/autotile.lua rename to framework/scenes/assets/types/autotile.lua diff --git a/birb/modules/assets/types/background.lua b/framework/scenes/assets/types/background.lua similarity index 100% rename from birb/modules/assets/types/background.lua rename to framework/scenes/assets/types/background.lua diff --git a/birb/modules/assets/types/fonts.lua b/framework/scenes/assets/types/fonts.lua similarity index 100% rename from birb/modules/assets/types/fonts.lua rename to framework/scenes/assets/types/fonts.lua diff --git a/birb/modules/assets/types/imagefonts.lua b/framework/scenes/assets/types/imagefonts.lua similarity index 100% rename from birb/modules/assets/types/imagefonts.lua rename to framework/scenes/assets/types/imagefonts.lua diff --git a/birb/modules/assets/types/sfx.lua b/framework/scenes/assets/types/sfx.lua similarity index 100% rename from birb/modules/assets/types/sfx.lua rename to framework/scenes/assets/types/sfx.lua diff --git a/birb/modules/assets/types/sprites.lua b/framework/scenes/assets/types/sprites.lua similarity index 100% rename from birb/modules/assets/types/sprites.lua rename to framework/scenes/assets/types/sprites.lua diff --git a/birb/modules/assets/types/texture.lua b/framework/scenes/assets/types/texture.lua similarity index 100% rename from birb/modules/assets/types/texture.lua rename to framework/scenes/assets/types/texture.lua diff --git a/birb/modules/assets/types/tileset.lua b/framework/scenes/assets/types/tileset.lua similarity index 100% rename from birb/modules/assets/types/tileset.lua rename to framework/scenes/assets/types/tileset.lua diff --git a/birb/modules/gui/elements/assets.lua b/framework/scenes/gui/elements/assets.lua similarity index 84% rename from birb/modules/gui/elements/assets.lua rename to framework/scenes/gui/elements/assets.lua index b12ca50..daa2ccf 100644 --- a/birb/modules/gui/elements/assets.lua +++ b/framework/scenes/gui/elements/assets.lua @@ -1,4 +1,4 @@ -local Parent = require "birb.modules.gui.elements.drawable" +local Parent = require "framework.scenes.gui.elements.drawable" local AssetElement = Parent:extend() function AssetElement:new(name, assetType, assetName, x, y,r,sx,sy,ox,oy, opacity) diff --git a/birb/modules/gui/elements/canvas.lua b/framework/scenes/gui/elements/canvas.lua similarity index 96% rename from birb/modules/gui/elements/canvas.lua rename to framework/scenes/gui/elements/canvas.lua index 7fb1e23..07d3565 100644 --- a/birb/modules/gui/elements/canvas.lua +++ b/framework/scenes/gui/elements/canvas.lua @@ -1,4 +1,4 @@ -local Parent = require "birb.modules.gui.elements.parent" +local Parent = require "framework.scenes.gui.elements.parent" local CanvasElement = Parent:extend() function CanvasElement:new(name, x, y, w, h, r,sx,sy,ox,oy, opacity) diff --git a/birb/modules/gui/elements/color.lua b/framework/scenes/gui/elements/color.lua similarity index 85% rename from birb/modules/gui/elements/color.lua rename to framework/scenes/gui/elements/color.lua index f1aa94f..07d4849 100644 --- a/birb/modules/gui/elements/color.lua +++ b/framework/scenes/gui/elements/color.lua @@ -1,4 +1,4 @@ -local Parent = require "birb.modules.gui.elements.parent" +local Parent = require "framework.scenes.gui.elements.parent" local ColorElement = Parent:extend() function ColorElement:new(name, r, g, b, opacity) diff --git a/birb/modules/gui/elements/composite.lua b/framework/scenes/gui/elements/composite.lua similarity index 91% rename from birb/modules/gui/elements/composite.lua rename to framework/scenes/gui/elements/composite.lua index d4d9aff..47fb58f 100644 --- a/birb/modules/gui/elements/composite.lua +++ b/framework/scenes/gui/elements/composite.lua @@ -1,4 +1,4 @@ -local Parent = require "birb.modules.gui.elements.parent" +local Parent = require "framework.scenes.gui.elements.parent" local CompositeElement = Parent:extend() function CompositeElement:new(name, x, y, childrenList) diff --git a/birb/modules/gui/elements/counter.lua b/framework/scenes/gui/elements/counter.lua similarity index 80% rename from birb/modules/gui/elements/counter.lua rename to framework/scenes/gui/elements/counter.lua index 2730996..47f95bb 100644 --- a/birb/modules/gui/elements/counter.lua +++ b/framework/scenes/gui/elements/counter.lua @@ -1,4 +1,4 @@ -local Parent = require "birb.modules.gui.elements.variable" +local Parent = require "framework.scenes.gui.elements.variable" local CounterElement = Parent:extend() function CounterElement:new(name, fontName, object, varName, nbrs, x, y, align) diff --git a/birb/modules/gui/elements/drawable.lua b/framework/scenes/gui/elements/drawable.lua similarity index 90% rename from birb/modules/gui/elements/drawable.lua rename to framework/scenes/gui/elements/drawable.lua index e2ac258..966eaeb 100644 --- a/birb/modules/gui/elements/drawable.lua +++ b/framework/scenes/gui/elements/drawable.lua @@ -1,4 +1,4 @@ -local Parent = require "birb.modules.gui.elements.parent" +local Parent = require "framework.scenes.gui.elements.parent" local DrawableElement = Parent:extend() function DrawableElement:new(name, drawable, x, y,r,sx,sy,ox,oy, opacity) diff --git a/birb/modules/gui/elements/parent.lua b/framework/scenes/gui/elements/parent.lua similarity index 96% rename from birb/modules/gui/elements/parent.lua rename to framework/scenes/gui/elements/parent.lua index aa73138..6e508db 100644 --- a/birb/modules/gui/elements/parent.lua +++ b/framework/scenes/gui/elements/parent.lua @@ -1,7 +1,7 @@ -local Rect = require "birb.classes.2D.rect" +local Rect = require "framework.classes.2D.rect" local GuiElement = Rect:extend() -local TweenManager = require "birb.classes.time" +local TweenManager = require "framework.classes.time" function GuiElement:new(name, x, y, w, h) GuiElement.super.new(self, x, y, w, h) diff --git a/birb/modules/gui/elements/text.lua b/framework/scenes/gui/elements/text.lua similarity index 86% rename from birb/modules/gui/elements/text.lua rename to framework/scenes/gui/elements/text.lua index 0db3ec0..0529fe6 100644 --- a/birb/modules/gui/elements/text.lua +++ b/framework/scenes/gui/elements/text.lua @@ -1,4 +1,4 @@ -local Parent = require "birb.modules.gui.elements.parent" +local Parent = require "framework.scenes.gui.elements.parent" local TextElement = Parent:extend() function TextElement:new(name, fontName, text, x, y, align) diff --git a/birb/modules/gui/elements/tile.lua b/framework/scenes/gui/elements/tile.lua similarity index 87% rename from birb/modules/gui/elements/tile.lua rename to framework/scenes/gui/elements/tile.lua index 8ae9f46..a589f96 100644 --- a/birb/modules/gui/elements/tile.lua +++ b/framework/scenes/gui/elements/tile.lua @@ -1,4 +1,4 @@ -local Parent = require "birb.modules.gui.elements.drawable" +local Parent = require "framework.scenes.gui.elements.drawable" local TileElement = Parent:extend() function TileElement:new(name, assetName, id, x, y,r,sx,sy,ox,oy, opacity) diff --git a/birb/modules/gui/elements/variable.lua b/framework/scenes/gui/elements/variable.lua similarity index 79% rename from birb/modules/gui/elements/variable.lua rename to framework/scenes/gui/elements/variable.lua index 32a95b4..b56083e 100644 --- a/birb/modules/gui/elements/variable.lua +++ b/framework/scenes/gui/elements/variable.lua @@ -1,4 +1,4 @@ -local Parent = require "birb.modules.gui.elements.text" +local Parent = require "framework.scenes.gui.elements.text" local VariableElement = Parent:extend() function VariableElement:new(name, fontName, object, varName, x, y, align) diff --git a/birb/modules/gui/init.lua b/framework/scenes/gui/init.lua similarity index 96% rename from birb/modules/gui/init.lua rename to framework/scenes/gui/init.lua index 2f2d7ce..80c22d0 100644 --- a/birb/modules/gui/init.lua +++ b/framework/scenes/gui/init.lua @@ -23,12 +23,12 @@ local Gui = Object:extend() -local ElementList = require "birb.modules.gui.mixins.elements" -local ScreenList = require "birb.modules.gui.mixins.screens" +local ElementList = require "framework.scenes.gui.mixins.elements" +local ScreenList = require "framework.scenes.gui.mixins.screens" Gui:implement(ScreenList) Gui:implement(ElementList) -local TransformDataStruct = require "birb.structures.tween" +local TransformDataStruct = require "framework.structures.tween" function Gui:new(scene) self.scene = scene diff --git a/birb/modules/gui/menus/flowbox.lua b/framework/scenes/gui/menus/flowbox.lua similarity index 100% rename from birb/modules/gui/menus/flowbox.lua rename to framework/scenes/gui/menus/flowbox.lua diff --git a/birb/modules/gui/menus/grid.lua b/framework/scenes/gui/menus/grid.lua similarity index 99% rename from birb/modules/gui/menus/grid.lua rename to framework/scenes/gui/menus/grid.lua index afbd4c2..b30b213 100644 --- a/birb/modules/gui/menus/grid.lua +++ b/framework/scenes/gui/menus/grid.lua @@ -26,7 +26,7 @@ local cwd = (...):gsub('%.grid$', '') .. "." local Menu = require(cwd .. "parent") local GridBox = Menu:extend() -local View2D = require "birb.modules.gui.menus.views.view2D" +local View2D = require "framework.scenes.gui.menus.views.view2D" -- INIT FUNCTIONS -- Initialize and configure the menu diff --git a/birb/modules/gui/menus/hlistbox.lua b/framework/scenes/gui/menus/hlistbox.lua similarity index 100% rename from birb/modules/gui/menus/hlistbox.lua rename to framework/scenes/gui/menus/hlistbox.lua diff --git a/birb/modules/gui/menus/listbox.lua b/framework/scenes/gui/menus/listbox.lua similarity index 100% rename from birb/modules/gui/menus/listbox.lua rename to framework/scenes/gui/menus/listbox.lua diff --git a/birb/modules/gui/menus/model/init.lua b/framework/scenes/gui/menus/model/init.lua similarity index 98% rename from birb/modules/gui/menus/model/init.lua rename to framework/scenes/gui/menus/model/init.lua index 95ebeb1..601a003 100644 --- a/birb/modules/gui/menus/model/init.lua +++ b/framework/scenes/gui/menus/model/init.lua @@ -1,5 +1,5 @@ local MenuModel = Object:extend() -local Page = require "birb.modules.gui.menus.model.page" +local Page = require "framework.scenes.gui.menus.model.page" local function updateWidgetByOrder(a, b) if a.order ~= b.order then diff --git a/birb/modules/gui/menus/model/page.lua b/framework/scenes/gui/menus/model/page.lua similarity index 100% rename from birb/modules/gui/menus/model/page.lua rename to framework/scenes/gui/menus/model/page.lua diff --git a/birb/modules/gui/menus/parent.lua b/framework/scenes/gui/menus/parent.lua similarity index 96% rename from birb/modules/gui/menus/parent.lua rename to framework/scenes/gui/menus/parent.lua index 65ca974..34b06a3 100644 --- a/birb/modules/gui/menus/parent.lua +++ b/framework/scenes/gui/menus/parent.lua @@ -21,12 +21,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local GuiElement = require "birb.modules.gui.elements.canvas" +local GuiElement = require "framework.scenes.gui.elements.canvas" local Menu = GuiElement:extend() -local MenuModel = require "birb.modules.gui.menus.model" +local MenuModel = require "framework.scenes.gui.menus.model" -local menuUtils = require "birb.modules.gui.utils" +local menuUtils = require "framework.scenes.gui.utils" -- INIT FUNCTIONS -- Initialize and configure functions. diff --git a/birb/modules/gui/menus/views/view1D.lua b/framework/scenes/gui/menus/views/view1D.lua similarity index 100% rename from birb/modules/gui/menus/views/view1D.lua rename to framework/scenes/gui/menus/views/view1D.lua diff --git a/birb/modules/gui/menus/views/view2D.lua b/framework/scenes/gui/menus/views/view2D.lua similarity index 97% rename from birb/modules/gui/menus/views/view2D.lua rename to framework/scenes/gui/menus/views/view2D.lua index feecf25..1e3047e 100644 --- a/birb/modules/gui/menus/views/view2D.lua +++ b/framework/scenes/gui/menus/views/view2D.lua @@ -21,7 +21,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local View1D = require "birb.modules.gui.menus.views.view1D" +local View1D = require "framework.scenes.gui.menus.views.view1D" local View2D = View1D:extend() function View2D:new(colNumber, lineNumber) diff --git a/birb/modules/gui/menus/widgets/base.lua b/framework/scenes/gui/menus/widgets/base.lua similarity index 100% rename from birb/modules/gui/menus/widgets/base.lua rename to framework/scenes/gui/menus/widgets/base.lua diff --git a/birb/modules/gui/menus/widgets/init.lua b/framework/scenes/gui/menus/widgets/init.lua similarity index 90% rename from birb/modules/gui/menus/widgets/init.lua rename to framework/scenes/gui/menus/widgets/init.lua index 0c8c4e8..b37e0a3 100644 --- a/birb/modules/gui/menus/widgets/init.lua +++ b/framework/scenes/gui/menus/widgets/init.lua @@ -24,7 +24,7 @@ local Widget = {} -- Add the widget as subvariable to the returned table -Widget.Base = require "birb.modules.gui.menus.widgets.base" -Widget.Text = require "birb.modules.gui.menus.widgets.text" +Widget.Base = require "framework.scenes.gui.menus.widgets.base" +Widget.Text = require "framework.scenes.gui.menus.widgets.text" return Widget diff --git a/birb/modules/gui/menus/widgets/text.lua b/framework/scenes/gui/menus/widgets/text.lua similarity index 98% rename from birb/modules/gui/menus/widgets/text.lua rename to framework/scenes/gui/menus/widgets/text.lua index 7809d04..56f72e5 100644 --- a/birb/modules/gui/menus/widgets/text.lua +++ b/framework/scenes/gui/menus/widgets/text.lua @@ -20,7 +20,7 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local BaseWidget = require "birb.modules.gui.menus.widgets.base" +local BaseWidget = require "framework.scenes.gui.menus.widgets.base" local TextWidget = BaseWidget:extend() -- TEXT WIDGET diff --git a/birb/modules/gui/mixins/elements.lua b/framework/scenes/gui/mixins/elements.lua similarity index 100% rename from birb/modules/gui/mixins/elements.lua rename to framework/scenes/gui/mixins/elements.lua diff --git a/birb/modules/gui/mixins/screens.lua b/framework/scenes/gui/mixins/screens.lua similarity index 100% rename from birb/modules/gui/mixins/screens.lua rename to framework/scenes/gui/mixins/screens.lua diff --git a/birb/modules/gui/screen/init.lua b/framework/scenes/gui/screen/init.lua similarity index 93% rename from birb/modules/gui/screen/init.lua rename to framework/scenes/gui/screen/init.lua index e95bd14..cd91bdb 100644 --- a/birb/modules/gui/screen/init.lua +++ b/framework/scenes/gui/screen/init.lua @@ -1,11 +1,11 @@ local GuiScreen = Object:extend() -local ElementList = require "birb.modules.gui.mixins.elements" +local ElementList = require "framework.scenes.gui.mixins.elements" GuiScreen:implement(ElementList) -local TweenManager = require "birb.classes.time" -local ScreenSet = require "birb.modules.gui.screen.screenset" +local TweenManager = require "framework.classes.time" +local ScreenSet = require "framework.scenes.gui.screen.screenset" -local elementDataStruct = require "birb.structures.elementData" +local elementDataStruct = require "framework.structures.elementData" function GuiScreen:new(name) self:initWrapper() diff --git a/birb/modules/gui/screen/screenset.lua b/framework/scenes/gui/screen/screenset.lua similarity index 100% rename from birb/modules/gui/screen/screenset.lua rename to framework/scenes/gui/screen/screenset.lua diff --git a/birb/modules/gui/textmenu/init.lua b/framework/scenes/gui/textmenu/init.lua similarity index 95% rename from birb/modules/gui/textmenu/init.lua rename to framework/scenes/gui/textmenu/init.lua index b80898f..6806ffe 100644 --- a/birb/modules/gui/textmenu/init.lua +++ b/framework/scenes/gui/textmenu/init.lua @@ -24,10 +24,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local ListBox = require "birb.modules.gui.menus.listbox" +local ListBox = require "framework.scenes.gui.menus.listbox" local TextMenu = ListBox:extend() -TextMenu.baseWidgets = require "birb.modules.gui.textmenu.widgets" +TextMenu.baseWidgets = require "framework.scenes.gui.textmenu.widgets" local BASE_PADDING = 8 diff --git a/birb/modules/gui/textmenu/widgets/back.lua b/framework/scenes/gui/textmenu/widgets/back.lua similarity index 93% rename from birb/modules/gui/textmenu/widgets/back.lua rename to framework/scenes/gui/textmenu/widgets/back.lua index ad053dd..80f2326 100644 --- a/birb/modules/gui/textmenu/widgets/back.lua +++ b/framework/scenes/gui/textmenu/widgets/back.lua @@ -21,7 +21,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local TextMenuWidget = require "birb.modules.gui.textmenu.widgets.basic" +local TextMenuWidget = require "framework.scenes.gui.textmenu.widgets.basic" local BackWidget = TextMenuWidget:extend() diff --git a/birb/modules/gui/textmenu/widgets/basic.lua b/framework/scenes/gui/textmenu/widgets/basic.lua similarity index 95% rename from birb/modules/gui/textmenu/widgets/basic.lua rename to framework/scenes/gui/textmenu/widgets/basic.lua index a69470e..07a37d9 100644 --- a/birb/modules/gui/textmenu/widgets/basic.lua +++ b/framework/scenes/gui/textmenu/widgets/basic.lua @@ -23,7 +23,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local TextWidget = require "birb.modules.gui.menus.widgets.text" +local TextWidget = require "framework.scenes.gui.menus.widgets.text" local TextMenuWidget = TextWidget:extend() diff --git a/birb/modules/gui/textmenu/widgets/init.lua b/framework/scenes/gui/textmenu/widgets/init.lua similarity index 85% rename from birb/modules/gui/textmenu/widgets/init.lua rename to framework/scenes/gui/textmenu/widgets/init.lua index 5c5e761..89c967c 100644 --- a/birb/modules/gui/textmenu/widgets/init.lua +++ b/framework/scenes/gui/textmenu/widgets/init.lua @@ -24,8 +24,8 @@ local Widget = {} -- Add the widget as subvariable to the returned table -Widget.Base = require "birb.modules.gui.textmenu.widgets.basic" -Widget.SubMenu= require "birb.modules.gui.textmenu.widgets.submenu" -Widget.Back = require "birb.modules.gui.textmenu.widgets.back" +Widget.Base = require "framework.scenes.gui.textmenu.widgets.basic" +Widget.SubMenu= require "framework.scenes.gui.textmenu.widgets.submenu" +Widget.Back = require "framework.scenes.gui.textmenu.widgets.back" return Widget diff --git a/birb/modules/gui/textmenu/widgets/submenu.lua b/framework/scenes/gui/textmenu/widgets/submenu.lua similarity index 93% rename from birb/modules/gui/textmenu/widgets/submenu.lua rename to framework/scenes/gui/textmenu/widgets/submenu.lua index a38d390..faf5d84 100644 --- a/birb/modules/gui/textmenu/widgets/submenu.lua +++ b/framework/scenes/gui/textmenu/widgets/submenu.lua @@ -22,7 +22,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local TextMenuWidget = require "birb.modules.gui.textmenu.widgets.basic" +local TextMenuWidget = require "framework.scenes.gui.textmenu.widgets.basic" local SubmenuWidget = TextMenuWidget:extend() diff --git a/birb/modules/gui/utils.lua b/framework/scenes/gui/utils.lua similarity index 100% rename from birb/modules/gui/utils.lua rename to framework/scenes/gui/utils.lua diff --git a/birb/modules/scenes.lua b/framework/scenes/init.lua similarity index 97% rename from birb/modules/scenes.lua rename to framework/scenes/init.lua index 59ddeb8..8ce0ae4 100644 --- a/birb/modules/scenes.lua +++ b/framework/scenes/init.lua @@ -22,12 +22,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local cwd = (...):gsub('%.scenes$', '') .. "." - local Scene = Object:extend() -local Assets = require(cwd .. "assets") -local Gui = require (cwd .. "gui") +local Assets = require "framework.scenes.assets" +local Gui = require "framework.scenes.gui" -- INIT FUNCTIONS -- Initialize and configure the scene diff --git a/birb/modules/transitions/canvas.lua b/framework/scenes/transitions/canvas.lua similarity index 90% rename from birb/modules/transitions/canvas.lua rename to framework/scenes/transitions/canvas.lua index 04df3bd..589171a 100644 --- a/birb/modules/transitions/canvas.lua +++ b/framework/scenes/transitions/canvas.lua @@ -1,4 +1,4 @@ -local TransitionParent = require "birb.modules.transitions.parent" +local TransitionParent = require "framework.scenes.transitions.parent" local CanvasTransition = TransitionParent:extend() function CanvasTransition:new(func, ox, oy, fadeOut, easeIn, easeOut, duration, wait) diff --git a/birb/modules/transitions/circle.lua b/framework/scenes/transitions/circle.lua similarity index 83% rename from birb/modules/transitions/circle.lua rename to framework/scenes/transitions/circle.lua index 360063d..8e9d35c 100644 --- a/birb/modules/transitions/circle.lua +++ b/framework/scenes/transitions/circle.lua @@ -1,4 +1,4 @@ -local TransitionParent = require "birb.modules.transitions.canvas" +local TransitionParent = require "framework.scenes.transitions.canvas" local DefaultTransition = TransitionParent:extend() function DefaultTransition:new(func, ox, oy, fadeOut) diff --git a/birb/modules/transitions/decal.lua b/framework/scenes/transitions/decal.lua similarity index 88% rename from birb/modules/transitions/decal.lua rename to framework/scenes/transitions/decal.lua index 7be07b2..6f68e65 100644 --- a/birb/modules/transitions/decal.lua +++ b/framework/scenes/transitions/decal.lua @@ -1,4 +1,4 @@ -local TransitionParent = require "birb.modules.transitions.canvas" +local TransitionParent = require "framework.scenes.transitions.canvas" local DecalTransition = TransitionParent:extend() function DecalTransition:new(func, ox, oy, fadeOut, decal) diff --git a/birb/modules/transitions/default.lua b/framework/scenes/transitions/default.lua similarity index 79% rename from birb/modules/transitions/default.lua rename to framework/scenes/transitions/default.lua index 4727a34..c96049a 100644 --- a/birb/modules/transitions/default.lua +++ b/framework/scenes/transitions/default.lua @@ -1,4 +1,4 @@ -local TransitionParent = require "birb.modules.transitions.parent" +local TransitionParent = require "framework.scenes.transitions.parent" local DefaultTransition = TransitionParent:extend() function DefaultTransition:new(func, ox, oy, fadeOut) diff --git a/framework/scenes/transitions/init.lua b/framework/scenes/transitions/init.lua new file mode 100644 index 0000000..da16750 --- /dev/null +++ b/framework/scenes/transitions/init.lua @@ -0,0 +1,4 @@ +return { + default = require "framework.scenes.transitions.default", + circle = require "framework.scenes.transitions.circle" +} \ No newline at end of file diff --git a/birb/modules/transitions/parent.lua b/framework/scenes/transitions/parent.lua similarity index 92% rename from birb/modules/transitions/parent.lua rename to framework/scenes/transitions/parent.lua index 32dd61f..d654de3 100644 --- a/birb/modules/transitions/parent.lua +++ b/framework/scenes/transitions/parent.lua @@ -1,5 +1,5 @@ local TransitionParent = Object:extend() -local TweenManager = require "birb.classes.time" +local TweenManager = require "framework.classes.time" function TransitionParent:new(func, ox, oy, fadeOut, easeIn, easeOut, duration, wait) self.tween = TweenManager(self) diff --git a/birb/modules/world/actors/actor2D.lua b/framework/scenes/world/actors/actor2D.lua similarity index 89% rename from birb/modules/world/actors/actor2D.lua rename to framework/scenes/world/actors/actor2D.lua index 90e4b0b..cd88baf 100644 --- a/birb/modules/world/actors/actor2D.lua +++ b/framework/scenes/world/actors/actor2D.lua @@ -21,13 +21,13 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Rect = require "birb.classes.2D.rect" +local Rect = require "framework.classes.2D.rect" -local BaseActor = require "birb.modules.world.actors.mixins.base" -local SpritedActor = require("birb.modules.world.actors.mixins.sprites") -local TimedActor = require("birb.modules.world.actors.mixins.timers") -local InputActor = require("birb.modules.world.actors.mixins.inputs") -local PhysicalActor = require("birb.modules.world.actors.mixins.physics") +local BaseActor = require "framework.scenes.world.actors.mixins.base" +local SpritedActor = require("framework.scenes.world.actors.mixins.sprites") +local TimedActor = require("framework.scenes.world.actors.mixins.timers") +local InputActor = require("framework.scenes.world.actors.mixins.inputs") +local PhysicalActor = require("framework.scenes.world.actors.mixins.physics") local Actor2D = Rect:extend() Actor2D:implement(BaseActor) @@ -36,7 +36,7 @@ Actor2D:implement(TimedActor) Actor2D:implement(InputActor) Actor2D:implement(PhysicalActor) -local Hitbox = require "birb.modules.world.actors.utils.hitbox2D" +local Hitbox = require "framework.scenes.world.actors.utils.hitbox2D" -- INIT FUNCTIONS -- Initialise the actor and its base functions diff --git a/birb/modules/world/actors/actor3D.lua b/framework/scenes/world/actors/actor3D.lua similarity index 88% rename from birb/modules/world/actors/actor3D.lua rename to framework/scenes/world/actors/actor3D.lua index e99964c..728a0c0 100644 --- a/birb/modules/world/actors/actor3D.lua +++ b/framework/scenes/world/actors/actor3D.lua @@ -22,16 +22,16 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] -local Hitbox = require("birb.modules.world.actors.utils.hitbox3D") -local Boxes = require("birb.modules.world.actors.utils.boxes") -local BasicBox = require "birb.classes.3D.box" +local Hitbox = require("framework.scenes.world.actors.utils.hitbox3D") +local Boxes = require("framework.scenes.world.actors.utils.boxes") +local BasicBox = require "framework.classes.3D.box" -local BaseActor = require("birb.modules.world.actors.mixins.base") -local SpritedActor = require("birb.modules.world.actors.mixins.sprites") -local TimedActor = require("birb.modules.world.actors.mixins.timers") -local InputActor = require("birb.modules.world.actors.mixins.inputs") -local PhysicalActor = require("birb.modules.world.actors.mixins.physics") -local Shape3DActor = require("birb.modules.world.actors.mixins.shapes") +local BaseActor = require("framework.scenes.world.actors.mixins.base") +local SpritedActor = require("framework.scenes.world.actors.mixins.sprites") +local TimedActor = require("framework.scenes.world.actors.mixins.timers") +local InputActor = require("framework.scenes.world.actors.mixins.inputs") +local PhysicalActor = require("framework.scenes.world.actors.mixins.physics") +local Shape3DActor = require("framework.scenes.world.actors.mixins.shapes") local Actor3D = BasicBox:extend() Actor3D:implement(BaseActor) diff --git a/birb/modules/world/actors/gfx2D.lua b/framework/scenes/world/actors/gfx2D.lua similarity index 100% rename from birb/modules/world/actors/gfx2D.lua rename to framework/scenes/world/actors/gfx2D.lua diff --git a/birb/modules/world/actors/gfx3D.lua b/framework/scenes/world/actors/gfx3D.lua similarity index 100% rename from birb/modules/world/actors/gfx3D.lua rename to framework/scenes/world/actors/gfx3D.lua diff --git a/birb/modules/world/actors/mixins/base.lua b/framework/scenes/world/actors/mixins/base.lua similarity index 100% rename from birb/modules/world/actors/mixins/base.lua rename to framework/scenes/world/actors/mixins/base.lua diff --git a/birb/modules/world/actors/mixins/inputs.lua b/framework/scenes/world/actors/mixins/inputs.lua similarity index 100% rename from birb/modules/world/actors/mixins/inputs.lua rename to framework/scenes/world/actors/mixins/inputs.lua diff --git a/birb/modules/world/actors/mixins/physics.lua b/framework/scenes/world/actors/mixins/physics.lua similarity index 98% rename from birb/modules/world/actors/mixins/physics.lua rename to framework/scenes/world/actors/mixins/physics.lua index 2b99ed5..ff4225b 100644 --- a/birb/modules/world/actors/mixins/physics.lua +++ b/framework/scenes/world/actors/mixins/physics.lua @@ -1,5 +1,5 @@ PhysicalActor = Object:extend() -local hitboxStructure = require "birb.structures.hitbox" +local hitboxStructure = require "framework.structures.hitbox" -- PHYSICS FUNCTIONS -- Raw implementation of everything common in physics diff --git a/birb/modules/world/actors/mixins/shapes.lua b/framework/scenes/world/actors/mixins/shapes.lua similarity index 100% rename from birb/modules/world/actors/mixins/shapes.lua rename to framework/scenes/world/actors/mixins/shapes.lua diff --git a/birb/modules/world/actors/mixins/sprites.lua b/framework/scenes/world/actors/mixins/sprites.lua similarity index 97% rename from birb/modules/world/actors/mixins/sprites.lua rename to framework/scenes/world/actors/mixins/sprites.lua index 4641190..a99af8b 100644 --- a/birb/modules/world/actors/mixins/sprites.lua +++ b/framework/scenes/world/actors/mixins/sprites.lua @@ -22,7 +22,7 @@ ]] local SpritedActor = Object:extend() -local Sprite = require("birb.modules.world.actors.utils.sprites") +local Sprite = require("framework.scenes.world.actors.utils.sprites") function SpritedActor:initSprite() self:addUpdateFunction(self.updateSprite) diff --git a/birb/modules/world/actors/mixins/timers.lua b/framework/scenes/world/actors/mixins/timers.lua similarity index 95% rename from birb/modules/world/actors/mixins/timers.lua rename to framework/scenes/world/actors/mixins/timers.lua index 4dacbfb..929c86c 100644 --- a/birb/modules/world/actors/mixins/timers.lua +++ b/framework/scenes/world/actors/mixins/timers.lua @@ -23,7 +23,7 @@ local TimedActor = Object:extend() -local TweenManager = require "birb.classes.time" +local TweenManager = require "framework.classes.time" -- TIMER FUNCTIONS -- Control the integrated timers of the actor diff --git a/birb/modules/world/actors/utils/boxes/init.lua b/framework/scenes/world/actors/utils/boxes/init.lua similarity index 100% rename from birb/modules/world/actors/utils/boxes/init.lua rename to framework/scenes/world/actors/utils/boxes/init.lua diff --git a/birb/modules/world/actors/utils/boxes/mapped.lua b/framework/scenes/world/actors/utils/boxes/mapped.lua similarity index 100% rename from birb/modules/world/actors/utils/boxes/mapped.lua rename to framework/scenes/world/actors/utils/boxes/mapped.lua diff --git a/birb/modules/world/actors/utils/boxes/parent.lua b/framework/scenes/world/actors/utils/boxes/parent.lua similarity index 100% rename from birb/modules/world/actors/utils/boxes/parent.lua rename to framework/scenes/world/actors/utils/boxes/parent.lua diff --git a/birb/modules/world/actors/utils/boxes/textured.lua b/framework/scenes/world/actors/utils/boxes/textured.lua similarity index 100% rename from birb/modules/world/actors/utils/boxes/textured.lua rename to framework/scenes/world/actors/utils/boxes/textured.lua diff --git a/birb/modules/world/actors/utils/hitbox2D.lua b/framework/scenes/world/actors/utils/hitbox2D.lua similarity index 98% rename from birb/modules/world/actors/utils/hitbox2D.lua rename to framework/scenes/world/actors/utils/hitbox2D.lua index cd9571a..b6b9b10 100644 --- a/birb/modules/world/actors/utils/hitbox2D.lua +++ b/framework/scenes/world/actors/utils/hitbox2D.lua @@ -23,7 +23,7 @@ ]] local Hitbox2D = Object:extend() -local rectStructure = require "birb.structures.rect" +local rectStructure = require "framework.structures.rect" -- INIT FUNCTIONS -- Initialise the actor and its base functions diff --git a/birb/modules/world/actors/utils/hitbox3D.lua b/framework/scenes/world/actors/utils/hitbox3D.lua similarity index 98% rename from birb/modules/world/actors/utils/hitbox3D.lua rename to framework/scenes/world/actors/utils/hitbox3D.lua index 261e104..a89f4bd 100644 --- a/birb/modules/world/actors/utils/hitbox3D.lua +++ b/framework/scenes/world/actors/utils/hitbox3D.lua @@ -23,7 +23,7 @@ ]] local Hitbox3D = Object:extend() -local boxStructure = require "birb.structures.box" +local boxStructure = require "framework.structures.box" -- INIT FUNCTIONS -- Initialise the actor and its base functions diff --git a/birb/modules/world/actors/utils/sprites.lua b/framework/scenes/world/actors/utils/sprites.lua similarity index 100% rename from birb/modules/world/actors/utils/sprites.lua rename to framework/scenes/world/actors/utils/sprites.lua diff --git a/birb/modules/world/baseworld.lua b/framework/scenes/world/baseworld.lua similarity index 100% rename from birb/modules/world/baseworld.lua rename to framework/scenes/world/baseworld.lua diff --git a/birb/modules/world/camera/init.lua b/framework/scenes/world/camera/init.lua similarity index 100% rename from birb/modules/world/camera/init.lua rename to framework/scenes/world/camera/init.lua diff --git a/birb/modules/world/camera/utils.lua b/framework/scenes/world/camera/utils.lua similarity index 100% rename from birb/modules/world/camera/utils.lua rename to framework/scenes/world/camera/utils.lua diff --git a/birb/modules/world/libs/bump-3dpd.lua b/framework/scenes/world/libs/bump-3dpd.lua similarity index 100% rename from birb/modules/world/libs/bump-3dpd.lua rename to framework/scenes/world/libs/bump-3dpd.lua diff --git a/birb/modules/world/libs/bump.lua b/framework/scenes/world/libs/bump.lua similarity index 100% rename from birb/modules/world/libs/bump.lua rename to framework/scenes/world/libs/bump.lua diff --git a/birb/modules/world/libs/tsort.lua b/framework/scenes/world/libs/tsort.lua similarity index 100% rename from birb/modules/world/libs/tsort.lua rename to framework/scenes/world/libs/tsort.lua diff --git a/birb/modules/world/maps/init.lua b/framework/scenes/world/maps/init.lua similarity index 100% rename from birb/modules/world/maps/init.lua rename to framework/scenes/world/maps/init.lua diff --git a/birb/modules/world/maps/parent.lua b/framework/scenes/world/maps/parent.lua similarity index 100% rename from birb/modules/world/maps/parent.lua rename to framework/scenes/world/maps/parent.lua diff --git a/birb/modules/world/maps/tiled/init.lua b/framework/scenes/world/maps/tiled/init.lua similarity index 86% rename from birb/modules/world/maps/tiled/init.lua rename to framework/scenes/world/maps/tiled/init.lua index 23dc460..49edf00 100644 --- a/birb/modules/world/maps/tiled/init.lua +++ b/framework/scenes/world/maps/tiled/init.lua @@ -1,8 +1,8 @@ -local Parent = require "birb.modules.world.maps.parent" +local Parent = require "framework.scenes.world.maps.parent" local TiledMap = Parent:extend() -local StiWrapper = require "birb.modules.world.maps.tiled.stiwrapper" +local StiWrapper = require "framework.scenes.world.maps.tiled.stiwrapper" -local TiledMixins = require "birb.modules.world.maps.tiled.mixins" +local TiledMixins = require "framework.scenes.world.maps.tiled.mixins" TiledMap:implement(TiledMixins) diff --git a/birb/modules/world/maps/tiled/libs/sti/graphics.lua b/framework/scenes/world/maps/tiled/libs/sti/graphics.lua similarity index 100% rename from birb/modules/world/maps/tiled/libs/sti/graphics.lua rename to framework/scenes/world/maps/tiled/libs/sti/graphics.lua diff --git a/birb/modules/world/maps/tiled/libs/sti/init.lua b/framework/scenes/world/maps/tiled/libs/sti/init.lua similarity index 100% rename from birb/modules/world/maps/tiled/libs/sti/init.lua rename to framework/scenes/world/maps/tiled/libs/sti/init.lua diff --git a/birb/modules/world/maps/tiled/libs/sti/plugins/box2d.lua b/framework/scenes/world/maps/tiled/libs/sti/plugins/box2d.lua similarity index 100% rename from birb/modules/world/maps/tiled/libs/sti/plugins/box2d.lua rename to framework/scenes/world/maps/tiled/libs/sti/plugins/box2d.lua diff --git a/birb/modules/world/maps/tiled/libs/sti/plugins/bump.lua b/framework/scenes/world/maps/tiled/libs/sti/plugins/bump.lua similarity index 100% rename from birb/modules/world/maps/tiled/libs/sti/plugins/bump.lua rename to framework/scenes/world/maps/tiled/libs/sti/plugins/bump.lua diff --git a/birb/modules/world/maps/tiled/libs/sti/utils.lua b/framework/scenes/world/maps/tiled/libs/sti/utils.lua similarity index 100% rename from birb/modules/world/maps/tiled/libs/sti/utils.lua rename to framework/scenes/world/maps/tiled/libs/sti/utils.lua diff --git a/birb/modules/world/maps/tiled/mixins.lua b/framework/scenes/world/maps/tiled/mixins.lua similarity index 100% rename from birb/modules/world/maps/tiled/mixins.lua rename to framework/scenes/world/maps/tiled/mixins.lua diff --git a/birb/modules/world/maps/tiled/stiwrapper.lua b/framework/scenes/world/maps/tiled/stiwrapper.lua similarity index 99% rename from birb/modules/world/maps/tiled/stiwrapper.lua rename to framework/scenes/world/maps/tiled/stiwrapper.lua index a6ae593..46b79ca 100644 --- a/birb/modules/world/maps/tiled/stiwrapper.lua +++ b/framework/scenes/world/maps/tiled/stiwrapper.lua @@ -1,5 +1,5 @@ local StiWrapper = Object:extend() -local STI = require "birb.modules.world.maps.tiled.libs.sti" +local STI = require "framework.scenes.world.maps.tiled.libs.sti" function StiWrapper:new(owner, mapfile, x, y, canLoadPlayer) self.sti = STI(mapfile) diff --git a/birb/modules/world/world2D.lua b/framework/scenes/world/world2D.lua similarity index 100% rename from birb/modules/world/world2D.lua rename to framework/scenes/world/world2D.lua diff --git a/birb/modules/world/world3D.lua b/framework/scenes/world/world3D.lua similarity index 100% rename from birb/modules/world/world3D.lua rename to framework/scenes/world/world3D.lua diff --git a/birb/structures/box.lua b/framework/structures/box.lua similarity index 100% rename from birb/structures/box.lua rename to framework/structures/box.lua diff --git a/birb/structures/elementData.lua b/framework/structures/elementData.lua similarity index 100% rename from birb/structures/elementData.lua rename to framework/structures/elementData.lua diff --git a/birb/structures/hitbox.lua b/framework/structures/hitbox.lua similarity index 100% rename from birb/structures/hitbox.lua rename to framework/structures/hitbox.lua diff --git a/birb/structures/rect.lua b/framework/structures/rect.lua similarity index 100% rename from birb/structures/rect.lua rename to framework/structures/rect.lua diff --git a/birb/structures/tween.lua b/framework/structures/tween.lua similarity index 100% rename from birb/structures/tween.lua rename to framework/structures/tween.lua diff --git a/birb/utils/bools.lua b/framework/utils/bools.lua similarity index 100% rename from birb/utils/bools.lua rename to framework/utils/bools.lua diff --git a/birb/utils/datas.lua b/framework/utils/datas.lua similarity index 100% rename from birb/utils/datas.lua rename to framework/utils/datas.lua diff --git a/birb/utils/enum.lua b/framework/utils/enum.lua similarity index 100% rename from birb/utils/enum.lua rename to framework/utils/enum.lua diff --git a/birb/utils/filesystem.lua b/framework/utils/filesystem.lua similarity index 100% rename from birb/utils/filesystem.lua rename to framework/utils/filesystem.lua diff --git a/birb/utils/graphics.lua b/framework/utils/graphics.lua similarity index 100% rename from birb/utils/graphics.lua rename to framework/utils/graphics.lua diff --git a/birb/utils/init.lua b/framework/utils/init.lua similarity index 78% rename from birb/utils/init.lua rename to framework/utils/init.lua index 4e7ee8f..1953aab 100644 --- a/birb/utils/init.lua +++ b/framework/utils/init.lua @@ -25,11 +25,11 @@ local cwd = (...):gsub('%.init$', '') .. "." -- load the different elements from loveutils return { - math = require "birb.utils.math", - graphics = require "birb.utils.graphics", - filesystem = require "birb.utils.filesystem", - table = require "birb.utils.table", - string = require "birb.utils.string", - time = require "birb.utils.time", - datas = require "birb.utils.datas" + math = require "framework.utils.math", + graphics = require "framework.utils.graphics", + filesystem = require "framework.utils.filesystem", + table = require "framework.utils.table", + string = require "framework.utils.string", + time = require "framework.utils.time", + datas = require "framework.utils.datas" } diff --git a/birb/utils/math.lua b/framework/utils/math.lua similarity index 100% rename from birb/utils/math.lua rename to framework/utils/math.lua diff --git a/birb/utils/string.lua b/framework/utils/string.lua similarity index 100% rename from birb/utils/string.lua rename to framework/utils/string.lua diff --git a/birb/utils/table.lua b/framework/utils/table.lua similarity index 99% rename from birb/utils/table.lua rename to framework/utils/table.lua index ce08309..41a6229 100644 --- a/birb/utils/table.lua +++ b/framework/utils/table.lua @@ -22,7 +22,7 @@ ]] local Table = {} -local Bools = require "birb.utils.bools" +local Bools = require "framework.utils.bools" --- Get the sum of a liste of number ---@param table table the table which you want to find if it contain the content diff --git a/birb/utils/time.lua b/framework/utils/time.lua similarity index 93% rename from birb/utils/time.lua rename to framework/utils/time.lua index 1134176..03ced6f 100644 --- a/birb/utils/time.lua +++ b/framework/utils/time.lua @@ -1,4 +1,4 @@ -local Math = require "birb.utils.math" +local Math = require "framework.utils.math" Time = {}