Advertisement
Guest User

TB Mini Game part 1

a guest
Oct 18th, 2016
2,485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ;Variable that checks the minigame is over
  2. [eval exp="f.endMinigame = 'false' "]
  3.  
  4.  
  5. ;Read in external JavaScript File
  6. ;There are no restrictions on how the js will work.
  7. ;The JS file should be in data/others folder
  8. [loadjs storage="minigame/phaser.min.js" ]
  9.  
  10. [html]
  11.  
  12. <div class="game" id="game"></div>
  13.  
  14. <style>
  15. canvas{
  16. transform: translate(13%, 3.5%);
  17. }
  18. .game{
  19. position:fixed;
  20. width:100%;
  21. height:100%;
  22. background-color:#333;
  23. }
  24. </style>
  25.  
  26. [endhtml]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement