The web design and pages for my personal website.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.8 KiB

  1. {{ define "title" }}Creative JavaScripts{{ end }}
  2. {{ define "content" }}
  3. <h1>Creative JavaScripts</h1>
  4. This page contains links to my creative JavaScript pages. This page is <b>not</b>
  5. intended to provide cut-and-paste JavaScript code for your own personal use.
  6. In many cases, the scripts here were specially programmed for my own purposes
  7. and are not easily reconfigurable to suit other needs. In other words, this page
  8. is to show off my JavaScript skills, not to provide code snippits to enable
  9. less-than-savvy Internet users the ammunition needed to clone my scripts.
  10. <h2>Text-Based RPG Game</h2>
  11. This is a classic-style text-based roleplaying game programmed entirely in
  12. JavaScript. It's known to work on Internet Explorer and Firefox. This script
  13. uses key capturing and updates the page with all of the (relevant) keys you type
  14. in. It even supports the Backspace key to delete the last character you typed.
  15. I recommend opening this in a new window so that your Backspace key won't be
  16. mistaken for the "Back" button on your browser.<p>
  17. I created this script as part of my web design course in college. The assignment
  18. was to "find or create a JavaScript to impress," and since it was obvious that
  19. all the noobs would just go to cut-and-paste JavaScript sites, the best way to
  20. come up with something totally original was to make a game out of it. And not the
  21. lame kind of game like Tetris and Tic-Tac-Toe, which get reprogrammed far too
  22. often in the JavaScript world, but a roleplaying game that requires a lot of
  23. programming and attention to detail.<p>
  24. &#0164; <a href="creativity/javascript/jsrpg.html" onClick="return openWin(this)">
  25. View this script in action</a><p>
  26. {{ end }}
  27. {% block scripts %}
  28. <script type="text/javascript">
  29. function openWin(obj) {
  30. (obj.href);
  31. return false;
  32. }
  33. </script>
  34. {% endblock %}