examples: reorganize folders

This commit is contained in:
Kazhnuz 2019-04-07 13:09:07 +02:00
parent 00aedfd89b
commit 836fd77435
15 changed files with 9 additions and 9 deletions

View file

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -33,7 +33,7 @@ local MenuWidget = Widget.Text:extend()
function TestScene:new() function TestScene:new()
TestScene.super.new(self) TestScene.super.new(self)
self.assets:addImageFont("medium", "examples/test_menus/assets/medium") self.assets:addImageFont("medium", "examples/basic/test_menus/assets/medium")
MenuType(self.menusystem, "testMenu1", 32, 32, 100, 24*8, 4) MenuType(self.menusystem, "testMenu1", 32, 32, 100, 24*8, 4)
MenuWidget(self, "testMenu1", "text_menu1") MenuWidget(self, "testMenu1", "text_menu1")

View file

@ -1,4 +1,4 @@
local Parent = require "examples.test_scene2.actors.parent" local Parent = require "examples.basic.test_scene2.actors.parent"
local Explosion = Parent:extend() local Explosion = Parent:extend()
function Explosion:new(scene, x, y) function Explosion:new(scene, x, y)

View file

Before

Width:  |  Height:  |  Size: 280 B

After

Width:  |  Height:  |  Size: 280 B

View file

Before

Width:  |  Height:  |  Size: 580 B

After

Width:  |  Height:  |  Size: 580 B

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -24,10 +24,10 @@
local Scene = require "gamecore.modules.scenes" local Scene = require "gamecore.modules.scenes"
local TestScene = Scene:extend() local TestScene = Scene:extend()
local folder = "examples/test_scene2/" local folder = "examples/basic/test_scene2/"
local World = require "gamecore.modules.world.baseworld" local World = require "gamecore.modules.world.baseworld"
local Explosion = require "examples.test_scene2.actors.explosion" local Explosion = require "examples.basic.test_scene2.actors.explosion"
function TestScene:new() function TestScene:new()
TestScene.super.new(self) TestScene.super.new(self)

View file

@ -1,7 +1,7 @@
return { return {
Test = require "examples.test_scene",
Test2 = require "examples.test_scene2",
TestMenu = require "examples.test_menus",
MainMenu = require "examples.mainmenu", MainMenu = require "examples.mainmenu",
Test = require "examples.basic.test_scene",
Test2 = require "examples.basic.test_scene2",
TestMenu = require "examples.basic.test_menus",
Inventory = require "examples.menus.inventory" Inventory = require "examples.menus.inventory"
} }

View file

@ -33,7 +33,7 @@ local ExitWidget = Widget.Text:extend()
function MainMenu:new() function MainMenu:new()
MainMenu.super.new(self) MainMenu.super.new(self)
self.assets:addImageFont("medium", "examples/test_menus/assets/medium") self.assets:addImageFont("medium", "examples/mainmenu/assets/medium")
self:addMenu("main", true) self:addMenu("main", true)
self:addSubMenu("basic", "Basic Tests") self:addSubMenu("basic", "Basic Tests")

View file

@ -34,7 +34,7 @@ local ExitWidget = Widget.Text:extend()
function Inventory:new() function Inventory:new()
Inventory.super.new(self) Inventory.super.new(self)
self.assets:addImageFont("medium", "examples/test_menus/assets/medium") self.assets:addImageFont("medium", "examples/menus/inventory/assets/medium")
HListBox(self.menusystem, "main", 42, 32, 424-84, 32, 5) HListBox(self.menusystem, "main", 42, 32, 424-84, 32, 5)