main.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /************************************************************************
  2. * main.js
  3. ************************************************************************
  4. * Copyright (c) 2021 Pedro Tonini Rosenberg Schneider.
  5. *
  6. * This file is part of Alfabetiza.
  7. *
  8. * Alfabetiza is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * Alfabetiza is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with Alfabetiza. If not, see <https://www.gnu.org/licenses/>.
  20. *************************************************************************/
  21. GameHandler._preload = function()
  22. {
  23. AssetHandler.loadFont("Lato", "/assets/fonts/Lato-Regular.ttf");
  24. }
  25. GameHandler._setup = function()
  26. {
  27. // GameHandler.drawDebugFPS(true);
  28. // GameHandler.drawDebugBufferBounds(true);
  29. textFont(AssetHandler.getP5FontByName("Lato"));
  30. // rg = new RebusGame("Rebus game");
  31. // rg.levelData = REBUS_LEVELS.tutorial;
  32. // GameHandler.addRootObject(rg);
  33. let rls = new RebusLevelSelector("LevelSelector");
  34. GameHandler.addRootObject(rls);
  35. }