reorganize files

This commit is contained in:
adeliptr 2025-05-11 00:49:29 +09:00
parent d8ad66f6a9
commit 1f19216529
17 changed files with 26 additions and 26 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
assets/.DS_Store vendored

Binary file not shown.

BIN
assets/cats_vs_mice.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

View File

@ -1,5 +1,5 @@
import { StartScene } from './StartScene.js';
import { GameScene } from './GameScene.js';
import { StartScene } from './src/scenes/StartScene.js';
import { GameScene } from './src/scenes/GameScene.js';
export let mgr;
export let startPageAni;

BIN
src/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -1,8 +1,8 @@
import { catAnimation, imageAssets } from '../../sketch.js';
import { gameFrame } from '../constants/Prototype.js';
import { catAnimation, imageAssets } from '../sketch.js';
import { grid, cheeses, activeCats, activeMice, mouseGroup, throwableGroup, gameSprites } from '../GameScene.js';
import { grid, cheeses, activeCats, activeMice, mouseGroup, throwableGroup, gameSprites } from '../scenes/GameScene.js';
import { calculateCell } from '../logic/Helper.js';
import { Yarn, Snowball } from './Throwable.js';
import { calculateCell } from '../Helper.js';
export const throwables = [];
const catAniDesc = {

View File

@ -1,7 +1,7 @@
import { mouseAnimation } from '../../sketch.js';
import { gameFrame } from '../constants/Prototype.js';
import { mouseAnimation } from '../sketch.js';
import { activeMice, mouseGroup, gameSprites } from '../GameScene.js';
import { updateGameProgress } from '../Controller.js';
import { activeMice, mouseGroup, gameSprites } from '../scenes/GameScene.js';
import { updateGameProgress } from '../logic/Controller.js';
import { Snowball } from './Throwable.js';
const mouseAniDesc = {

View File

@ -1,6 +1,6 @@
import { imageAssets } from '../../sketch.js';
import { gameFrame } from '../constants/Prototype.js';
import { imageAssets } from '../sketch.js';
import { activeMice, catGroup, throwableGroup, gameSprites, robotVacuums } from '../GameScene.js';
import { activeMice, catGroup, throwableGroup, gameSprites, robotVacuums } from '../scenes/GameScene.js';
export class RobotVacuum {
constructor(x, y, row) {

View File

@ -1,6 +1,6 @@
import { imageAssets } from '../../sketch.js';
import { gameFrame } from '../constants/Prototype.js';
import { imageAssets } from '../sketch.js';
import { gameSprites } from '../GameScene.js';
import { gameSprites } from '../scenes/GameScene.js';
export class Throwable {
constructor(x, y, point, img, width) {

View File

@ -1,5 +1,5 @@
import { showWinningScreen } from './level/WinLose.js';
import { level1Mice } from './level/Level1.js';
import { level1Mice } from '../level/Level1.js';
import { showWinningScreen } from '../level/WinLose.js';
const cheeseCount = document.getElementById('cheeseCount');
const gameProgress = document.getElementById('gameProgress');

View File

@ -1,4 +1,4 @@
import { gameFrame } from "./constants/Prototype.js";
import { gameFrame } from "../constants/Prototype.js";
/**
* Calculates the grid cell (row and column) corresponding to the given mouse coordinates

View File

@ -1,13 +1,13 @@
import { prototypeFrame, gameFrame } from './constants/Prototype.js';
import { Colors } from './constants/Colors.js';
import { imageAssets, selectedCatType, resetCatType } from './sketch.js';
import { createCat, SleepyCat, throwables } from './classes/Cat.js';
import { spawnMouse } from './classes/Mouse.js';
import { drawRobotVacuums } from './classes/RobotVacuum.js';
import { level1Mice } from './level/Level1.js';
import { showLosingScreen } from './level/WinLose.js';
import { updateCatButtons, updateCheeseCount, restartGameProgress } from './Controller.js';
import { calculateCell, isCellValid } from './Helper.js';
import { imageAssets, selectedCatType, resetCatType } from '../../sketch.js';
import { prototypeFrame, gameFrame } from '../constants/Prototype.js';
import { Colors } from '../constants/Colors.js';
import { createCat, SleepyCat, throwables } from '../classes/Cat.js';
import { spawnMouse } from '../classes/Mouse.js';
import { drawRobotVacuums } from '../classes/RobotVacuum.js';
import { level1Mice } from '../level/Level1.js';
import { showLosingScreen } from '../level/WinLose.js';
import { updateCatButtons, updateCheeseCount, restartGameProgress } from '../logic/Controller.js';
import { calculateCell, isCellValid } from '../logic/Helper.js';
const gameParent = document.getElementById('gameFrame');
const upperContainer = document.getElementById('upperContainer');

View File

@ -1,4 +1,4 @@
import { startPageAni } from './sketch.js';
import { startPageAni } from '../../sketch.js';
export function StartScene() {
this.enter = function() {