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

1 decade ago by tarrent

Hi, I haven't bought Impact yet but I'm planning to have it soon.

I'd like to ask if I can use third party javascript libraries along with Impact?
I was also thinking if I can use my own custom codes inside Impact. I was particularly thinking on adding jquery $.ajax calls to a server. It would look like this:

...({
  gravity: 100,
  font: new ig.Font('media/04b03.font.png'),
  clearColor: '#lb2026',

  init: function() {},

  update: function() {
    // check for something in server
    $.ajax({
      url: 'game/server.php',
      data: {id:gameID, isAlive:true, isGameOver:false},
      success: {}
    });

    // my own codes, variables that isn't defined in the Impact library
    if(gameOver) {
        alert('Game over, player  '+PLAYER_NAME+'!');
    }

    // rest of game update here
  }
}),...

Thanks

1 decade ago by paulh

i believe so (but dot know) and not sure this would work with impact ios.

1 decade ago by tarrent

Quote from paulh
i believe so (but dot know) and not sure this would work with impact ios.


Hmm... so Impact is just tied in with its own codes and environment? :'(

1 decade ago by dominic

Impact plays nice with many other libraries - in fact, I don't know of any library that causes conflicts with Impact. I have used jQuery myself on some games for Ajax stuff.

paulh is referring to the native iOSImpact wrapper, that you can use if you want to release your game in the Apple AppStore. iOSImpact has no support for Ajax requests, but it works just fine when run in the browser (i.e. Mobile Safari).

1 decade ago by tarrent

Thanks for clarifying this dominic :)

The games I plan to create using Impact will be targeted for for iOS and Android devices, using App Store and Chrome Web Store for marketing. My games will need to interact with a game server to get players' data.

I quite an experience as a front/back end web developer but I'm quite a newbie at html5 "mobile" games development. Do you have suggestions on how to get html5 games to communicate with a server when deployed in AppStore?

Advice and tips will be most welcome. Thanks.

Great site BTW, I'm looking forward to have ImpactJS if my company will approve to use it :) I'm also looking at your Tools section
Page 1 of 1
« first « previous next › last »