reorganize files
This commit is contained in:
parent
d8ad66f6a9
commit
1f19216529
BIN
assets/.DS_Store
vendored
BIN
assets/.DS_Store
vendored
Binary file not shown.
BIN
assets/cats_vs_mice.png
Normal file
BIN
assets/cats_vs_mice.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 294 KiB |
|
@ -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
BIN
src/.DS_Store
vendored
Normal file
Binary file not shown.
|
@ -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 = {
|
|
@ -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 = {
|
|
@ -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) {
|
|
@ -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) {
|
|
@ -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');
|
|
@ -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
|
|
@ -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');
|
|
@ -1,4 +1,4 @@
|
|||
import { startPageAni } from './sketch.js';
|
||||
import { startPageAni } from '../../sketch.js';
|
||||
|
||||
export function StartScene() {
|
||||
this.enter = function() {
|
Loading…
Reference in New Issue
Block a user