Thomas Weber
5bec779b4a
minor optimizations/fixes
2020-07-06 18:23:16 -05:00
Thomas Weber
3bfc252a0e
fix a couple small bugs
2020-06-26 14:44:19 -05:00
Thomas Weber
fdad50f397
Get some more things to work in the compiler
...
- add event_broadcastandwait
- add looks_switchbackdropto
- add looks_backdrops
2020-06-26 12:45:06 -05:00
Thomas Weber
1714ebf5f6
Merge remote-tracking branch 'upstream/develop' into develop
2020-06-26 00:45:18 -05:00
Thomas Weber
930fe68112
More updates to the compiler
...
- remove unused local variable tracking and utilities
- add some jsdoc to the compiler executor
- improve variable reference finding
- add data_listcontainsitem
- add event_broadcast
- add event_broadcast_menu
2020-06-26 00:14:42 -05:00
Thomas Weber
ae5ce527b1
Some smaller bug fixes in the compiler
...
- throw if toString on asNumber, asString, asBoolean
- log compilation errors again
- add motion_setrotationstyle
- fix operator_divide NaN handling
- fix operator_mod second argument
2020-06-25 23:05:06 -05:00
Thomas Weber
3a8f0a11f5
Implement ScriptCache
2020-06-25 21:40:57 -05:00
Thomas Weber
ab9deb2d09
Smaller fixes/changes
...
- add looks_say
- add flags for CompiledInput
- add nullabe/NaNable
2020-06-24 12:47:34 -05:00
Thomas Weber
bdebad01bd
Add a couple more blocks
...
- add pen_stamp
- add data_insertatlist
2020-06-24 00:37:49 -05:00
Thomas Weber
73309e9fb1
A whole lot of compiler updates
...
- fix handling of missing inputs
- fix handling of NaN numbers
- fix color optimization
- events -> event (still empty)
- add control_wait_until
- add data_deleteoflist
- add looks_cleargraphiceffects
- add looks_costumenumbername
- add motion_setx
- add motion_sety
- add motion_changexby
- add motion_changeyby
- add operator_letter_of
- add operator_mod
- add operator_length
- add argument_reporter_boolean
- fix procedure_call default values
- add sensing_keypressed
- add sensing_mousedown
- add sensing_keyoptions
- add pen_changePenColorParamBy
- add pen_setPenColorParamTo
- fix pen size
- add pen_menu_colorParam
2020-06-24 00:29:23 -05:00
Thomas Weber
c79fa8b96f
Remove list item limit
...
Already ignored by compiled scripts.
2020-06-23 23:02:40 -05:00
Thomas Weber
d8c095271f
Improve some compiler internals
...
- fix procedures being compiled more than once
- remove Cast dependency from execute
2020-06-23 23:00:53 -05:00
Thomas Weber
8ecc1ba1c8
re-enable warp
...
We are about 3-4x slower than forkphorus but still significantly faster than Scratch 3
2020-06-23 19:16:06 -05:00
Thomas Weber
417fe21215
Get quicksort to run
...
- add control_stop
- fix control_repeatuntil
- fix control_while
- add data_hidelist
- add data_showlist
- add data_deletealloflist
- add data_addtolist
- add data_replaceitemoflist
- add data_lengthoflist
- add data_itemoflist
- add motion_xposition
- add motion_yposition
- fix procedures_call
2020-06-23 18:57:37 -05:00
Thomas Weber
85d34f03ac
Improve procedure support
...
Supports string arguments
Supports warp
2020-06-22 22:02:28 -05:00
Thomas Weber
b93558f850
Basic procedure support
2020-06-22 21:34:47 -05:00
Thomas Weber
4a4ba718c6
pen, colors, thread state
2020-06-22 19:34:30 -05:00
Thomas Weber
7a3e63d30d
More blocks and fixes
...
- fix startHats executing compiled scripts
Now implemented in compiler:
- control_if_else
- control_create_clone_of
- control_delete_this_clone
- control_create_clone_of_menu
- motion_movesteps
- motion_turnright
- motion_turnleft
- motion_ifonedgebounce
- operator_not
- operator_round
- operator_add
- operator_subtract
- operator_multiply
- operator_divide
- operator_mathop (except tan)
- operator_random
- sensing_mousex
- sensing_mousey
- pen_penDown
- pen_penUp
- pen_setPenSizeTo
- pen_changePenSizeBy
- pen_changePenHueBy
2020-06-22 18:29:30 -05:00
Thomas Weber
d782dca4b9
add control_wait, timers
2020-06-22 17:07:18 -05:00
Thomas Weber
c10a631d2e
get some more simple things to sortof work
2020-06-22 16:55:46 -05:00
Eric Rosenbaum
540d9c676c
Merge pull request #2341 from apple502j/patch-9
...
Clear some stats when disposing runtime
2020-06-22 10:25:41 -04:00
DD Liu
f7ab011c30
Merge pull request #2455 from adroitwhiz/filter-pen-blocks
...
When the stage is selected, hide all pen blocks except "erase all"
2020-06-19 12:47:41 -04:00
adroitwhiz
3478643f44
Revert "Set graphic effect to zero if it's Infinity"
2020-06-18 12:17:57 -04:00
adroitwhiz
62504cecb9
Hide pen blocks from palette on stage
2020-06-16 16:04:52 -04:00
adroitwhiz
5462fe9966
Merge pull request #2442 from adroitwhiz/filter-extension-blocks
...
Support extension block filtering per-target
2020-06-16 16:01:51 -04:00
adroitwhiz
8ca737702f
Merge pull request #2465 from adroitwhiz/say-think-consistency
...
Consistently format text bubbles (this time, like 2.0 does)
2020-06-16 16:00:05 -04:00
Thomas Weber
99c570f459
New compiler/runtime model
...
Use continuations instead of generators
Lots of things taken quite directly from forkphorus/phosphorus
2020-06-14 20:53:09 -05:00
Thomas Weber
d62232d744
Get some more basic things to work at all
...
- add operator_gt
- add operator_lt
- add operator_join
- add sensing_resettimer
- add sensing_touchingobject
- add sensing_timer
- fix casting
2020-06-12 19:18:40 -05:00
Thomas Weber
5d0b150753
Add a lot of new opcodes to the compiler
...
- add operator_and
- add operator_or
- add motion_gotoxy
- add looks_seteffectto
- fix looks_changeeffectby
- add looks_hide
- add looks_show
- add looks_gotofrontback
- add looks_goforwardbackwardlayers
- add looks_setsizeto
- add data_hidevariable
- add data_showvariable
- add control_repeat_until
2020-06-12 17:02:01 -05:00
Thomas Weber
14f4305c85
You can get some very simple scripts to run now
...
- fix running scripts without a hat
- fix monitors
- compile-time types are here
- add option enableCompiler to _pushThread
- add text
- add control_if
- add data_setvariableto
- add data_changevariableby
- add operator_equals
2020-06-12 16:18:05 -05:00
DD Liu
b67ba75d8b
Merge pull request #2437 from apple502j/patch-12
...
Set graphic effect to zero if it's Infinity
2020-06-11 15:57:22 -04:00
Thomas Weber
f95b12dc7e
Lay out more of the compiler groundwork
...
- add CompiledInput, will allow more complex operations later
- add eval.js to handle runtime data & methods
- move compiler executor to own file
- simplify compiler execute, scripts are now responsible for all thread status on their own
- add type annotations for compilers
- add math_angle
- add math_integer
- add math_positive_number
- add data_variable
2020-06-11 01:01:35 -05:00
Thomas Weber
92da52e4fc
This is progress
...
- if compilation errors, fallback to interpreter
- retire compiled threads once done
- add control_repeat
- add math_whole_number
2020-06-09 20:00:17 -05:00
adroitwhiz
9ed587ff5e
add SAY_OR_THINK getter
2020-06-09 13:28:58 -04:00
adroitwhiz
fe6b07acca
Consistently format text bubbles
2020-06-09 13:28:58 -04:00
Thomas Weber
4a93dab4fa
What if we compiled the blocks?
2020-06-08 17:59:23 -05:00
adroitwhiz
61a0739950
add comment on hideFromPalette
2020-06-02 16:29:49 -04:00
adroitwhiz
2373f9483e
Merge pull request #2441 from adroitwhiz/sensing-of-change-clear-cache
...
Reset blocks cache when sensing_of blocks are updated
2020-06-02 11:12:41 -04:00
adroitwhiz
d6e7ede03a
Support extension block filtering per-target
2020-05-28 12:15:22 -04:00
adroitwhiz
3c0ae4ebbf
Reset blocks cache when sensing_of blocks update
2020-05-28 11:24:05 -04:00
apple502j
7b8c2a99c4
Set graphic effect to zero if it's Infinity
2020-05-28 14:11:27 +09:00
apple502j
4bd04e20e2
oops
2020-05-24 09:30:27 +09:00
DD Liu
32f87b3396
Merge pull request #2335 from daikifukumori/fix/tilted-any-trigger
...
WeDo 2.0 isTilted-any function bug fix
2020-05-22 23:31:42 -04:00
Daiki Fukumori
8c83b3a970
Changed to rely on _getTiltAngle() instead of calculating by myself
2020-05-23 09:14:42 +08:00
apple502j
03db30d400
Update sensing_of fields if variable gets renamed
...
Thanks @adroitwhiz and @fsih for some advice!
2020-05-22 19:00:43 +09:00
Chris Willis-Ford
7af161f1a2
Merge pull request #2011 from joker314/fix/random-costume
...
Give all backdrops a more equal chance of being randomly picked
2020-05-19 13:11:38 -07:00
adroitwhiz
05dcbc176f
Remove RenderedTarget.setSay + its test
2020-05-18 01:35:32 -04:00
adroitwhiz
3341489dfd
Remove BlockCached._shadowOps
2020-05-12 15:30:20 -04:00
jokebookservice1
57445a4d49
Merge branch 'develop' into fix/random-costume
2020-05-07 16:11:08 +01:00
apple502j
3e48cd7df6
Reset counter and timer too
2020-04-06 20:21:31 +09:00