1 decade ago
by Jerczu
How can I display ads ( I'm assuming I can because I saw ad libs in the project)?
How (or if) can I read tap coords or swipes?
Any way to allow people to post their achievements to twitter/Facebook?
That is pretty much all the questions.
Thanks a lot.
1 decade ago
by Jerczu
Ok through my investigative techniques I've found a way to post a twitter update with iOS impact.
all you need is this in your main.js code
ios.openURL('twitter://post?message=hello%20world');
This will open your twitter app and post a twitter update saying hello world.
you can pretty much open any app using this
http://wiki.akosma.com/IPhone_URL_Schemes
you can also open a browser if you pass 2 args to ios.openURL
ios.openURL('http://test.com','Confirm message here');
Thanks for the info and for that excellent link.
1 decade ago
by Jerczu
Still some of my prev questions remain unanswered ;)
1 decade ago
by Jerczu
Quote from monkeyArms
Touch coordinates:
http://impactjs.com/forums/code/how-to-use-canvas-touch-for-player-movement-mobile
Cheers monkeyArms. This is just for tap coords. Is there a way to read swipes?
1 decade ago
by dominic
For displaying iAds in your iOSImpact game:
// Create the AdBanner object before calling ig.main.
// Pass 'true' for displaying at the bottom, 'false' for top
ig.adBanner = new native.AdBanner( false );
ig.main( ... );
You can then use
ig.adBanner.show()
and
ig.adBanner.hide()
. Note that the Banner will only show when it is completely loaded. It will not display when there's no Internet connection.
Swipe gesture detection is not yet implemented in iOSImpact. You could either detect it manually in JavaScript or extend the
JS_TouchInput.m
with iOS&
039; #UISwipeGestureRecognizer
stuff.
1 decade ago
by Jerczu
Quote from dominic
For displaying iAds in your iOSImpact game:
// Create the AdBanner object before calling ig.main.
// Pass 'true' for displaying at the bottom, 'false' for top
ig.adBanner = new native.AdBanner( false );
ig.main( ... );
You can then use ig.adBanner.show()
and ig.adBanner.hide()
. Note that the Banner will only show when it is completely loaded. It will not display when there's no Internet connection.
Swipe gesture detection is not yet implemented in iOSImpact. You could either detect it manually in JavaScript or extend the JS_TouchInput.m
with iOS&039; #UISwipeGestureRecognizer
stuff.
Cheers Dominic. Yeah I'm not too sure about messing around with Obj-C libs (my ability to write in this lang <=0) but if it is possible with JS I would appreciate a bit of a nudge on how to do it. Do I just set up event listeners "touchstart" "touchmove" and "touchend"?
Page 1 of 1
« first
« previous
next ›
last »