intro.ddh 661 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # dark dimension intro
  2. (class world_intro dd_world
  3. (group
  4. # tracking timing
  5. (def float counter)
  6. (def int positive)
  7. (def int delay)
  8. # dark dimension logo
  9. (def dd_meshColour logo)
  10. (def dd_sound sound)
  11. (def int soundPlayed)
  12. (def float scale)
  13. (def dd_string3d font)
  14. # constractor
  15. (function void create (group))
  16. (function void onload (group))
  17. (function void resize (group))
  18. # update - update animations
  19. (function void update (group))
  20. # draw
  21. # zoom-out so the world is visible
  22. # rotate the world
  23. # draw the cube
  24. (function void draw (group))
  25. (function void key_input (group char key))
  26. (function void clean (group))
  27. )
  28. ) # main world