Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

10 years ago by FunnyFunk91

Hey I just got impact today and had a look at the examples that came with it and decided to try something myself. As soon as I created my own project, I ran into a road block with creating a player entity. The error I am getting is EntityPlayer is undefined.

ig.module(
  'game.entities.player'
)
.requires(
  'impact.entity'
)
.defines(function() {
 EntityPlayer = ig.Entity.extend({
 });
});

I can't see whats wrong with the syntax. Am I missing something blatantly obvious here?

10 years ago by FunnyFunk91

I solved the problem. I use Webstorm IDE and my code templates have 'use strict'; added in by default and this was causing the EntityPlayer to be undefined
Page 1 of 1
« first « previous next › last »