Questions tagged [impactjs]

ImpactJS is a JavaScript Game Engine to develop HTML5 Games for desktop and mobile browsers.

ImpactJS is a JavaScript Canvas 2D Game Engine created by Dominic Szablewski that allows you to develop HTML5 Games for desktop and mobile browsers.

ImpactJS comes built in with it's own level editor: Weltmeister

More info can be found on the Official ImpactJS Website.

47 questions
0
votes
1 answer

CocoonJS displays blank screen

I'm using the ImpactJS framework for work and I've tried what most of people did to get their games to work but with no luck, most recently I tried following the instructions from this thread: http://impactjs.com/forums/help/cocoonjs/page/1. It…
user2728839
0
votes
1 answer

resetting timer in impactjs

I am trying to reset my timer after a certain event is triggered. Currently I have my in-game timer which checks for that event every 4 seconds in my update as follows: timer: new ig.Timer(), update:function(){ …
Htlcs
  • 515
  • 1
  • 9
  • 25
0
votes
4 answers

get index of object in array in object in array

working with Impactjs, a game engine, here and levels have this very strange setup: [ { "entities": [ {"type":"type1","x":100,"y":100,"settings":{"directsTo":"-5"}}, …
dlkulp
  • 1,849
  • 4
  • 26
  • 42
0
votes
2 answers

localStorage for different systems

I had a question on how localStorage works. I read the documentation and I was successfully able to implement it in our web game. We are using ImpactJS engine and using this plugin -> https://github.com/jsantell/ImpactStorage for the our purposes.…
Htlcs
  • 515
  • 1
  • 9
  • 25
0
votes
0 answers

Impactjs - image totatly crashed

I'm currently developing my first game in impactjs ( canvas & html5 ), user just send me this picture, it seems that one of the pictures shows really bad :-) Is this a canvas specific problem/ or just webbrowser specific ( tested on chrome ) ? Any…
kuba
  • 999
  • 1
  • 15
  • 38
0
votes
1 answer

cannot increment a localStorage value

I am trying to increment my localStorage value every time a condition in if statement is true but it seems I am not able to do it right. Tried everything possible. Here is my code that does the check and increments the value. for(var j = 0; j <…
Htlcs
  • 515
  • 1
  • 9
  • 25
0
votes
1 answer

how to implement javascript localStorage

I want to implement localStorage for one of my values in my Achievements class. So basically what this class does is take player data from backend database and if a player clears certain tasks an achievement gets unlocked. For now I have just 1…
Htlcs
  • 515
  • 1
  • 9
  • 25
0
votes
1 answer

JavaScript 2d array returns wrong data

I have a 2d array that represents the collision and foreground layers of my game map. I'm trying to get the proper tile based on the player's position to read the tile's number. However when I call the particular tile from the array, it either…
Slayter
  • 1,152
  • 1
  • 13
  • 25
0
votes
1 answer

Deploying webapp coded in impact javascript game engine locally, results in CORS on chrome

I am trying to make a webapp (developed with impact js game engine), able to run locally without the need of a localhost (using file:///C:/...) and I am required to make it work on chrome. The main issue that it does not work on chrome is that…
0
votes
2 answers

Fire bullet in the direction of travel

I have trouble trying to work out how to shoot a bullet in 1 of 8 directions. The player can only point in compass directions 0, 45, 90, 135, 180, etc. So what I need is a formula that I can use in spawnEntity to send the bullet in the direction the…
griegs
  • 22,002
  • 28
  • 113
  • 201
0
votes
1 answer

Level won't load in impactjs

I having trouble loading a level using ImpactJs. When I try to load to a level I get the following error in the console: Uncaught Failed to load resource: loader.js:91 ig.Loader.ig.Class.extend._loadCallback loader.js:91 …
Jamie Fearon
  • 2,504
  • 10
  • 43
  • 65
0
votes
1 answer

Spawning a projectile in ImpactJS

Using the example code that came with ImpactJS, I am wondering what {direction:this.lastPressed} means. The code below refers to the player entity, when the 'attack' button is pressed. Is 'direction' a method of some sort? I am guessing from this…
Jon
  • 2,789
  • 10
  • 33
  • 53
0
votes
1 answer

Uncaught TypeError: undefined is not a function when using ig.AnimationSheet

I'm writing a game with impactjs right now and I have been struggling with this problem for awhile. In my player.js file I get a Uncaught TypeError when I try to initialize the animation sheet. The Error is located on the last line. EntityPlayer =…
user2872493
0
votes
1 answer

How to filter collisions in Impact.js version of Box2D

I have a few questions regarding the impact.js implementation of the box2d physics engine. First, can someone explain to me what the best way is for handling particle effects where the particles are not required to have precise physical…
Sledge
  • 985
  • 1
  • 16
  • 36
0
votes
1 answer

ImpactJS - variable values valid until passed to class constructor then become NaN

Sorry for the long post, but i wanted to be as detailed as possible So i'm creating a plugin with a couple custom ig.Class instances. one is a Vector implementation: Vec2 then i have a particle class: Particle = ig.Class.extend({ pos: null, …
Joe
  • 1,286
  • 7
  • 34
  • 51