1 decade ago by fulvio
I'm using iOSImpact, which is working great.
Except for when I use the following code inside my
I get the following error(s)
Any help would be greatly appreciated as this is an important bit of functionality for my game.
Also if I wanted to only include the following plugin when
I only want this to be included for mobile:
Thanks in advance.
Except for when I use the following code inside my
main.js
:// Calculate health remaining. ig.system.context.fillStyle = "rgb(105, 3, 7)"; ig.system.context.beginPath(); ig.system.context.rect(meterX, 52, healthMeter, meterHeight); ig.system.context.closePath(); ig.system.context.fill();
I get the following error(s)
TypeError: 'undefined' is not a function (evaluating 'ig.system.context.beginPath()') at line 324 in lib/game/main.js
Any help would be greatly appreciated as this is an important bit of functionality for my game.
Also if I wanted to only include the following plugin when
ig.ua.mobile
is true
how would I go about that considering it sits inside the requires()
block of main.js
?I only want this to be included for mobile:
'plugins.ios.ios'
Thanks in advance.