File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/bundles/robot_minigame Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 3535 "prepare" : " husky" ,
3636 "postinstall" : " patch-package && yarn scripts:build" ,
3737 "scripts" : " node --max-old-space-size=4096 scripts/dist/bin.js" ,
38- "serve" : " http-server --cors=* -c-1 -p 8022 ./build" ,
38+ "serve" : " http-server --cors -c-1 -p 8022 ./build" ,
3939 "template" : " yarn scripts template" ,
4040 "test" : " yarn scripts test" ,
4141 "test:all" : " yarn test && yarn scripts:test" ,
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ const SENSOR_RANGE: number = 15;
247247 * Check if there is an obstacle within a predefined distance from the robot
248248 */
249249export function sense_obstacle ( ) : boolean {
250- return get_distance ( ) > SENSOR_RANGE ;
250+ return get_distance ( ) < SENSOR_RANGE ;
251251}
252252
253253/**
You can’t perform that action at this time.
0 commit comments