Code Sketch
car racing
By: Aditya Pant
0


0




cleari() setAnimationDelay(0) val w = Color(0xF2F5F1) setPenColor(w) setPenThickness(8) setPenColor(blue) savePosHe() setPosition(182, -93) left() setPenColor(yellow) forward(200) right(90) forward(20) left(135) right(45, 70) forward(100) right(85, 100) setPenColor(red) forward(100) left(80) forward(20) right(80) forward(150) right(90, 30) forward(100) right(80, 5) left(10, 1000) left(5, 20) setPenColor(blue) forward(110) left(80, 5) forward(20) right(60, 40) left(45, 20) right(1.011) right(2.05, 3000) right(5, 3000) right(120, 40) right(53, 100) right(3, 3000) setCostume("/media/car-ride/car1.png") scaleCostume(0.3) restorePosHe() visible() setAnimationDelay(1000) repeat(2) { savePosHe() setPosition(182, -93) left() setPenColor(yellow) forward(200) right(90) forward(20) left(135) right(45, 70) forward(100) right(85, 100) setPenColor(red) forward(100) left(80) forward(20) right(80) forward(150) right(90, 30) forward(100) right(80, 5) left(10, 1000) left(5, 20) setPenColor(blue) forward(110) left(80, 5) forward(20) right(60, 40) left(45, 20) right(1.011) right(2.05, 3000) right(5, 3000) right(120, 40) right(53, 100) right(3, 3000) restorePosHe() }





Your Comment:





Login to post a comment