empty-space.js 380 B

12345678910111213141516171819
  1. stages.push({
  2. id: "empty-space",
  3. setup: () => {
  4. getSet('starfield').setup();
  5. starMotion.velocity.x = 0.05;
  6. starMotion.velocity.y = 0.05;
  7. },
  8. update: (delta) => {
  9. getSet('starfield').update(delta);
  10. },
  11. draw: (context, delta) => {
  12. getSet('starfield').draw(context, delta);
  13. atlas.drawCentered(context, userData.sprite, { x: 0, y: 0 });
  14. },
  15. cleanup: () => {
  16. },
  17. });