I'd like to put an image ad/link in the free version of my game which links to the paid version of my game. Also I'd like to add a link which goes to my website & twitter account. Is there a way to create external link currently? If not, can I accomplish this by calling some c-code from within JS??
Is there a way to make it so ejecta is defined when running the index.html? My current development is done in the browser so having it break when this menu shows up isn't good.
Thanks again Dom.
1 decade ago
by dominic
if( window.ejecta ) {
// do stuff that only works in ejecta
}
This worked perfect. From the API I was a little worried that the text it took was going to be the text that was drawn to the screen like in button.js plugin. Instead it worked perfectly.
One thing i might add to the documentation, but isn't necessarily specific to Ejecta is this code which opens the mail app and types in your subject, cc, and message body.
var mailLink = "mailto:foo@example.com?cc=bar@example.com&subject=Greetings%20from%20Cupertino!&body=Wish%20you%20were%20here!"
ejecta.openURL( mailLink, 'Email the developer? );
Source
Page 1 of 1
« first
« previous
next ›
last »