Add ApplicationPreload mechanism to collectScreenshots

This commit is contained in:
Edwin Jakobs
2021-08-31 22:43:39 +02:00
parent 46dfc06ab1
commit bf11867232
62 changed files with 94 additions and 379 deletions

View File

@@ -1,9 +1,8 @@
import Orx_collect_screenshots_gradle.ScreenshotsHelper.collectScreenshots
import ScreenshotsHelper.collectScreenshots
plugins {
kotlin("multiplatform")
kotlin("plugin.serialization")
id("orx.collect-screenshots")
}
val kotlinxSerializationVersion: String by rootProject.extra

View File

@@ -16,12 +16,6 @@ fun main() {
title = "QuadTree"
}
program {
if (System.getProperty("takeScreenshot") == "true") {
extend(SingleScreenshot()) {
this.outputFile = System.getProperty("screenshotPath")
}
}
val box = Rectangle.fromCenter(Vector2(400.0), 750.0)
val points = (0 until 1_000).map {

View File

@@ -16,12 +16,6 @@ fun main() {
title = "QuadTree"
}
program {
if (System.getProperty("takeScreenshot") == "true") {
extend(SingleScreenshot()) {
this.outputFile = System.getProperty("screenshotPath")
}
}
val box = Rectangle.fromCenter(Vector2(400.0), 750.0)
val points = (0 until 100).map {