diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..354a328 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dataset/ \ No newline at end of file diff --git a/download_datasets.sh b/download_datasets.sh new file mode 100644 index 0000000..e52b68e --- /dev/null +++ b/download_datasets.sh @@ -0,0 +1,12 @@ +#!/bin/bash +mkdir dataset +cd dataset +wget http://images.cocodataset.org/annotations/annotations_trainval2017.zip +unzip annotations_trainval2017.zip +rm annotations_trainval2017.zip + +wget http://images.cocodataset.org/zips/val2017.zip +unzip val2017.zip +rm val2017.zip + +cd .. \ No newline at end of file diff --git a/cursor.svg b/www/cursor.svg similarity index 100% rename from cursor.svg rename to www/cursor.svg diff --git a/index.html b/www/index.html similarity index 100% rename from index.html rename to www/index.html diff --git a/js/effects.js b/www/js/effects.js similarity index 100% rename from js/effects.js rename to www/js/effects.js diff --git a/js/game.js b/www/js/game.js similarity index 92% rename from js/game.js rename to www/js/game.js index 7e1a79e..11e56c6 100644 --- a/js/game.js +++ b/www/js/game.js @@ -4,9 +4,6 @@ import { getPathShapeBetweenPoints } from "./svg.js"; export function init(svgEl, crosshairXEl, crosshairYEl) { let flywheel = new Flywheel(); - // use ?3 and ?4 ?28 etc in query string to determine segments - const segmentCount = window.location.search.substr(1).length ? window.location.search.substr(1) : 4; - // canvas position relative to mouse/screen // TODO: update on resize: svgEl.setAttribute('viewBox', '0 0 ' + window.innerWidth + ' ' + window.innerHeight); diff --git a/js/main.js b/www/js/main.js similarity index 100% rename from js/main.js rename to www/js/main.js diff --git a/js/svg.js b/www/js/svg.js similarity index 100% rename from js/svg.js rename to www/js/svg.js