// Load rosa. Console.print('Asset time'); const entry = Asset.lock('test.png', Asset.TYPE_TEXTURE, Texture.FORMAT_RGBA); Asset.requireLoaded(entry); Console.print('Asset loaded'); // Camera at (3,3,3) looking at origin const cam = Entity.create(); const camPos = cam.add(Component.POSITION); cam.add(Component.CAMERA); camPos.localPosition = new Vec3(3, 3, 3); camPos.lookAt(new Vec3(0, 0, 0)); // Test entity at origin const testEntity = Entity.create(); const testPos = testEntity.add(Component.POSITION); /** @type {RenderableSpritebatch} */ const testRenderable = testEntity.add(Component.RENDERABLE); testRenderable.texture = entry.texture; testRenderable.sprites = [ [0, 0, 1, 1, 0, 1, 1, 0] ]; testPos.localPosition = new Vec3(0, 0, 0);