mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
44 lines
1.0 KiB
HTML
44 lines
1.0 KiB
HTML
<html>
|
|
<head>
|
|
<script src="RobloxHybrid.js"></script>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
function showShare()
|
|
{
|
|
Roblox.Hybrid.Social.presentShareDialog(
|
|
"My nice roblox game",
|
|
"http://www.watrbx.wtf/Tiny-Tanks-ALPHA-place?id=204990346",
|
|
"http://images.watrbx.wtf/f76c76889f4b167ca1f27edc27eb8146.png",
|
|
null
|
|
);
|
|
}
|
|
|
|
function playGame()
|
|
{
|
|
Roblox.Hybrid.Game.startWithPlaceID("204990346", function() {
|
|
Roblox.Hybrid.Dialogs.alert("Thanks for playing!");
|
|
});
|
|
}
|
|
|
|
function trySupports()
|
|
{
|
|
Roblox.Hybrid.Social.supports("presentShareDialog", function(result) {
|
|
alert("Supports: " + result);
|
|
});
|
|
}
|
|
</script>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<input value="Show" type="button" onclick="showShare()">
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<input id="myButton" value="Play game" type="button" onclick="playGame()">
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<input id="myButton" value="Supports" type="button" onclick="trySupports()">
|
|
</body>
|
|
</html> |