fork download
  1. <html>
  2. <head>
  3. <title>Ice Slider</title>
  4. </head>
  5. <body onLoad = "loadImages()">
  6. <canvas width = "400" height = "400">Your browser does not support canvas</canvas>
  7.  
  8. <script type = "type/javascript">
  9.  
  10. //types
  11.  
  12. var BLOCKTYPE =
  13. {
  14. ICE : "ice",
  15. ROCK : "rock"
  16. };
  17.  
  18.  
  19.  
  20.  
  21. //functions
  22.  
  23. function loadImages()
  24. {
  25. images["ice"] =new Image();
  26. images["rock"] = new Image();
  27.  
  28. images["ice"].src = "ice.png";
  29. images["rock"].src - "rock.png";
  30. }
  31.  
  32.  
  33. //globals
  34.  
  35. var images = {};
  36.  
  37.  
  38. //game
  39.  
  40.  
  41.  
  42.  
  43. </script>
  44.  
  45.  
  46.  
  47. </body>
  48. </html>
Runtime error #stdin #stdout 0.37s 381888KB
stdin
Standard input is empty
stdout
Standard output is empty