Review specific scripts that are candidates for editing.
Make sure support for student edit is in place
Keywords
Based a relatively quick appraisal of Aquatic Energy and Bee Dissertation, this should cover most the necessary keywords.
Pragma
[ ] Show list of available pragmas
[ ] BLUEPRINT
[ ] TAG
[ ] PROGRAM
[ ] Show input field for value (e.g. bpName, PROGRAM type, etc.)
useFeature
[ ] List Feature choices
addProp
[ ] input field for defining a name
[ ] field type selector
[ ] input field for defining initial value
prop
featProp
featCall
onEvent
every
when
ifExpr
Secondary but necessary?
exprPush
propPush / propPop
featPropPush / featPropPop
// Comment fields
[ ] input field for entering a long comment
Quirks
A list of issues that came up while trying to put together the keywordTest.gemprj project:
“” should be removed before placing in gemprj file
Physics.xxx references for featProp and featCall need to be spaced not dotted
Need to add Costume or we’ll get skin error
every does not run in a # PROGRAM EVENT pragma — it needs to run in # PROGRAM UPDATE
onEvent cannot be empty or you get a iterableToArray.js:2 Uncaught (in promise) TypeError: undefined is not iterable (cannot read property Symbol (Symbol.iterator)) error
ifExpr agent prop references need to use agent.getProp('xxx').value
the ifExpr actually needs to use an else structure, because by the time we reach the second if, myString is already set to goodbye by the previous if.
featPropPush object reference needs to separate Physics from radius
Need to useFeature Touches if we want to use when…touches
featCall parameters in the when should be <targetAgent>.Physics <method>
Two Tier Goals
Keywords
Based a relatively quick appraisal of Aquatic Energy and Bee Dissertation, this should cover most the necessary keywords.
Pragma
useFeature
addProp
prop
featProp
featCall
onEvent
every
when
ifExpr
Secondary but necessary?
exprPush
propPush / propPop
featPropPush / featPropPop
//
Comment fieldsQuirks
A list of issues that came up while trying to put together the keywordTest.gemprj project:
“”
should be removed before placing in gemprj filePhysics.xxx
references for featProp and featCall need to be spaced not dottedCostume
or we’ll get skin errorevery
does not run in a# PROGRAM EVENT
pragma — it needs to run in# PROGRAM UPDATE
onEvent
cannot be empty or you get aiterableToArray.js:2 Uncaught (in promise) TypeError: undefined is not iterable (cannot read property Symbol (Symbol.iterator)) error
ifExpr
agent prop references need to useagent.getProp('xxx').value
ifExpr
actually needs to use anelse
structure, because by the time we reach the second if,myString
is already set togoodbye
by the previous if.featPropPush
object reference needs to separatePhysics
fromradius
useFeature Touches
if we want to usewhen…touches
featCall
parameters in thewhen
should be<targetAgent>.Physics <method>