updated StartScene into Animation

This commit is contained in:
adeliptr 2025-05-01 16:26:32 +09:00
parent 73ff8709ed
commit 29ace4909f
20 changed files with 9 additions and 12 deletions

View File

@ -1,20 +1,17 @@
import { GameScene } from './GameScene.js';
import { startPageImage } from './sketch.js';
import { startPageAni } from './sketch.js';
export function StartScene() {
this.enter = function() {
select('#controlPanel').hide();
const self = this;
select('#upperContainer').hide();
select('#menuButton').hide();
const startButton = select('#startButton');
startButton.show();
startButton.mousePressed(() => {
this.sceneManager.showScene(GameScene);
});
select('#startButton').show();
}
this.draw = function() {
console.log(`StartScene width: ${width} and length: ${height}`)
image(startPageImage, 0, 0, width, height);
clear();
let ratio = width / 1440;
animation(startPageAni, width / 2, height / 2, 0, ratio, ratio);
}
}

BIN
assets/.DS_Store vendored

Binary file not shown.

BIN
assets/catsLabel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/cheese.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

BIN
assets/cheeseLabel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
assets/chef_cat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 KiB

BIN
assets/gamebg3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
assets/ice_cat_ani.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
assets/ice_cat_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 KiB

BIN
assets/petCage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

BIN
assets/single_yarn_cat.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB

BIN
assets/sleepy_cat_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 KiB

BIN
assets/start_page_ani.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB