23 Commits

Author SHA1 Message Date
Nathan Sweet
f77a51d33a [ts] Fixed input handling for player control bones and demos. 2021-06-22 22:52:00 -04:00
Nathan Sweet
2911f9da5e [ts] Demo asset update, demos clean up. 2021-06-20 01:07:29 -04:00
Nathan Sweet
ca9a3ff7c2 [ts] Set path for demos, update order. 2021-06-18 21:48:40 -04:00
Nathan Sweet
5d6f46d295 [ts] Update demos to 4.0 and new AssetManager. 2021-06-18 18:48:58 -04:00
badlogic
b838248e39 [webgl] jugglin in canvases at 10% margins, render in scroll callback. Alleviates black canvases of death a little bit, but not much. 2017-09-15 16:31:50 +02:00
badlogic
e68f1cb4cc [webgl] Fixed css of canvases for standalone demos. On FF Android, the context limit is 2, so we adhere to that now, resulting in terrible artifacts. Using 5 preallocated contexts for other browsers. 2017-09-15 13:59:51 +02:00
badlogic
61394b9317 [webgl] Increased number of preallocated canvases to 4, seems save on mobile. 2017-09-15 10:59:39 +02:00
badlogic
cb9e025390 [webgl] Added visibility check to demo mainloop. 2017-09-15 10:07:43 +02:00
badlogic
4fe53ac856 [webgl] Refactored WebGL demos. They reuse a preallocated set of canvases to limit the number of WebGL contexts required. At most 3 canvases can be visible at a time, so we preallocate 3 canvases, then dynamically attach them to placeholder divs based on their visibility. I'm a juggalo. 2017-09-14 15:47:51 +02:00
badlogic
ff1a81bab3 [webgl] Refactored demos to use preallocated canvas & context 2017-09-14 12:15:23 +02:00
badlogic
27096d64cf [ts] updated viewport check in utils.js 2017-09-12 11:32:38 +02:00
NathanSweet
b597aac9b9 [ts] Minor demo updates.
- Loading screen is never shown if demo loads completely while offscreen.
- HTML charset specified.
- Tabs, not spaces, you filthy animals. Each unminified JS reduced by ~80kb.
- Clean up.
2016-09-13 23:18:49 +02:00
NathanSweet
65d0014827 [ts] Moar demo love. 2016-09-04 23:22:47 +02:00
NathanSweet
cf08ed3293 [ts] Use CSS transformX instead of left for performance. 2016-09-04 13:51:09 +02:00
NathanSweet
1e650a70ac [ts] Adjusted skeleton positions. 2016-09-03 17:18:31 +02:00
NathanSweet
681fd1df58 [ts] Fixed demos to use new slider. 2016-09-03 16:31:54 +02:00
badlogic
35d8598fe3 [ts] Visibility check is only done on scroll events, saves some CPU 2016-09-03 14:25:49 +02:00
badlogic
73b5617b81 [ts] Refactored the way we render multiple demos. All rendering is coalesced into a single rendering loop. Eats less CPU 2016-09-03 01:13:02 +02:00
badlogic
1c74823b2f [ts] Refactored demos to share assets as much as possible. Added SharedAssetManager for that purpose 2016-09-02 11:22:04 +02:00
badlogic
348b11e275 [ts] More demo work 2016-09-01 14:46:36 +02:00
badlogic
47e706c972 [ts] More demo polishing 2016-08-31 16:53:48 +02:00
badlogic
cb91cc277b [ts] More demo work 2016-08-30 16:27:09 +02:00
badlogic
15c82b221a [ts] Refactored demos so we can load them sequentially 2016-08-30 12:07:33 +02:00