diff --git a/.gitignore b/.gitignore index cedd289..ff0c412 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ settings-debug.txt +screenshot*.png diff --git a/app/tick.rb b/app/tick.rb index 8d8d5e2..adfc74a 100644 --- a/app/tick.rb +++ b/app/tick.rb @@ -8,7 +8,7 @@ def init(args) if args.gtk.platform?(:mobile) args.gtk.set_window_fullscreen(true) end -end +end # Code that runs every game tick (mainly just calling other ticks) def tick(args) @@ -29,6 +29,16 @@ def tick(args) scene.tick(args) if scene.tick_in_background || scene == args.state.scene_stack.last end + if args.inputs.keyboard.key_down.home + screenshot_file_name = 'screenshot.png' + screenshot_file_count = 0 + while $gtk.read_file(screenshot_file_name) + screenshot_file_count += 1 + screenshot_file_name = "screenshot#{screenshot_file_count}.png" + end + args.outputs.screenshots << { x: 0, y: 0, w: args.grid.w, h: args.grid.h, path: screenshot_file_name } + end + debug_tick(args) rescue FinishTick end diff --git a/metadata/cover.png b/metadata/cover.png new file mode 100644 index 0000000..ac8ba81 Binary files /dev/null and b/metadata/cover.png differ diff --git a/metadata/feature.png b/metadata/feature.png new file mode 100644 index 0000000..ffeaf79 Binary files /dev/null and b/metadata/feature.png differ diff --git a/metadata/feature_w.png b/metadata/feature_w.png new file mode 100644 index 0000000..bd6afb8 Binary files /dev/null and b/metadata/feature_w.png differ diff --git a/metadata/game_metadata.txt b/metadata/game_metadata.txt index a28ef4e..bc15ac5 100644 --- a/metadata/game_metadata.txt +++ b/metadata/game_metadata.txt @@ -1,8 +1,8 @@ -devid=death.au +devid=deathau devtitle=death.au gameid=cube-tube gametitle=Cube Tube -version=0.1-dev +version=0.1.0 icon=metadata/icon.png # === Flags available at all licensing tiers === diff --git a/metadata/icon-512-full-bleed.png b/metadata/icon-512-full-bleed.png new file mode 100644 index 0000000..9b54642 Binary files /dev/null and b/metadata/icon-512-full-bleed.png differ diff --git a/metadata/icon-512.png b/metadata/icon-512.png new file mode 100644 index 0000000..14bbda9 Binary files /dev/null and b/metadata/icon-512.png differ diff --git a/metadata/tile.png b/metadata/tile.png new file mode 100644 index 0000000..0ae91c3 Binary files /dev/null and b/metadata/tile.png differ diff --git a/package.bat b/package.bat index 5cfebe0..50202b3 100644 --- a/package.bat +++ b/package.bat @@ -15,6 +15,8 @@ if not exist ./%CurrDirName%.keystore ( if exist ./%CurrDirName%-android.apk ( echo "Signing apk..." call "C:\Program Files (x86)\Android\android-sdk\build-tools\32.0.0\apksigner.bat" sign -ks %CurrDirName%.keystore %CurrDirName%-android.apk + echo "Signing aab..." + call jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 -keystore %CurrDirName%.keystore %CurrDirName%-googleplay.aab %CurrDirName% ) else ( ECHO "no apk?" ECHO ./%CurrDirName%-android.apk