From 7dd02fc622d3e327c7687f4b63802b9743a4658f Mon Sep 17 00:00:00 2001 From: Fisch Date: Wed, 7 Aug 2024 22:02:41 +0200 Subject: [PATCH] changes for new setup --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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