Browse Source

Restructure for server

master
Ruben van de Ven 1 year ago
parent
commit
9da0806c38
  1. 1
      .gitignore
  2. 12
      download_datasets.sh
  3. 0
      www/cursor.svg
  4. 0
      www/index.html
  5. 0
      www/js/effects.js
  6. 3
      www/js/game.js
  7. 0
      www/js/main.js
  8. 0
      www/js/svg.js

1
.gitignore vendored

@ -0,0 +1 @@ @@ -0,0 +1 @@
dataset/

12
download_datasets.sh

@ -0,0 +1,12 @@ @@ -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 ..

0
cursor.svg → www/cursor.svg

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

0
index.html → www/index.html

0
js/effects.js → www/js/effects.js vendored

3
js/game.js → www/js/game.js

@ -4,9 +4,6 @@ import { getPathShapeBetweenPoints } from "./svg.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);

0
js/main.js → www/js/main.js

0
js/svg.js → www/js/svg.js

Loading…
Cancel
Save