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
1
vote
2 answers

Jquery and Socket.io conflict

I'm trying to use ImpactJS, a JS framework. I want to add socket.io functions. As soon as I add socket.io there is an error Uncaught ReferenceError: sock is not defined jquery-1.7.1.min.js:4 My class where I use soket.io :here (end of the file) My…
damien marchand
  • 855
  • 1
  • 12
  • 27
1
vote
1 answer

ImpactJS and HammerJS mouse input conflicts with one another

I'm building a game using the ImpactJS engine (http://impactjs.com/). The game requires gestures such as drag and swipe. Hence, HammerJS is integrated on the code. In the snippet below, the release event callback is not triggered when the left…
benjtupas
  • 590
  • 6
  • 24
1
vote
1 answer

Limiting access to JavaScript variables

I'm modifying a module for a game that we are developing and it is built with ImpactJS game engine. What we wanted to do is to make the variables private or inaccessible to other classes. For example: this.object.variable = 100; // Not…
benjtupas
  • 590
  • 6
  • 24
1
vote
1 answer

What is the structure of impact.js level objects?

In the impact.js framework, what is the structure of level objects produce by the Weltmeister level editor ? The most information I was able to find on this is the documentation for ig.game.loadlevel, but it is very limited. In particular what is…
1
vote
1 answer

using timedelay function in javascript

I am trying to set my localStorage key values after a certain condition becomes true but wait for 2 seconds before it can update the localStorage key value This is what I am trying to do but it throws an exception and when it tries to set the…
Htlcs
  • 515
  • 1
  • 9
  • 25
1
vote
0 answers

impactjs saving higscore with php and sql

Alright, so me and my buddy is creating a game and a website, he is working on the game, and i am working on the site. The game is built using the ImpactJS engine, and everything works fine and so, but the problem we have ecountered is how we should…
user3383540
  • 99
  • 1
  • 1
  • 4
1
vote
2 answers

Node js - Serving lots of files using Express

I'm writing a 2d game using the impact engine and socket IO. I decided to use express as well for the website itself. Impact requries me to serve about a dozen files (js, css and images) from multiple directories. How can I serve these using…
Petter Thowsen
  • 1,577
  • 1
  • 16
  • 24
1
vote
0 answers

ImpactJS and astar pathfinder

Using this library: https://github.com/hurik/impact-astar-for-entities I can get a path to print, but as soon as I do followPath in my "monster" entity, the sprite disappears?! What could I be doing wrong? update: function() { // Update…
Eric Carmichael
  • 411
  • 3
  • 14
1
vote
2 answers

Disable collision on the fly in Box2D: does not work when entity is already colliding

I'm writing a game with impactjs and i'm using Box2D as physics-engine (Box2DFlash to be specific). So there is a move off the player where he should not collide with the enemys. To achieve this Collision Filtering seems to be the best method. So I…
TN1ck
  • 681
  • 4
  • 10
1
vote
1 answer

User input initials - ImpactJS

So on my end state I want to have the user input their initials. I have setup an array that has all the alphabet, triggers to select a letter and font_draw, but I cant seem but I get an error saying my function is not defined. Any ideas? …
JMP
  • 529
  • 1
  • 6
  • 16
1
vote
1 answer

syntax error being thrown when i use jQuery.ajax to fetch a script

I have the following code: $.ajax({ beforeSend: function () { console.log("fetching script"); }, url: "../../../scripts/review-level-" + ig.game.currentLevel.toString() + ".js", dataType: "script", type: "GET", …
Joe
  • 1,286
  • 7
  • 34
  • 51
0
votes
0 answers

callback function problem with sandbox test user (IAP)

I test in-app purchases on ios with sandbox test user and real test device. Steps: It prompted for an ID/Password (sandbox user). purchase dialog appear with the text that the payment was successful And problem is that sometimes callback function…
Boris
  • 1
0
votes
0 answers

Background audio doesn't resume after interruption event (AVAudioPlayer)

I have problem with AVAudioPlayer in Ejecta (impactjs engine). After any interruption event (incoming call, control center) audio pause but it will not resume when interruption event ended. I have tried several ways to fix it but without result. I…
0
votes
1 answer

Extending oversized image ABOVE tile rather than below? ImpactJS

So I'm currently creating a simple city builder for a school project, we've got the core functionality in place so now we're trying to make things look a little nicer. Since we didn't use an isometric map ( couldn't figure it out with impactjs ), we…
echo
  • 3
  • 3
0
votes
4 answers

How does Impact know whether a device is a desktop, a mobile phone, a tablet, etc (Any Device)?

I am new to HTML 5 and Impact. I am going to start programming in HTML 5, Javascript. I have heard that Impact is one of the best 2D engines for Javascript so I thought about purchasing it and giving it a try. But before I do I want to make certain…
Doug Hauf
  • 2,775
  • 8
  • 38
  • 65