ohzi-core 6.0.1 → 6.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ohzi-core",
3
- "version": "6.0.1",
3
+ "version": "6.1.0",
4
4
  "description": "OHZI Core Library",
5
5
  "module": "build/index.module.js",
6
6
  "source": "src/index.js",
package/src/Graphics.js CHANGED
@@ -119,6 +119,8 @@ class Graphics
119
119
  {
120
120
  this.current_render_mode.render();
121
121
  }
122
+
123
+ Screen.update();
122
124
  }
123
125
 
124
126
  __update_current_camera()
package/src/Screen.js CHANGED
@@ -22,6 +22,11 @@ class Screen
22
22
  this.position.set(x, y);
23
23
  }
24
24
 
25
+ update()
26
+ {
27
+ this.size_changed = false;
28
+ }
29
+
25
30
  update_size(width, height)
26
31
  {
27
32
  this.width = width;
@@ -34,6 +39,8 @@ class Screen
34
39
 
35
40
  this.render_width = width * this.dpr;
36
41
  this.render_height = height * this.dpr;
42
+
43
+ this.size_changed = true;
37
44
  }
38
45
 
39
46
  apply_pixel_density_v2(vector2)