Skip to content

Commit 9b3dec7

Browse files
committed
fix test atlas
1 parent 5b7bec9 commit 9b3dec7

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

test/atlas/pkg/ant.test.atlas/main_system.lua

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,24 @@ local w = world.w
44
local image = require "image"
55
local fastio = require "fastio"
66
local m = ecs.system "main_system"
7-
local iatlas = ecs.require "ant.atlas|atlas"
7+
local iatlas = import_package "ant.atlas"
88
local fs = require "bee.filesystem"
99
local vfs = require "vfs"
1010

1111
local vpath = "/pkg/ant.resources/textures/atlas"
12+
local output = "/test/atlas/pkg/ant.test.atlas"
1213
local atlas = {
1314
name = "test", x = 1, y = 1, w = 1024, h = 1024, bottom_y = 1,
14-
vpath = vpath,
15-
rpath = fs.current_path():string() .. vpath
15+
irpath = fs.current_path():string() .. output .. '/out.png',
16+
ivpath = "/pkg/ant.test.atlas/out.png",
17+
trpath = fs.current_path():string() .. output .. "/out.texture",
18+
tvpath = "/pkg/ant.test.atlas/out.texture",
19+
rects = {
20+
{ irpath = fs.current_path():string() .. vpath .. "/t1.png",
21+
arpath = fs.current_path():string() .. output .. "/t1.a" },
22+
{ irpath = fs.current_path():string() .. vpath .. "/t2.png",
23+
arpath = fs.current_path():string() .. output .. "/t2.a" }
24+
}
1625
}
1726

1827
function m:init_world()

0 commit comments

Comments
 (0)