{"id":18251668,"url":"https://github.com/32teeth/cordova_game_framework","last_synced_at":"2025-04-08T20:46:39.328Z","repository":{"id":147777250,"uuid":"43776873","full_name":"32teeth/cordova_game_framework","owner":"32teeth","description":null,"archived":false,"fork":false,"pushed_at":"2015-12-08T18:56:05.000Z","size":982,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-14T16:39:28.732Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/32teeth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-06T20:33:22.000Z","updated_at":"2016-04-07T18:11:02.000Z","dependencies_parsed_at":"2023-03-27T21:04:43.499Z","dependency_job_id":null,"html_url":"https://github.com/32teeth/cordova_game_framework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/32teeth%2Fcordova_game_framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/32teeth%2Fcordova_game_framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/32teeth%2Fcordova_game_framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/32teeth%2Fcordova_game_framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/32teeth","download_url":"https://codeload.github.com/32teeth/cordova_game_framework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247927002,"owners_count":21019503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T09:48:12.139Z","updated_at":"2025-04-08T20:46:39.309Z","avatar_url":"https://github.com/32teeth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#games builder\n----\n\nSo you want to build a html5/canvas based app in [cordova](http://cordova.apache.org/)\n\n\nInstall cordova (if not installed)\n\n \n```\n[sudo] npm install -g cordova\n```\n\nnavigate to the directory where you want to create your app\n\n```\ncd [directory]\n```\n\nCreate an app\n\n```\ncordova create [directory] [reverse domain-style identifier] [application display name]\ncd [directory]\n```\n\nAdd some plugins\n\n```\ncordova plugin add cordova-plugin-device\ncordova plugin add cordova-plugin-console\ncordova plugin add cordova-plugin-splashscreen\ncordova plugin add cordova-plugin-whitelist\ncordova plugin add cordova-plugin-game-center\ncordova plugin add cordova-plugin-admobpro\ncordova plugin add org.pushandplay.cordova.apprate\n```\n\nMore plugins\n\n```\ncordova plugin add cordova-plugin-network-information\ncordova plugin add cordova-plugin-battery-status\ncordova plugin add cordova-plugin-device-motion\ncordova plugin add cordova-plugin-device-orientation\ncordova plugin add cordova-plugin-geolocation\ncordova plugin add cordova-plugin-camera\ncordova plugin add cordova-plugin-media-capture\ncordova plugin add cordova-plugin-media\ncordova plugin add cordova-plugin-camera\ncordova plugin add phonegap-plugin-barcodescanner\ncordova plugin add cordova-plugin-calendar\ncordova plugin add phonegap-plugin-push\ncordova plugin add cordova-plugin-dialogs\ncordova plugin add cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID=\"YOUR_ANDROID_API_KEY_IS_HERE\" --variable API_KEY_FOR_IOS=\"YOUR_IOS_API_KEY_IS_HERE\"\n```\n\niOS9 long press fix (optional)\n\n*this prevents the copy/select bubble from coming up in games where the user needs to press and hold)*\n\n```\ncordova-plugin-ios-longpress-fix\n```\n\nDevice motion plugin (optional)\n\n```\ncordova plugin add org.apache.cordova.device-motion\n```\n\nAdd some platforms\n\n```\ncordova platform add ios\ncordova platform add android\ncordova platform add amazon-fireos\ncordova platform add blackberry10\ncordova platform add firefoxos\n```\n\nPrepare your platforms\n\n```\nprepare platform add ios\nprepare platform add android\nprepare platform add amazon-fireos\nprepare platform add blackberry10\nprepare platform add firefoxos\n```\n\nBuild your platforms (i use xcode for ios build)\n\n```\ncordova build android --release\n```\n\n**The fun Android stuff**\n\n* make sure you have the [Android SDK](https://developer.android.com/sdk/index.html)\n* create a keystore file\n\n```\n[sudo] keytool -genkey -v -keystore [key name].keystore -alias [alias] -keyalg RSA -keysize 2048 -validity 10000\n```\n\nyou will be prompted to provision additional details\n\n* password\n* full name\n* organization unit (optional)\n* organization\n* city or locality\n* state or province\n* two letter country code\n\nat the \"is this correct line\" enter\n\n```\nyes\n```\n\nonce you have built the release version of your Android app, sign and align it with the keystore you created above \n\n*---------------------(DO NOT LOSE THIS FILE)---------------------*\n\n```\njarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore \n[path]/[file.keystore]\n[path to game]/platforms/android/build/outputs/apk/android-release-unsigned.apk [keystore]\n```\n\n```\njarsigner -verify -verbose -certs [path to apk]\n```\n\n```\nzipalign [path to android apk]/Android\\ SDK/build-tools/23.0.0/zipalign  -v 4 \n[path to game]/platforms/android/build/outputs/apk/android-release-unsigned.apk \n[path to game]/platforms/android/build/outputs/apk/android-release.apk\n```\n\n\n**iOS specific config.xml**\n\n```\n\u003cpreference name=\"DisallowOverscroll\" value=\"true\" /\u003e\n\u003cpreference name=\"webviewbounce\" value=\"false\" /\u003e\n\u003cpreference name=\"UIWebViewBounce\" value=\"false\" /\u003e\n\u003cpreference name=\"EnableViewportScale\" value=\"false\" /\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F32teeth%2Fcordova_game_framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F32teeth%2Fcordova_game_framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F32teeth%2Fcordova_game_framework/lists"}