diff --git a/changelog.txt b/changelog.txt index fb933ec5..5e657899 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,8 @@ About: A p5.js tropical cyclone simulation game +v0.4.12 (2023-08-06): + * Improved the "yellow dots" track prediction by making it an actual cone + > Still fairly rudimentary v0.4.11 (2023-07-09): * Scale color schemes changed to use a global setting rather than individually per sub-basin scale for more consistent color experience > Hotkey: "c" diff --git a/constants.js b/constants.js index 35dc1f59..e67394e1 100644 --- a/constants.js +++ b/constants.js @@ -1,5 +1,5 @@ const TITLE = "Cyclone Simulator"; -const VERSION_NUMBER = "0.4.11"; +const VERSION_NUMBER = "0.4.12"; const SAVE_FORMAT = 7; // Format #7 in use starting in v0.4 const EARLIEST_COMPATIBLE_FORMAT = 0; diff --git a/sketch.js b/sketch.js index dea0d4f8..24e6f9aa 100644 --- a/sketch.js +++ b/sketch.js @@ -67,8 +67,9 @@ function setup(){ stormIcons = createBuffer(); stormIcons.strokeWeight(3); forecastTracks = createBuffer(); - forecastTracks.strokeWeight(3); + forecastTracks.strokeWeight(2); forecastTracks.stroke(240,240,0); + forecastTracks.noFill(); landBuffer = createImage(fullW,fullH); landBuffer.loadPixels(); // landBuffer.noStroke(); diff --git a/storm.js b/storm.js index 867711a7..063ee4ac 100644 --- a/storm.js +++ b/storm.js @@ -305,10 +305,19 @@ class Storm{ } if(selectedStorm===this && this.basin.viewingPresent() && this.current){ forecastTracks.clear(); - let p = this.current.trackForecast/* .points */; - for(let n=0;n{ + const n = hour / ADVISORY_TICKS - 1; + forecastTracks.circle(p[n].x, p[n].y, hour * 0.7); + }; + coneCircle(12); + coneCircle(24); + coneCircle(36); + coneCircle(48); + coneCircle(60); + coneCircle(72); + coneCircle(96); + coneCircle(120); } } }