@urso/core 0.9.0-dev → 0.9.2-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/js/index.js CHANGED
@@ -68644,7 +68644,9 @@ class LibCache {
68644
68644
  page.uWrap = page.vWrap = 33071;
68645
68645
  textureAtlas.pages.push(page);
68646
68646
  for (const frameName in atlas._frames) {
68647
- const frame = atlas._frames[frameName];
68647
+ const nameSplit = frameName.split(".");
68648
+ const name = nameSplit.splice(0, nameSplit.length - 1).join(".");
68649
+ const frame = atlas._frames[name];
68648
68650
  const region = new TextureAtlasRegion(page, frameName);
68649
68651
  region.width = frame.frame.w;
68650
68652
  region.height = frame.frame.h;
@@ -75242,10 +75244,6 @@ class ModulesScenesPixiWrapper {
75242
75244
  return this._renderer.generateTexture(obj);
75243
75245
  }
75244
75246
  _setPixiSettings() {
75245
- PIXI.settings.SCALE_MODE = PIXI.SCALE_MODES.LINEAR;
75246
- PIXI.settings.TEXT_RESOLUTION = 1;
75247
- if (Urso.device.iOS || Urso.device.macOS)
75248
- PIXI.settings.PRECISION_FRAGMENT = PIXI.PRECISION.HIGH;
75249
75247
  }
75250
75248
  _createWorld() {
75251
75249
  if (this.world)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.9.0-dev",
3
+ "version": "0.9.2-dev",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -51,7 +51,9 @@ class LibCache {
51
51
  textureAtlas.pages.push(page);
52
52
 
53
53
  for (const frameName in atlas._frames) {
54
- const frame = atlas._frames[frameName];
54
+ const nameSplit = frameName.split('.');
55
+ const name = nameSplit.splice(0, nameSplit.length - 1).join('.')
56
+ const frame = atlas._frames[name];
55
57
  const region = new spine.TextureAtlasRegion(page, frameName);
56
58
 
57
59
  region.width = frame.frame.w;
@@ -195,11 +195,12 @@ class ModulesScenesPixiWrapper {
195
195
  }
196
196
 
197
197
  _setPixiSettings() {
198
- PIXI.settings.SCALE_MODE = PIXI.SCALE_MODES.LINEAR;
199
- PIXI.settings.TEXT_RESOLUTION = 1;
198
+ //FIXME
199
+ // PIXI.settings.SCALE_MODE = PIXI.SCALE_MODES.LINEAR;
200
+ // PIXI.settings.TEXT_RESOLUTION = 1;
200
201
 
201
- if (Urso.device.iOS || Urso.device.macOS)
202
- PIXI.settings.PRECISION_FRAGMENT = PIXI.PRECISION.HIGH;
202
+ // if (Urso.device.iOS || Urso.device.macOS)
203
+ // PIXI.settings.PRECISION_FRAGMENT = PIXI.PRECISION.HIGH;
203
204
  }
204
205
 
205
206
  _createWorld() {