Moderator: marauder2k9
Code: Select all
allprojects {
repositories {
google()
jcenter()
}
}
org.gradle.jvmargs=-Xmx2g -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8then in build.gradle in android studio add
dexOptions { javaMaxHeapSize = "4G" }just after android{
function MyModule::createLives() { %livesText = new TextSprite() { Scene = MyScene; Font = "myModule:TifaxFont"; Position = "0 -1.8"; FontSize = 15; OverflowModeY = "Visible"; OverflowModeX = "Visible"; BlendColor = "1 1 1 1"; TextAlignment = "center"; TextVAlignment = "Middle"; Class = "LivesText"; UpdateCallback = true; }; } function LivesText::onUpdate(%this) { %this.Text = $lives; }