1 decade ago by AustinP
I am receiving the following error when I try to reload Weltimeister:
The following entity classes were not loaded due to file and class name mismatches: lib/game/entities/critter.js (expected name: EntityCritter)
I assume that its a problem with my file or class names. Here are the tops of the files:
critter.js:
player.js
and main.js
The following entity classes were not loaded due to file and class name mismatches: lib/game/entities/critter.js (expected name: EntityCritter)
I assume that its a problem with my file or class names. Here are the tops of the files:
critter.js:
ig.module( 'game.entities.critter' ) .requires( 'impact.entity', 'plugins.box2d.entity' ) .defines(function(){ ig.EntityCritter = ig.Box2DEntity.extend({ ...
player.js
ig.module( 'game.entities.player' ) .requires( 'impact.entity', 'game.entities.critter' ) .defines(function(){ EntityPlayer = ig.EntityCritter.extend({ ...
and main.js
ig.module( 'game.main' ) .requires( 'impact.game', 'impact.font', 'game.entities.player', 'game.entities.speck', 'game.entities.critter', 'game.levels.thepond', 'plugins.box2d.game', 'plugins.box2d.debug', 'impact.debug.debug' ) .defines(function(){ MyGame = ig.Box2DGame.extend({