Thomas Weber
2bbb32d759
Do not round monitor offset when resizing stage
...
Reduces error after many resizes
2022-03-13 14:12:35 -05:00
Thomas Weber
25e91e735c
Preserve monitor position relative to center of stage when resizing stage
2022-03-12 20:36:37 -06:00
Thomas Weber
65304b59a6
Fix storing custom stage size when only one of width or height are stored
2022-03-01 22:22:22 -06:00
Thomas Weber
24cd822aa4
Only store project settings that don't match the default
2022-02-18 21:36:50 -06:00
Thomas Weber
bf1156dd3f
Add convertToPackagedRuntime stub
2022-02-12 15:59:43 -06:00
Thomas Weber
b208444d93
Only resize renderer if stage size changed
2022-01-22 13:28:55 -06:00
Thomas Weber
f833277201
Add stage size to stored project options
2022-01-16 17:31:26 -06:00
Thomas Weber
208b0818c2
Add Runtime.setStageSize helper and STAGE_SIZE_CHANGED event
2022-01-16 17:31:25 -06:00
Thomas Weber
5907ab0103
Reset cloud variable limit to 10 for compatibility reasons
...
We don't want people to make a project in TW with 20 cloud variables and then have issues importing it to Scratch.
The packager, which has no limit, will convert any variable that starts with ☁ to a cloud variable, so this can be worked around.
2021-12-30 16:26:16 -06:00
Thomas Weber
77945b9a04
Convert inEditor compiler option to separate setInEditor
2021-12-29 11:32:27 -06:00
Thomas Weber
e1d0a70216
Add unused compiler option inEditor
2021-12-28 17:43:46 -06:00
Thomas Weber
87dc87c648
Fix a couple frame loop regressions
2021-12-13 20:45:49 -06:00
Thomas Weber
41eceef19b
Refactor frame loop logic and make "0 FPS" use requestAnimationFrame instead of setInterval
2021-12-13 16:22:16 -06:00
Thomas Weber
521e7257d3
Set renderer.offscreenTouching if fencing is disabled
2021-11-09 18:35:44 -06:00
Thomas Weber
24d0b69bff
Runtime-configurable cloud variable limit
2021-11-06 16:29:32 -05:00
Thomas Weber
084540630f
Add more detailed message to stored settings comment
2021-09-15 18:14:13 -05:00
Thomas Weber
1c7c85a89d
Move tw-emit-fast and tw-extended-json to util
2021-08-15 12:23:23 -05:00
Thomas Weber
3342b38ef2
Increase cloud variable limit to 100
2021-08-03 16:04:49 -05:00
Thomas Weber
c1387a1e36
Remove trailing whitespace
2021-08-03 15:54:01 -05:00
Thomas Weber
f03d397936
Revert "Allow name of addon blocks category to be translated"
...
This reverts commit e2fdfc5bf5 .
It may be causing crashes.
2021-07-20 13:02:18 -05:00
Thomas Weber
e2fdfc5bf5
Allow name of addon blocks category to be translated
2021-07-13 22:10:27 -05:00
Thomas Weber
573ce9dc1c
Addon blocks should always be the top extension
2021-07-13 22:06:39 -05:00
Thomas Weber
9e15b0f38a
Don't try to enable high quality pen if there is no renderer
2021-06-19 12:55:09 -05:00
Thomas Weber
42b4e99e98
Fix addon blocks causing errors due to missing properties
2021-06-15 14:50:55 -05:00
Thomas Weber
20a9c26a0f
Just store all runtime options
2021-06-10 12:11:27 -05:00
Thomas Weber
91b9bcb6c6
Fix storing remove fencing
2021-06-10 12:10:57 -05:00
Thomas Weber
a8cfa25d9d
More work on the "thread map" concept
2021-06-10 11:44:41 -05:00
Thomas Weber
59f3c0ebe8
Fix some more startHats bugs
2021-06-09 23:02:57 -05:00
Thomas Weber
b64b7d83f7
Fix all remaining eslint errors
...
valid-jsdoc was disabled because typescript syntax comments make eslint upset
2021-06-09 22:28:26 -05:00
Thomas Weber
bbe7bc035b
Make startHats not O(n^2), attempt 2
2021-06-09 22:23:51 -05:00
Thomas Weber
75e4239e41
Remove leftover debugging logic
2021-06-09 19:34:21 -05:00
Thomas Weber
86de84e150
Initial "addon block" support
2021-06-09 19:15:25 -05:00
Thomas Weber
cdc962555f
Revert "Make startHats not O(n^2)"
...
This reverts commit 5659a42b30 .
2021-05-24 21:08:24 -05:00
Thomas Weber
ec20b19f13
Add a few comments
2021-05-24 16:59:51 -05:00
Thomas Weber
5659a42b30
Make startHats not O(n^2)
...
For hats with restartExistingThreads=true, a map of target ID +
thread top block ID is maintained in addition to the thread list.
Then, startHats can do a simple lookup instead of iterating over
the entire thread list. Can improve performance in certain
projects that use way too many broadcasts and clones. These
lookups are probably O(1)-ish instead of O(n).
This is not possible for hats with restartExistingThreads=false
due to the extra .status === Thread.STATUS_DONE check.
2021-05-24 16:51:37 -05:00
Thomas Weber
a3f0ef80b8
resetAllCaches should also reset flyout and monitor block caches
2021-05-23 10:50:59 -05:00
Thomas Weber
416281f99b
Merge branch 'develop' of github.com:LLK/scratch-vm into develop
2021-05-21 18:34:18 -05:00
Thomas Weber
64b3a919b4
Update self configuration
...
Can now store high quality pen
Warp timer no longer stored automatically
2021-05-15 01:46:08 -05:00
Thomas Weber
0e8ec4d9dc
Use ExtendedJSON to fix storing infinite clones
2021-05-15 00:59:48 -05:00
Thomas Weber
50f630cfa9
Add ExtendedJSON stringify
2021-05-15 00:59:33 -05:00
Thomas Weber
8c365062bf
Project self-configuration ( #55 )
2021-05-15 00:29:01 -05:00
Eric Rosenbaum
0b4b32dcb0
Save and load the origin
2021-04-29 11:32:13 -04:00
Thomas Weber
286fe60250
Revert "Revert "Merge branch 'develop' of https://github.com/llk/scratch-vm into develop""
...
This reverts commit f9f061e067 .
2021-04-16 20:20:14 -05:00
Thomas Weber
f9f061e067
Revert "Merge branch 'develop' of https://github.com/llk/scratch-vm into develop"
...
This reverts commit 019e989e47 , reversing
changes made to 1618e5da07 .
2021-04-09 20:27:51 -05:00
Thomas Weber
2b81e53317
Change maximum framerate to 250
2021-04-07 14:27:20 -05:00
Thomas Weber
019e989e47
Merge branch 'develop' of https://github.com/llk/scratch-vm into develop
2021-04-05 17:53:26 -05:00
Thomas Weber
816f42a637
Polyfill requestAnimationFrame for node environments
2021-03-26 20:02:20 -05:00
Thomas Weber
7228f5cdd0
effectLimits -> miscLimits
2021-03-26 19:15:04 -05:00
Thomas Weber
6a7822b429
Add a debug mode
2021-03-25 20:41:45 -05:00
Thomas Weber
cb6a5bc1d0
Remove hasLimits/setLimits
...
Changes in GUI have made these obsolete
2021-03-20 22:47:04 -05:00