/*
"driving.js" is a simple driving simulator written to introduce students to
the basics of game programming.
Author: Bob Jones & Raven Lord
Date: October 10th 2016
Usage: This script is invoked by loading "driving.html" in a browser.
*/
// Game Parameters
/* Note that ANIMDELTA should be a factor of BLOCKSIZE (1 for per-pixel
animation, higher for performance, BLOCKSIZE for charm) */
const BLOCKSIZE = 20; // Most dimensions are multiples of this
const ANIMDELTA = 20; // Should be a factor of BLOCKSIZE (read above)
const DIFFICULTYPERIOD = 1000; // Period between difficulty increases in ms