diff --git a/README.md b/README.md new file mode 100644 index 0000000..28298ed --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +# Tromi (MOBILE port) +A old-fashioned but modern block-stacking game. Made with love by [mycophobia](https://mycophobia.org/tromi).
+Ported to Android by SweetSea with on-screen control (with some necessary changes) + +# How to play +> :warning: There is no Android build (aka APK file) right now. If you see any pre-built APK files on the internet. Please be aware +## Install +1. Download Tromi from [Releases tab](https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile/releases) and place ``tromi_mobile.love`` to somewhere you can easy to navigate +2. Download [love2d engine](https://love2d.org) (You should get 11.5 or above) +3. Install love2d engine (extra steps may require, you can read [this article from WikiHow](https://www.wikihow.com/Install-APK-Files-on-Android) if this is the first time for you to install app from APK file) +4. Now, press Home (or back to app launcher), you can see two icons: ``LÖVE for Android`` and ``LÖVE Launcher``. You should use the ``LÖVE Launcher`` to launch Tromi +## Launch +1. Launch ``LÖVE Launcher``, an file picker will appear +2. Navigate to where you put the bare ``tromi_mobile.love`` +3. Pick the file and enjoy + +# Differences from original Tromi +> This is required, to follow the used license (GPL v3 and later) +* No differences in gameplay +* Files will be saved into ``Android/data/org.love2d.android/tromi_mobile`` instead the location where the game files in +* All UIs are touch-able +* Changes the way to input secret code to activate Pentominoes mode + +To insert the left arrow, tap on the left, so does to right arrow. + \ No newline at end of file diff --git a/main.lua b/main.lua index 89657b8..324ec34 100644 --- a/main.lua +++ b/main.lua @@ -102,14 +102,14 @@ function love.draw() -- love.graphics.line(0, grid_height * iy, 640, grid_height * iy) -- end - local x, y = GLOBAL_TRANSFORM:inverseTransformPoint(love.mouse.getPosition()) - love.graphics.setColor(0, 0, 0, 0.8) - love.graphics.rectangle("fill", 5, 450, 115, 25) - drawText(string.format("X: %.1d; Y: %.1d", x, y), 10, 455, 110, "left") + -- local x, y = GLOBAL_TRANSFORM:inverseTransformPoint(love.mouse.getPosition()) + -- love.graphics.setColor(0, 0, 0, 0.8) + -- love.graphics.rectangle("fill", 5, 450, 115, 25) + -- drawText(string.format("X: %.1d; Y: %.1d", x, y), 10, 455, 110, "left") - love.graphics.setColor(1, 1, 1, 1) - love.graphics.setLineWidth(2) - love.graphics.rectangle("line", 0, 0, 640, 480) + -- love.graphics.setColor(1, 1, 1, 1) + -- love.graphics.setLineWidth(2) + -- love.graphics.rectangle("line", 0, 0, 640, 480) love.graphics.pop() end diff --git a/screenshot/SPOILER_secret_code.png b/screenshot/SPOILER_secret_code.png new file mode 100644 index 0000000..cc57e5b Binary files /dev/null and b/screenshot/SPOILER_secret_code.png differ