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.

49 questions
1
vote
0 answers

Font not displaying on canvas

I am using impactjs engine in javascript to draw font ,i have an image of fonts,nd trying to draw it on my canvas,but the font are aint displaying on canvas,where am i going wrong?any help thanx .defines(function(){ EntityTutorial =…
Safwan
  • 171
  • 1
  • 17
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
  • 864
  • 1
  • 13
  • 30
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
  • 610
  • 9
  • 25
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
  • 610
  • 9
  • 25
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…
Peace Makes Plenty
  • 856
  • 10
  • 13
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
  • 545
  • 3
  • 13
  • 26
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
  • 159
  • 1
  • 1
  • 5
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,697
  • 1
  • 19
  • 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
  • 560
  • 4
  • 15
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
  • 557
  • 1
  • 6
  • 17
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,326
  • 7
  • 34
  • 52
0
votes
0 answers

Game character in the browser game appears on Android, but not on iOS

I have a problem with rendering the game on mobile platforms (the game is written on the Impact.js), the problem is only with the iOS actually, the screenshot below shows that the characters are rendered on Android, but not on the…
0
votes
0 answers

Making a bot for impactjs-game

I have a multiplayer 2d shooter game for 2 players made in impactjs and socketio, and I need to make a bot which will replace one of players and make basic actions like finding players, ammos, shooting and hiding if it has no ammos. I decided to try…
0
votes
1 answer

Pact-JS - Get pact verification response

I am using Pact-js with Jest, I am trying to get the response that returns the (real) API consumption from the provider side, the code is the following. describe("Validate pact of identity", () => { it("Validate pact of identity creation", ()…
0
votes
3 answers

Is there a way to convert a game made with ImpactJS to Unity?

I know that is possible export Unity projects to WebGL, but is there a way to use code from a ImpactJS project on Unity?