@@ -23,7 +23,7 @@ export default function (Generator) {
23
23
Generator . gdxfor_whenForcePushedOrPulled = function ( block ) {
24
24
block . isStatement = true ;
25
25
const push_pull = Generator . valueToCode ( block , 'PUSH_PULL' , Generator . ORDER_NONE ) || null ;
26
- return `${ Generator . spriteName ( ) } .when(:gdx_for_push_pull , ${ push_pull } ) do\n` ;
26
+ return `${ Generator . spriteName ( ) } .when(:gdx_force_sensor , ${ push_pull } ) do\n` ;
27
27
} ;
28
28
29
29
Generator . gdxfor_getForce = function ( ) {
@@ -38,13 +38,13 @@ export default function (Generator) {
38
38
Generator . gdxfor_whenTilted = function ( block ) {
39
39
block . isStatement = true ;
40
40
const tilt = Generator . valueToCode ( block , 'TILT' , Generator . ORDER_NONE ) || null ;
41
- return `${ Generator . spriteName ( ) } .when(:gdx_for_titld , ${ tilt } ) do\n` ;
41
+ return `${ Generator . spriteName ( ) } .when(:gdx_for_tilted , ${ tilt } ) do\n` ;
42
42
} ;
43
43
44
44
45
45
Generator . gdxfor_isTilted = function ( block ) {
46
46
const tilt = Generator . valueToCode ( block , 'TILT' , Generator . ORDER_NONE ) || null ;
47
- return [ `gdx_for_tiled ${ tilt } ? ` , Generator . ORDER_ATOMIC ] ;
47
+ return [ `gdx_for_tilted?( ${ tilt } ) ` , Generator . ORDER_ATOMIC ] ;
48
48
} ;
49
49
50
50
Generator . gdxfor_menu_tiltOptions = function ( block ) {
@@ -54,7 +54,7 @@ export default function (Generator) {
54
54
55
55
Generator . gdxfor_getTilt = function ( block ) {
56
56
const tilt = Generator . valueToCode ( block , 'TILT' , Generator . ORDER_NONE ) || null ;
57
- return [ `gdx_for_tile_angle ${ tilt } ? ` , Generator . ORDER_ATOMIC ] ;
57
+ return [ `gdx_for_tilt_angle( ${ tilt } ) ` , Generator . ORDER_ATOMIC ] ;
58
58
} ;
59
59
60
60
Generator . gdxfor_menu_axisOptions = function ( block ) {
@@ -64,12 +64,12 @@ export default function (Generator) {
64
64
65
65
Generator . gdxfor_getSpinSpeed = function ( block ) {
66
66
const direction = Generator . valueToCode ( block , 'DIRECTION' , Generator . ORDER_NONE ) || null ;
67
- return [ `gdx_for_spein_speed ${ direction } ? ` , Generator . ORDER_ATOMIC ] ;
67
+ return [ `gdx_for_spin_speed( ${ direction } ) ` , Generator . ORDER_ATOMIC ] ;
68
68
} ;
69
69
70
70
Generator . gdxfor_getAcceleration = function ( block ) {
71
71
const direction = Generator . valueToCode ( block , 'DIRECTION' , Generator . ORDER_NONE ) || null ;
72
- return [ `gdx_for_acceleration ${ direction } ? ` , Generator . ORDER_ATOMIC ] ;
72
+ return [ `gdx_for_acceleration( ${ direction } ) ` , Generator . ORDER_ATOMIC ] ;
73
73
} ;
74
74
75
75
Generator . gdxfor_isFreeFalling = function ( ) {
0 commit comments