Android Port #64

Merged
MichaelYick merged 9 commits from nutbuster/SnootGame:Monster-Update-6 into Monster-Update-6 2021-07-29 04:39:03 +00:00
Member

See: https://booru.snootgame.xyz/post/1967 for proof of the android port working, excuse the performance since my Phone isn't that fast.

Throw all this text into this git's Wiki:

Guide on how to build the android mobile port on real hardware

Prerequisite
Get An acutal phone with developer mode enabled (rooting isn't required)
adb - Android Debug Bridge (optional)
scrcpy (optional, think of it as wired remote play or something) https://github.com/Genymobile/scrcpy

Steps
Install Java's OpenJDK8 Stuff - not to be confused with just only the OpenJRE
Install SDK & Create Keys - I think somewhere down the line you do get your freedoms violated because google and mobile phones in general but moving past that

Configuring
You can press on 'Configure' and go through this crap:

Questions you have to answer
	What is the Full name ..
		Snoot Game
	What is the Short name ..
		SnootGame
	What is the name of the package?
		cavemanon.snootgame
	What is the application's version?
		for the time being, 6.0.0
	Version code?
		6.0.0 -> 600, so 600
	How much ram?
		No larger than unused ram, in gigabytes/gibibytes
	Application to be displayed?
		In Landscape Orientation Only
	Which app store ..
		Neither
	Would you like to create an Expansion APK?
		No. Size Limit of ...
	Do you want to allow the app to access the Internet?
		No (Note: Ren'Py's default Updater isn't even supported on android, it's mostly a desktop only feature)
	Do you want to automatically update Java ..
		Yes. This is ...

OR
copy this into '.android.json'
{"layout": null, "package": "cavemanon.snootgame", "include_pil": false, "numeric_version": "600", "expansion": false, "name": "Snoot Game", "update_always": true, "source": false, "icon_name": "SnootGame", "version": "6.0.0", "heap_size": "2", "update_icons": true, "permissions": ["VIBRATE"], "include_sqlite": false, "store": "none", "orientation": "sensorLandscape"}
Because for some dumb reason "google_play_key" & "google_play_salt" is in the same json build file, so the file isn't tracked. Oddly enough vibration is part of the permissions (the user won't be asked - some permissions have different levels, read the android developer docs for more info)

Toggle 'Release' instead of 'Debug' if you're going to distribute or don't care about debugging
Press 'Build Package' to build the apk file. Build & .. is only useful if you have usb debugging & adb installed & developer mode.
You can manually install the snootgame apk on your phone, copy the file over to your phone, then find the file and tap it, it should prompt installation of the apk.

Optional Recording with scrcpy
scrcpy is used to record/playback your phone's display easily onto your computer,
you can interact the phone with your mouse on the streamed display on your computer.
It still requires adb

Other documentation
https://www.renpy.org/doc/html/android.html
Phone Assets (all in the root folder)
android-icon_foreground.png
The foreground layer of the icon. This should be 432x432 pixels and transparent.
android-icon_background.png
The background layer of the icon. This should be 432x432 pixels and opaque.
android-presplash.jpg
The image that's used when the app is loading. This should be surrounded by a monocolored border. That border is expanded to fill the screen.

