Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'worldTransform')' in this line: 'var pos = event.getLocalPosition(self.parent);' Line Number: 9
User prompt
Fix Bug: 'TypeError: bus.checkCollision is not a function' in this line: 'bus.checkCollision();' Line Number: 71
User prompt
Fix Bug: 'TypeError: bus.checkCollision is not a function' in this line: 'bus.checkCollision();' Line Number: 71
Code edit (1 edits merged)
Please save this source code
User prompt
change the wheel rotation to be slower
Code edit (1 edits merged)
Please save this source code
User prompt
render the wheelbase before the wheel
Code edit (6 edits merged)
Please save this source code
User prompt
display the wheelbase below the steering wheel
Code edit (1 edits merged)
Please save this source code
User prompt
move the wheelbase to the bottom
Code edit (1 edits merged)
Please save this source code
User prompt
add a background
User prompt
scale the wheel by 0.5%
User prompt
scale the bus by 0.75
User prompt
double the buses sizw
User prompt
display a graphic underneath the wheel, that fills the lower half of the screen
User prompt
make the wheel rotate slower by a factor of 0.5
User prompt
make the bus rotate slower than the wheel
User prompt
make the steering wheels rotation be determined by the cursors x position
User prompt
make the bus rotation speed relative to the movement speed
User prompt
change the rotation of the bus to only happen whenever it is also moving
User prompt
make the steering wheels rotation be determined by the cursors x position
User prompt
make the bus collide with the border of the screen
===================================================================
--- original.js
+++ change.js
@@ -47,9 +47,9 @@
self.addChild(background);
var bus = self.addChild(new Bus());
var wheelBaseGraphics = self.createAsset('wheelBase', 'Wheel Base Graphics', 0.5, 1);
wheelBaseGraphics.x = 2048 / 2;
- wheelBaseGraphics.y = 2732 + wheelBaseGraphics.height / 2;
+ wheelBaseGraphics.y = 2732 + wheelBaseGraphics.height / 4;
self.addChild(wheelBaseGraphics);
var steeringWheel = self.addChild(new SteeringWheel());
steeringWheel.x = 2048 / 2;
steeringWheel.y = 2732 - 300 - steeringWheel.height / 2;
Simple Car Steering Wheel. In-Game asset. 2d. Blank background. Svg
bomb Single Game Texture. In-Game asset. 2d. No shadows. flat. detailed
yellow bus stop symbol svg Single Game Texture. In-Game asset. 2d. No shadows. flat. detailed
yellow bus symbol svg. roof. top down. Single Game Texture. In-Game asset. 2d. No shadows. flat. detailed
dark transparent dust particle Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.