本文档是对 RPG MV Maker 引擎游戏的Android Studio模板工程的说明, 下载模板工程
由于此工程已接入 4399 SDK,游戏只需要确认版本和打包配置即可
app/build.gradle
中dependencies {
// 运营 SDK,建议使用最新版本,可通过浏览仓库地址或向运营咨询版本
implementation "cn.m4399.sdk:operate:3.8.0"
}
app/src/main/java/cn/m4399/rpgsample/RPGMakerActivity
中的GAME_KEY
替换为实际值applicationId
:注意不同的游戏包要确定好包名versionCode, versionName
android {
defaultConfig {
applicationId "cn.m4399.rpgsample"
versionCode 20201001
versionName "2.1.0b"
}
}
package
:此设置与applicationId
可以一致android:icon
和android:roundIcon
android:label
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.rpgsample">
...
<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@style/AppTheme"
tools:ignore="UnusedAttribute">
...
</manifest>
游戏应使用apktool
或 as
生成签名文件,或使用已有签名文件
并参考app/build.gradle
中signingConfigs
定义与使用方式配置打包签名
最后,删除app/src/main/assets
下原有所有文件,并将编译好的RPG
Maker游戏文件移动到其下
完成最后的步骤后,同步项目,即可打包验证