Cats-vs-Mice/src/scenes/StartScene.js
2025-05-11 00:49:29 +09:00

18 lines
465 B
JavaScript

import { startPageAni } from '../../sketch.js';
export function StartScene() {
this.enter = function() {
const self = this;
select('#upperContainer').hide();
select('#endingOverlay').hide();
select('#menuButton').hide();
select('#startButton').show();
}
this.draw = function() {
clear();
let ratio = width / 1440;
animation(startPageAni, width / 2, height / 2, 0, ratio, ratio);
}
}