pandemonium_engine/platform/javascript
Relintai bcf96a5840 Ported: Improve performance of screen_get_dpi() in Javascript
Replace a bisect with a single multiplication when calling
screen_get_dpi() in Javascript

Tested the value of
window.matchMedia(`(resolution:${(window.devicePixelRatio*96).toFixed(100)}dpi)`).matches
which is true except for values that cause a lot of rounding errors
(e.g. dpr : 0.3  => resolution: 28.799999999999997dpi)

Even in these cases the value matches the result of the previous
`findDPI()` method.
-jamie-pate
562d7c616d
2022-09-16 21:15:54 +02:00
..
api Moved Engine and projectSettings. 2022-08-17 15:35:28 +02:00
export Ported: Refactor the export checking logic to improve separation of concerns - m4gr3d 2022-08-19 12:08:35 +02:00
js Ported: Improve performance of screen_get_dpi() in Javascript 2022-09-16 21:15:54 +02:00
.eslintrc.engine.js Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
.eslintrc.js
.eslintrc.libs.js Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
audio_driver_javascript.cpp Moved Engine and projectSettings. 2022-08-17 15:35:28 +02:00
audio_driver_javascript.h Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
detect.py HTML5: Enable mbedTLS module for Crypto object 2022-07-28 11:13:39 +02:00
dom_keys.inc Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
emscripten_helpers.py Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
http_client_javascript.cpp Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
http_client.h.inc
javascript_main.cpp Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
javascript_runtime.cpp Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
javascript_singleton.cpp Cleaned up and added the skeleton modification stack implementations to the build. Also smaller fixes. 2022-08-18 15:41:28 +02:00
logo.png
os_javascript.cpp Also renamed the files. 2022-08-19 21:24:36 +02:00
os_javascript.h Also renamed the files. 2022-08-19 21:24:36 +02:00
package-lock.json Ran npm audit fix for the javascript backend. 2022-07-28 11:15:30 +02:00
package.json Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
pandemonium_audio.h Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
pandemonium_js.h Fix javascript build. 2022-08-19 16:23:02 +02:00
platform_config.h
README.md
run_icon.png
SCsub Mass replaced godot to pandemonium. 2022-03-23 20:46:05 +01:00
serve.json

HTML5 platform port

This folder contains the C++ and JavaScript code for the HTML5/WebAssembly platform port, compiled using Emscripten.

It also contains a ESLint linting setup (see package.json).

See also misc/dist/html folder for files used by this platform such as the HTML5 shell.

Artwork license

logo.png and run_icon.png are licensed under Creative Commons Attribution 3.0 Unported per the HTML5 logo usage guidelines.