Cats-vs-Mice/StartScene.js
2025-05-01 16:26:32 +09:00

17 lines
420 B
JavaScript

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