dadad


SUBMITTED BY: Guest

DATE: Oct. 27, 2016, 1:57 a.m.

FORMAT: Text only

SIZE: 663 Bytes

HITS: 762

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

comments powered by Disqus