{"id":20750827,"url":"https://github.com/johnnyg63/olcpgemobile_androidstudio","last_synced_at":"2025-04-28T12:53:59.583Z","repository":{"id":207431315,"uuid":"719091916","full_name":"Johnnyg63/OLCPGEMobile_AndroidStudio","owner":"Johnnyg63","description":"OLC Pixel Game Engine 2.0 Mobile for Android Studio. Supports: Windows, Linux and MAC","archived":false,"fork":false,"pushed_at":"2025-02-09T10:28:35.000Z","size":11652,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T09:41:27.056Z","etag":null,"topics":["android","android-studio","game-development","game-engine","olc","olcpgemobilevisualstudio","olcpixelgameengine"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Johnnyg63.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-15T12:43:31.000Z","updated_at":"2025-02-17T19:10:37.000Z","dependencies_parsed_at":"2024-06-06T08:44:17.072Z","dependency_job_id":"1612f928-0200-4a5f-a16a-fc0d73210a54","html_url":"https://github.com/Johnnyg63/OLCPGEMobile_AndroidStudio","commit_stats":null,"previous_names":["johnnyg63/olcpgemobileandroidstudio"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Johnnyg63%2FOLCPGEMobile_AndroidStudio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Johnnyg63%2FOLCPGEMobile_AndroidStudio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Johnnyg63%2FOLCPGEMobile_AndroidStudio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Johnnyg63%2FOLCPGEMobile_AndroidStudio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Johnnyg63","download_url":"https://codeload.github.com/Johnnyg63/OLCPGEMobile_AndroidStudio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251318929,"owners_count":21570419,"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":["android","android-studio","game-development","game-engine","olc","olcpgemobilevisualstudio","olcpixelgameengine"],"created_at":"2024-11-17T08:28:54.430Z","updated_at":"2025-04-28T12:53:59.559Z","avatar_url":"https://github.com/Johnnyg63.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OLC Pixel Game Engine Mobile 2.2.x for Android Studio\n\u003cp\u003e\n\t\u003cb\u003eSupports: Windows, Linux and Apple MAC\u003c/b\u003e\u003cbr/\u003e\n\t\u003cb\u003eThis project supports Android devices SDK 21 --\u003e 34 and beyond\u003c/b\u003e\n\u003c/p\u003e\n\u003chr/\u003e\n\u003cp\u003e\u003cb\u003eWhat our users say:\u003c/b\u003e\u003cbr\u003e\n\u003ci\u003e\"The main advantages of PGE mobile compared to many other tools are its flexibility with C++, low footprint (the generated APK is truly small), and performance. It’s genuinely the only accessible, easy-to-use mobile programming toolkit in C++ with an expressive and straightforward API (and a genuinely helpful community).\"\u003c/i\u003e\u003c/p\u003e\n\u003chr/\u003e\n\u003cp\u003eFor Visual Studio All In One (Android and iOS) Project Template: \u003ca href=\"https://github.com/Johnnyg63/OLCPGEMobileVisualStudio\"\u003eOLC Pixel Game Engine Mobile 2.2.8 Visual Studio for Android and iOS\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eFor Visual Studio Android Only (Windows) Use this project: \u003ca href=\"https://github.com/Johnnyg63/OLCPGEMobileVisualStudio_Android\"\u003eOLC Pixel Game Engine Mobile 2.2.8 for Android Visual Studio\u003c/a\u003e\u003c\u003c/p\u003e\n\u003cp\u003eFor Android Studio (Windows/Linux/MAC) Use this project: \u003ca href=\"https://github.com/Johnnyg63/OLCPGEMobile_AndroidStudio\"\u003eOLC Pixel Game Engine Mobile 2.2.8 for Android Studio\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003eFor Xcode (MAC) Use this project: \u003ca href=\"https://github.com/Johnnyg63/OLCPGEMobile_Xcode\"\u003eOLC Pixel Game Engine Mobile 2.2.8 for Xcode\u003c/a\u003e\u003c\u003c/p\u003e\n\u003chr/\u003e\n\u003cp\u003e\nThe \u003cb\u003e\u003ci\u003eOLC Pixel Game Engine Mobile Edition \u003c/i\u003e\u003c/b\u003eis a feature-rich fork of the original \u003ca href='https://github.com/OneLoneCoder/olcPixelGameEngine'\u003e OLC Pixel Game Engine\u003c/a\u003e. \u003cbr/\u003e\n\u003c/p\u003e\n\u003cul\u003e\n    \u003cli\u003e\n        \u003cb\u003eCommunity Interest:\u003c/b\u003e\u003cbr/\u003e\n        The mobile edition has garnered attention from programmers who want to create games for Android and iOS platforms.\u003cbr/\u003e\n            It’s actively maintained and developed by contributors.\n    \u003c/li\u003e\n    \u003cli\u003e\n        \u003cb\u003eCross-Platform Support:\u003c/b\u003e\u003cbr/\u003e\n        The mobile edition extends the original engine to support Android and iOS.\u003cbr/\u003e\n            Developers can create games that run on both desktop and mobile devices.\n    \u003c/li\u003e\n    \u003cli\u003e\n        \u003cb\u003eExtensions and Features:\u003c/b\u003e\u003cbr/\u003e\n        The mobile edition includes additional features like mobile input handling, sound, and hardware interfaces.\u003cbr/\u003e\n            The mobile edition is built on SIMD/NEON advance vectorization to ensure the fastest engine to pixel generation.\u003cbr/\u003e\n            It’s a versatile tool for prototyping, education, mobile game development and algorithm visualization for both Android and iOS devices.\n    \u003c/li\u003e\n    \u003cli\u003e\n        \u003cb\u003eGrowing User Base:\u003c/b\u003e\u003cbr/\u003e\n        While not as widely known as the original, it’s steadily gaining popularity.\u003cbr/\u003e\n            Developers appreciate its simplicity and flexibility.\n    \u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cp\u003e\n\u003ci\u003eRemember that both versions—original and mobile—are valuable tools for game development and learning. If you’re interested in mobile game development, give the mobile edition a try! 🚀🎮\u003c/i\u003e\n\u003c/p\u003e\n\n\n\u003chr/\u003e\n\u003cp\u003e\u003cb\u003e\u003ci\u003e!!SHOUT OUTS!!\u003c/i\u003e\u003c/b\u003e\u003cbr/\u003e\u003cbr/\u003e\n \t\u003cb\u003e\u003ci\u003eTHANK YOU\u003c/i\u003e\u003c/b\u003e to \u003ca href='https://github.com/vitoralmeidasilva'\u003e@VasCoder\u003c/a\u003e without your testing this would not have been possible!\u003cbr/\u003e\n\t\u003cb\u003e\u003ci\u003eTHANK YOU\u003c/i\u003e\u003c/b\u003e to \u003ca href='https://github.com/baderouaich/'\u003e@baderouaich\u003c/a\u003e for fixing the bug with OnUserDestroy()!\u003cbr/\u003e\n \t\u003cb\u003e\u003ci\u003eTHANK YOU\u003c/i\u003e\u003c/b\u003e to \u003ca href='https://github.com/Moros1138'\u003e@Moros1138\u003c/a\u003e for \u003ca href='https://pgetinker.com/'\u003ePGETinker\u003c/a\u003e Check it out folks!!!\u003cbr/\u003e\n  \t\u003cb\u003e\u003ci\u003eTHANK YOU\u003c/i\u003e\u003c/b\u003e to \u003ca href='https://github.com/OneLoneCode'\u003e@Javidx9\u003c/a\u003e for... well everything!\u003cbr/\u003e\n\n\u003c/p\u003e\n\u003chr/\u003e\n\n\n\n\u003cp\u003e\u003cimg alt=\"image_missing\" src='https://github.com/Johnnyg63/OLCPGEMobile_Xcode/assets/96908304/6545fc21-d300-42d2-99ea-428980669fd4' /\u003e\u003c/p\u003e\n\u003chr/\u003e\n\n\u003cp\u003e\u003cb\u003e\u003ci\u003eWE NEED YOUR FEEDBACK PLEASE\u003c/i\u003e\u003c/b\u003e\u003c/p\u003e\n\u003chr/\u003e\n\u003cp\u003e\u003ci\u003e\u003cb\u003eThank you for cloning the OLC Pixel Game Engine 2.0 Mobile.\u003c/b\u003e\u003cbr/\u003e\u003cbr/\u003e\n\tA tremendous amount of work went into getting this engine to work smoothly with Android and iOS so you can create amazing games.\u003cbr/\u003e\n \tWe can see that this repo gets an \u003cb\u003eunbelievable number of unique clones\u003c/b\u003e, therefore we want to hear from you!\u003cbr/\u003e\n  \tPlease come visit me and all the volunteers at One Lone Coder and join our community.\n   \t\u003cul\u003e\n\t\t\u003cli\u003eDiscord: \u003ca href=\"https://discord.com/invite/WhwHUMV\"\u003eOne Lone Coder\u003c/a\u003e\u003c/li\u003e\n\t\t\u003cli\u003eYouTube: \u003ca href=\"https://www.youtube.com/c/javidx9\"\u003eOne Lone Coder\u003c/a\u003e \u003c/li\u003e\n\t\t\u003cli\u003eTwitch: \u003ca href=\"https://www.twitch.tv/javidx9\"\u003eOne Lone Coder\u003c/a\u003e\u003c/li\u003e\n\t\t\u003cli\u003eWebsite: \u003ca href=\"https://community.onelonecoder.com/\"\u003ewww.onelonecoder.com\u003c/a\u003e\u003c/li\u003e\n\t\t\u003cli\u003ePGETinker: \u003ca href=\"https://pgetinker.com/\"\u003ePGETinker.com\u003c/a\u003e \u003c/li\u003e\n\t\u003c/ul\u003e\n \u003cbr/\u003e\n Kind regards\u003cbr/\u003e\n \u003cbr/\u003e\n John (aka Johnnyg63)\n\u003c/i\u003e\u003c/p\u003e\n\n\u003chr/\u003e\n\u003cp\u003e\u003cb\u003e\u003ci\u003e!!! Android Studio Installation !!!\u003c/i\u003e\u003c/b\u003e\u003c/p\u003e\n\n\u003cp\u003e\u003cb\u003eIf this is your first time using Android Studio ensure you set your Android App Configurations (See Step 5 for more details)\u003c/b\u003e\u003c/p\u003e\n\u003cp\u003e1: Clone or download (Zip) this project to the Android Studio Project Folders\u003cbr\u003e\n\t\u003cimg alt=\"image_missing\" src='https://github.com/user-attachments/assets/06de05e1-4bf7-46a0-883b-093d3ac0c247' /\u003e\n\u003c/p\u003e\n\n\u003cp\u003e2: To Clone Open Android Studio and Click the Android Studio button (may contain a project name on your IDE) and select \u003cb\u003eGet from version control\u003c/b\u003e \u003cbr/\u003e\n\u003cimg alt=\"image_missing\" src='https://github.com/user-attachments/assets/a67147d7-d556-4d4f-b10e-6cec2473bc46' /\u003e\n\u003c/p\u003e\n\n\u003cp\u003e3: Copy and path the Git URL (see step 1), enter a location for your project and finally click \u003cb\u003eClone\u003c/b\u003e \u003cbr/\u003e\n\u003cimg alt=\"image_missing\" src='https://github.com/user-attachments/assets/664fb5ad-51b9-4c92-857c-5f221748cf1f' /\u003e\n\u003c/p\u003e\n\t\n\u003cp\u003e4: Once Cloning is complete, it will take several minutes for the first auto build to complete. \u003cbr/\u003e\n\u003cimg alt=\"image_missing\" src='https://github.com/user-attachments/assets/0c541098-77d3-4507-810e-a129a0cd74bc' /\u003e\n\u003c/p\u003e\n\n\u003cp\u003e4: Once the build is complete, you will be offered to update your gradle, it is up to you. If this is your first time using Android Studio, I would not recommend this\u003cbr/\u003e\n\u003cimg alt=\"image_missing\" src='https://github.com/user-attachments/assets/f78f5e20-5d86-400b-bafa-98ddae715911' /\u003e\n\u003c/p\u003e\n\n\u003cp\u003e5: If you have any issues with the build, ensure your Android App Configurations. The Project is setup to auto create this for you, however some users have reported issues, \u003cbr/\u003e\n\tUnder Android App, click the \u003cb\u003e+\u003c/b\u003e button and select \u003cb\u003eAdd New Configuration\u003c/b\u003e\u003cbr/\u003e\n\t\u003cimg alt=\"image_missing\" src='https://github.com/user-attachments/assets/3ca91493-bb4c-4b3b-8f48-18840359d9ec' /\u003e\u003cbr/\u003e\n \tGeneral:\u003cbr/\u003e\n\t\u003cimg alt=\"image_missing\" src='https://github.com/user-attachments/assets/6ff46ae9-4852-414c-8214-47775501c4ce' /\u003e\u003cbr/\u003e\n \tMiscellaneous:\u003cbr/\u003e\n\t\u003cimg alt=\"image_missing\" src='https://github.com/user-attachments/assets/8fb7f510-ccb2-4f9f-8feb-3f9954d6344a' /\u003e\u003cbr/\u003e\n \tDebugger:\u003cbr/\u003e\n\t\u003cimg alt=\"image_missing\" src='https://github.com/user-attachments/assets/135f34e3-549e-46c5-acf4-864784d38938' /\u003e\u003cbr/\u003e\n \tProfiling:\u003cbr/\u003e\n\t\u003cimg alt=\"image_missing\" src='https://github.com/user-attachments/assets/3ce9a97a-8d89-4914-88d3-32afcf89b24a' /\u003e\u003cbr/\u003e\n \tClick \u003cb\u003eApply\u003c/b\u003e, and the click \u003cb\u003eOK\u003c/b\u003e\u003cbr/\u003e\n\u003c/p\u003e\n\n\u003cp\u003e6: Put your Android phone into \u003ca href=\"https://developer.android.com/studio/debug/dev-options#enable\"\u003e Development Mode\u003c/a\u003e and enable \u003ca href=\"https://developer.android.com/studio/debug/dev-options#Enable-debugging\"\u003eUSB Debugging.\u003c/a\u003e\u003c/p\u003e \n\n\u003cp\u003e7: Select Device Manager --\u003e your Phone --\u003e Click \u003cb\u003eRUN\u003c/b\u003e \u003cbr/\u003e\n\t\u003cimg alt=\"image_missing\" src='https://github.com/user-attachments/assets/24fc16b7-8a36-47e9-ae4c-2ba0edd04ef7' /\u003e\n\u003c/p\u003e\n\n\u003cp\u003e8: To rename this project Please see: \u003ca href=\"https://www.delasign.com/blog/android-studio-rename-project/\"\u003eHow to rename an Android Studio Project\u003c/a\u003e for steps\u003c/p\u003e  \n\n\u003chr/\u003e\n\u003cp\u003e\u003cb\u003eSupports olcPGEX_MiniAudio.h\u003c/b\u003e\u003cbr/\u003e\u003ca href=\"https://github.com/Moros1138/olcPGEX_MiniAudio/\"\u003ehttps://github.com/Moros1138/olcPGEX_MiniAudio/\u003c/a\u003e thanks @Moros1138\u003c/p\u003e\n\n\u003cp\u003e\u003ci\u003eOLC Pixel Game Engine Mobile supports PGE 2.0 games created for Windows, Linux and Apple MAC.\u003cbr/\u003ePlease see:\u003cbr/\u003e\n  \u003ca href=\"https://github.com/Johnnyg63/OLCPGEMobileAndroidProjectRelease221/tree/master/Demos\"\u003ePGE Mobile 2.0 Demos\u003c/a\u003e\u003cbr/\u003e\n  \u003ca href=\"https://github.com/Johnnyg63/OLCPGEMobileAndroidProjectRelease221/tree/master/Extensions\"\u003ePGE Mobile 2.0 Extension\u003c/a\u003e\u003cbr/\u003e\u003c/i\u003e\n  Accessing assets on the PGE Mobile 2.0 is different to PGE 2.0. Please use the builtin FileManager (see 2.09 support details below)\u003cbr/\u003e\n  There is also an examples of FileManager usage in most of the demos.\n\u003c/p\u003e\n\n\u003cp\u003eTo use the Project Template please see: \u003ci\u003ecurrently creating this folks\u003c/i\u003e \u003c/p\u003e\n\n \u003cp\u003e\u003cb\u003eRelease 2.2.8 Support Details\u003c/b\u003e\u003c/p\u003e\n\n\u003cul\u003e\n  \u003cli\u003e2.01: BETA Port code from olcPixelGameEngine.h to olcPixelGameEngine_mobile.h\u003c/li\u003e\n  \u003cli\u003e2.02: Corrected support for X86\u003c/li\u003e\n  \u003cli\u003e2.03: Update EventManager to handle, Touch, Mouse and Keyboard events\u003c/li\u003e\n  \u003cli\u003e2.04: Corrected Touch offset, added 1 touch point, unlinked Mouse \u0026 Touch Events\u003c/li\u003e\n  \u003cli\u003e2.05: Sensors Support added\u003c/li\u003e\n  \u003cli\u003e2.06: Multi Touch Support\u003c/li\u003e\n  \u003cli\u003e2.06a: Added basic mouse support for Android Emulator\u003c/li\u003e\n  \u003cli\u003e2.07: Updated SIMD_SSE for Intel Atom devices, Updated GetTouch() to default to touch point zero\u003c/li\u003e\n  \u003cli\u003e2.07a: Corrected two small bugs in main.cpp\u003c/li\u003e\n  \u003cli\u003e2.08: Added ClearTouchPoints(int8_t startIndex = 0) for clearing of touch points at index x, some bug fixes too\u003cbr/\u003e \u003ci\u003eAdded Demos folder with some demos. Just Copy and Paste the code into main.cpp\u003c/i\u003e\u003c/li\u003e\n  \u003cli\u003e2.09: Added Demos folder with some demos\n\t\u003cbr/\u003e Added: FileManager: for gaining access to the Android Assets APK and iOS Zip Packages\n\t\t\t\t\u003cbr/\u003e app_LoadFileFromAssets()\n\t\t\t\t\u003cbr/\u003e app_ExtractFileFromAssets()\n\t\t\t\t\u003cbr/\u003e app_GetInternalAppStorage()\n\t\t\t\t\u003cbr/\u003e app_GetExternalAppStorage()\n\t\t\t\t\u003cbr/\u003e app_GetPublicAppStorage()\n\t\t\t\t\u003cbr/\u003e SmartPtr filehandler\n\t\t\t\t\u003cbr/\u003e LoadFileFromAssets()\n\t\t\t\t\u003cbr/\u003e ExtractFileFromAssets()\n\t\t\t\t\u003cbr/\u003e GetInternalAppStorage()\n\t\t\t\t\u003cbr/\u003e GetExternalAppStorage()\n\t\t\t\t\u003cbr/\u003e GetPublicAppStorage()\n  \u003c/li\u003e\n  \u003cli\u003e2.10: Removed ASensor_getHandle() as it only supports SDK 29 and higher. Updated project to support SDK 21 to SDK32, Thank you @VasCoder\u003c/li\u003e\n  \u003cli\u003e2.11: Corrected offset error bug in Drawline,\u003cbr/\u003e Added release config to build.gradle.template. Please see: \u003ca href=\"https://developer.android.com/studio/publish/app-signing\"\u003ehttps://developer.android.com/studio/publish/app-signing\"\u003c/a\u003e and\u003cbr/\u003e Please see: \u003ca href=\"https://developer.android.com/studio/publish/app-signing\"\u003ehttps://stackoverflow.com/questions/9081877/how-do-i-debug-an-apk-that-is-signed-for-release\u003c/a\u003e for more info\u003cbr/\u003e\u003cb\u003eNOTE: You cannot debug or deploy a release app unless you have a signing key (Android Developer Account)\u003c/b\u003e\u003c/li\u003e\n  \u003cli\u003e2.20 \u003cb\u003ePre-Release!\u003c/b\u003e Can now be used in Production Environment, have fun! \u003cbr/\u003e Android Keyboard mapping completed for GetKey() \u003cbr/\u003eNote if using a MacOS, Linux or Windows for debugging, some keys may not map correctly, directionally keys will be out of sync as Android is mapped to a Direction Pad by default\u003c/li\u003e\n  \u003cli\u003e2.21 \u003cb\u003eFull Production Release\u003c/b\u003e \u003c/li\u003e\n  \u003cli\u003e2.22 Better support for the latest Android phones\u003cbr/\u003e\n\t\t\tThe Engine will now detect the correct OpenGLES setting for your Android phone and apply the correct settings\u003c/li\u003e\n  \u003cli\u003e2.23 Now with Sound, supports olcPGE_MiniAudio \u003ca href=\"https://github.com/Moros1138/olcPGEX_MiniAudio/\"\u003ehttps://github.com/Moros1138/olcPGEX_MiniAudio/\u003c/a\u003e thanks @Moros1138\n\t\t   \u003cbr/\u003eUpdated EventManager::HandleInput to ensure Volume UP/Down/Mute, Camera and Power Buttons are released back to the OS after execution\n  \u003c/li\u003e\n  \u003cli\u003e2.24 \u003cb\u003eiOS Beta support. Sensors not supported. Anything you develop for Android will work on the iOS\u003c/b\u003e \u003c/li\u003e\n  \u003cli\u003e2.25 Corrected Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault, forgot to take (subtract) the 1\u003c/li\u003e\n  \u003cli\u003e2.26 Updated olc_Configure to set OGLES_20 to use SDK 26-\u003e33. A big thanks you to @VasCoder for all his testing!!!!\u003c/li\u003e\n  \u003cli\u003e2.27 Removed mutexTouchPoints from main engine thread, the engine will run as fast as possible now!!! \u003c/li\u003e\n  \u003cli\u003e2.28 Correct onUserDestroy so that it is not called every frame. A Big thank you to \u003ca href='https://github.com/baderouaich/'\u003e@baderouaich\u003c/a\u003e. \u003cbr/\u003eAdded OnLowMemoryWarning() \u003c/li\u003e\n\u003c/ul\u003e\n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnyg63%2Folcpgemobile_androidstudio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnyg63%2Folcpgemobile_androidstudio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnyg63%2Folcpgemobile_androidstudio/lists"}