diff --git a/src/main.cpp b/src/main.cpp index 9ff5888..5b9092b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -274,8 +274,8 @@ void spawnWagon(){ //Force start from end of strip - //side_startpos=NUMPIXELS+_randomlength; //start at end of strip - //side_multi=-1; //start in backward direction + side_startpos=NUMPIXELS+_randomlength; //start at end of strip + side_multi=-1; //start in backward direction //Wagon tmpr = Wagon(maxid++,NUMPIXELS,&strip, height, side_startpos, _randomlength, side_multi*random(map(_randomlength,3,30,0,40)/10.0, map(_randomlength,3,30, 5,60))/10.0 , 0 , random(3.0,7.0) , Wheel((uint8_t)random(0,255))); //spawn new wagon Wagon tmpr = Wagon(maxid++,NUMPIXELS,&strip, height, side_startpos, _randomlength, side_multi*random(map(_randomlength,3,30,30,100)/10.0, map(_randomlength,3,30, 5,60))/10.0 , 0 , 1.8 , Wheel((uint8_t)random(0,255))); //spawn new wagon