See: https://booru.snootgame.xyz/post/1967 for proof of the android port working, excuse the performance since my Phone isn't that fast. Throw all this text into this git's Wiki: Guide on how to build the android mobile port on real hardware Prerequisite Get An acutal phone with developer mode enabled (rooting isn't required) adb - Android Debug Bridge (optional) scrcpy (optional, think of it as wired remote play or something) https://github.com/Genymobile/scrcpy Steps Install Java's OpenJDK8 Stuff - not to be confused with just only the OpenJRE Install SDK & Create Keys - I think somewhere down the line you do get your freedoms violated because google and mobile phones in general but moving past that Configuring You can press on 'Configure' and go through this crap: Questions you have to answer What is the Full name .. Snoot Game What is the Short name .. SnootGame What is the name of the package? cavemanon.snootgame What is the application's version? for the time being, 6.0.0 Version code? 6.0.0 -> 600, so 600 How much ram? No larger than unused ram, in gigabytes/gibibytes Application to be displayed? In Landscape Orientation Only Which app store .. Neither Would you like to create an Expansion APK? No. Size Limit of ... Do you want to allow the app to access the Internet? No (Note: Ren'Py's default Updater isn't even supported on android, it's mostly a desktop only feature) Do you want to automatically update Java .. Yes. This is ... OR copy this into '.android.json' ``` {"layout": null, "package": "cavemanon.snootgame", "include_pil": false, "numeric_version": "600", "expansion": false, "name": "Snoot Game", "update_always": true, "source": false, "icon_name": "SnootGame", "version": "6.0.0", "heap_size": "2", "update_icons": true, "permissions": ["VIBRATE"], "include_sqlite": false, "store": "none", "orientation": "sensorLandscape"} ``` Because for some dumb reason "google_play_key" & "google_play_salt" is in the same json build file, so the file isn't tracked. Oddly enough vibration is part of the permissions (the user won't be asked - some permissions have different levels, read the android developer docs for more info) Toggle 'Release' instead of 'Debug' if you're going to distribute or don't care about debugging Press 'Build Package' to build the apk file. Build & .. is only useful if you have usb debugging & adb installed & developer mode. You can manually install the snootgame apk on your phone, copy the file over to your phone, then find the file and tap it, it should prompt installation of the apk. Optional Recording with scrcpy scrcpy is used to record/playback your phone's display easily onto your computer, you can interact the phone with your mouse on the streamed display on your computer. It still requires adb Other documentation https://www.renpy.org/doc/html/android.html Phone Assets (all in the root folder) android-icon_foreground.png The foreground layer of the icon. This should be 432x432 pixels and transparent. android-icon_background.png The background layer of the icon. This should be 432x432 pixels and opaque. android-presplash.jpg The image that's used when the app is loading. This should be surrounded by a monocolored border. That border is expanded to fill the screen.
nutbuster added 6 commits 2021-07-24 01:35:16 +00:00
Owner

finally getting around to review this (was out for a month due to college shit, fuck college)

anywho, this is what I notice so far

image
UI here is a bit fucky, maybe move the entire box down a bit?

image
The space between the bottom of the screen and text box bugs me. Maybe putting the buttons at the top would be good? I don't mind being over-ruled on this one if other people think its fine as is.
image
the name box clips just a little bit

Other than that, looks fine. Anyone else wanna look at this one?

finally getting around to review this (was out for a month due to college shit, fuck college) anywho, this is what I notice so far ![image]() UI here is a bit fucky, maybe move the entire box down a bit? ![image]() The space between the bottom of the screen and text box bugs me. Maybe putting the buttons at the top would be good? I don't mind being over-ruled on this one if other people think its fine as is. ![image](/attachments/c65dd157-5e4d-4280-ab48-193a3baa6b63) the name box clips just a little bit Other than that, looks fine. Anyone else wanna look at this one?
nutbuster added 3 commits 2021-07-27 23:09:14 +00:00
Author
Member

Namebox text doesn't clip, main menu buttons don't clip the logo.
Having buttons closer to the center of the screen is pretty weird, most of the UI in this world doesn't really do that, it always hugs towards the edge of the screen.

Namebox text doesn't clip, main menu buttons don't clip the logo. Having buttons closer to the center of the screen is pretty weird, most of the UI in this world doesn't really do that, it always hugs towards the edge of the screen.
Owner

any other comments? Will get 24 hours then merge

any other comments? Will get 24 hours then merge
MichaelYick merged commit 666ecea915 into Monster-Update-6 2021-07-29 04:39:03 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Cavemanon/SnootGame#64
No description provided.