mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 23:12:24 -05:00
tilt to speed
This commit is contained in:
parent
e209ec3240
commit
e4d9f9cdff
1 changed files with 9 additions and 9 deletions
|
@ -85,11 +85,11 @@ class Scratch3GoForceBlocks {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
opcode: 'whenTiltCompare',
|
opcode: 'whenAngularSpeedCompare',
|
||||||
text: formatMessage({
|
text: formatMessage({
|
||||||
id: 'goforce.whenTitleCompare',
|
id: 'goforce.whenAngularSpeedCompare',
|
||||||
default: 'when tilt [DIRECTION] [COMPARE] [VALUE] rad/s',
|
default: 'when angular speed [DIRECTION] [COMPARE] [VALUE] rad/s',
|
||||||
description: 'when the value measured by the acceleration sensor is compared to some value'
|
description: 'when the value measured by the gyroscope sensor is compared to some value'
|
||||||
}),
|
}),
|
||||||
blockType: BlockType.HAT,
|
blockType: BlockType.HAT,
|
||||||
arguments: {
|
arguments: {
|
||||||
|
@ -146,10 +146,10 @@ class Scratch3GoForceBlocks {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
opcode: 'getTilt',
|
opcode: 'getAngularSpeed',
|
||||||
text: formatMessage({
|
text: formatMessage({
|
||||||
id: 'goforce.getTitle',
|
id: 'goforce.getAngularSpeed',
|
||||||
default: 'tilt [DIRECTION]',
|
default: 'angular speed [DIRECTION]',
|
||||||
description: 'gets tilt'
|
description: 'gets tilt'
|
||||||
}),
|
}),
|
||||||
blockType: BlockType.REPORTER,
|
blockType: BlockType.REPORTER,
|
||||||
|
@ -181,7 +181,7 @@ class Scratch3GoForceBlocks {
|
||||||
whenAccelerationCompare () {
|
whenAccelerationCompare () {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
whenTiltCompare () {
|
whenAngularSpeedCompare () {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
whenForceCompare () {
|
whenForceCompare () {
|
||||||
|
@ -190,7 +190,7 @@ class Scratch3GoForceBlocks {
|
||||||
getAcceleration () {
|
getAcceleration () {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
getTilt () {
|
getAngularSpeed () {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
getForce () {
|
getForce () {
|
||||||
|
|
Loading…
Reference in a new issue