This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.onclick = function(){ | |
kk(); | |
} | |
function kk(){ | |
var e = new Event("keydown"); | |
e.key="A"; // just enter the char you want to send | |
e.keyCode= 38; | |
e.which=e.keyCode; | |
document.dispatchEvent(e); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bt.onclick = function(){ | |
kd() | |
} | |
function kd(e){ | |
var ev = new Event('keydown'); | |
ev.keyCode = 38; | |
document.dispatchEvent(ev) | |
var vv = new Event("keyup"); | |
vv.keyCode = 38; | |
document.dispatchEvent(vv) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="crafty.js" ></script> | |
<script src="asset.js"></script> | |
<link rel="stylesheet" href="assets/w3.css"> | |
<style> | |
#cr-stage{ | |
position: relative; | |
width: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
burung() | |
function burung(){ | |
var terbang = true; | |
var kepak = 0; | |
mulai(); | |
function mulai(){ | |
if(terbang == true){ | |
kepak +=1; | |
if(kepak >= 10){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"android": { | |
"debug": { | |
"keystore": "../android.keystore", | |
"storePassword": "android", | |
"alias": "mykey1", | |
"password" : "password", | |
"keystoreType": "" | |
}, | |
"release": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="crafty.js"></script> | |
</head> | |
<body> | |
<div > | |
<div id="cr-stage"></div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version='1.0' encoding='utf-8'?> | |
<widget id="com.malik.test2" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0"> | |
<name>test2</name> | |
<description> | |
let game | |
</description> | |
<author email="[email protected]" href="com.malik.kurosaki"> | |
malik kurosi team | |
</author> | |
<content src="index.html" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var admobid = { // for Android | |
banner: 'ca-app-pub-2622751365523301/1375879208', | |
interstitial: 'ca-app-pub-2622751365523301/8521556264', | |
rewardvideo: 'ca-app-pub-2622751365523301/9071370543', | |
}; | |
function initApp() { | |
AdMob.createBanner( { | |
adId: admobid.banner, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ijinTestAds = true; |