-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# MiniUI Apps - 2048 | ||
|
||
[Steward Fu](https://github.com/steward-fu)'s port of 2048. | ||
|
||
Source: https://github.com/steward-fu/miyoo-mini/releases (find `2048_<date>.zip`) | ||
|
||
## Screenshots | ||
|
||
| In-game | | ||
|:-----------------------------------:| | ||
| ![2048 - In-game](res/2048_000.png) | | ||
|
||
## Installation | ||
|
||
**Steward Fu's ports require [Parasyte](../Parasyte.pak), make sure you have it installed!** | ||
|
||
## Pre-packaged | ||
|
||
1. **Install [Parasyte](../Parasyte.pak)** | ||
2. Download the latest version from Github: https://github.com/erazemk/MiniUI-Apps/releases | ||
3. Extract the archive and move the `2048.pak` directory to your SD card, to the `Tools` directory | ||
(create it if it doesn't exist already) | ||
|
||
## Manually packaged | ||
|
||
1. Download [Steward Fu's 2048](https://github.com/steward-fu/miyoo-mini/releases) | ||
(find `2048_<date>.zip`) | ||
2. Extract the archive, go into the directory and rename the `2048` directory to `2048.pak` | ||
3. Delete the png files and config.json | ||
4. Replace the existing `launch.sh` file with the one from this repository | ||
(https://raw.githubusercontent.com/erazemk/MiniUI-Apps/main/2048.pak/launch.sh) | ||
5. Move the `2048.pak` directory to your SD card, to the `Tools` directory | ||
(create it if it doesn't exist already) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
DIR=$(dirname "$0") | ||
PARASYTE="/mnt/SDCARD/.system/paks/Parasyte.pak/rootfs" | ||
|
||
export HOME=$DIR | ||
export PYTHONPATH=$DIR/libs/python2.7:$DIR/libs/python2.7/site-packages:$DIR/libs/python2.7/lib-dynload | ||
export PYTHONHOME=$DIR/libs/python2.7:$DIR/libs/python2.7/site-packages:$DIR/libs/python2.7/lib-dynload | ||
export PATH=$DIR/bin:$PARASYTE/usr/local/sbin:$PARASYTE/usr/local/bin:$PARASYTE/usr/sbin:$PARASYTE/usr/bin:$PARASYTE/sbin:$PARASYTE/bin:$PATH | ||
export LD_LIBRARY_PATH=$DIR/libs:$DIR/libs/python2.7/:$DIR/libs/python2.7/lib-dynload:$PARASYTE/lib:$PARASYTE/usr/lib:$LD_LIBRARY_PATH | ||
|
||
cd "$DIR" || exit | ||
|
||
# Launch a menu, explaining to the user that the game won't be auto-saved | ||
if [ ! -f ./initial-warning-done ]; then | ||
show okay.png | ||
say "2048 is a standalone app,"$'\n'" IT WILL NOT BE AUTO-SAVED"$'\n'"when powering off!"$'\n' | ||
confirm only | ||
touch ./initial-warning-done | ||
fi | ||
|
||
python2 ./2048.py > "$LOGS_PATH"/2048.txt 2>&1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters