index.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <style type="text/css">
  2. html,body{
  3. margin: 0;
  4. padding: 0;
  5. }
  6. #adventure-container {
  7. width: 100%;
  8. height: 100%;
  9. z-index: 1;
  10. }
  11. #leaderboard {
  12. position: absolute;
  13. top: 0;
  14. right: 0;
  15. z-index: 10;
  16. padding: 10px;
  17. background-color: rgba(255, 255, 255, 0.5);
  18. }
  19. p {
  20. margin: 0px;
  21. padding: 0px;
  22. }
  23. </style>
  24. <div id="adventure-container">
  25. <canvas></canvas>
  26. </div>
  27. <div id="leaderboard"></div>
  28. <script type="text/javascript" src="namegenerator.js"></script>
  29. <script type="text/javascript" src="hero.js"></script>
  30. <script type="text/javascript" src="coindestination.js"></script>
  31. <script type="text/javascript" src="heartdestination.js"></script>
  32. <script type="text/javascript" src="monsterdestination.js"></script>
  33. <script type="text/javascript" src="shopdestination.js"></script>
  34. <script type="text/javascript" src="adventuregame.js"></script>
  35. <script type="text/javascript">
  36. document.addEventListener("DOMContentLoaded", function(event) {
  37. var adventuregame = new AdventureGame();
  38. adventuregame.create("adventure-container", "leaderboard");
  39. });
  40. </script>