| 1 | # PlayStation Vita Port of [fheroes2](README.md) Project |
| 2 | |
| 3 | ## Install |
| 4 | |
| 5 | Install fheroes2.vpk to your Vita. |
| 6 | |
| 7 | fheroes2 requires data files from the original Heroes of Might and Magic II. |
| 8 | |
| 9 | Copy HEROES2.AGG and HEROES2X.AGG (if you own Price of Loyalty expansion) from the original games "DATA" folder into |
| 10 | "ux0:data/fheroes2/data" and everything from "MAPS" folder into "ux0:data/fheroes2/maps". |
| 11 | |
| 12 | Music files in OGG format (from GoG release of the game) should be placed into the "ux0:data/fheroes2/music/" folder. |
| 13 | |
| 14 | fheroes2 supports in-game cinematics. To play intro and/or other videos, make sure that all of "*.SMK" files are placed |
| 15 | inside "ux0:data/fheroes2/heroes2/anim/" folder. |
| 16 | |
| 17 | [rePatch reDux0](https://github.com/dots-tb/rePatch-reDux0) OR [FdFix](https://github.com/TheOfficialFloW/FdFix) plugin |
| 18 | is required for proper suspend/resume support (only use one at a time). |
| 19 | |
| 20 | ## Building |
| 21 | |
| 22 | ### Prerequisites |
| 23 | |
| 24 | * VitaSDK |
| 25 | * libSDL2 |
| 26 | * libSDL2-mixer |
| 27 | |
| 28 | To build the game just run |
| 29 | |
| 30 | ```sh |
| 31 | make -f Makefile.vita |
| 32 | ``` |
| 33 | |
| 34 | ## Controls |
| 35 | |
| 36 | * Left analog stick - Pointer movement |
| 37 | * Right analog stick - Map scrolling |
| 38 | * × - Left mouse button |
| 39 | * ○ - Right mouse button |
| 40 | * □ - End turn |
| 41 | * △ - Open spellbook |
| 42 | * D-Pad left - Next hero |
| 43 | * D-Pad right - Next castle |
| 44 | * D-Pad down - Re-visit the object that hero stands on |
| 45 | * R1 - Cursor acceleration |
| 46 | * SELECT - System menu |
| 47 | * START - Enter |
| 48 | |
| 49 | Text input is done with D-Pad. |
| 50 | |
| 51 | * Left - Remove character |
| 52 | * Right - Add new character |
| 53 | * Down - Next character (alphabetically) |
| 54 | * Up - Previous character |
| 55 | * R1, L1 - Switch current character between uppercase/lowercase |
| 56 | |
| 57 | ## Vita Specific Options |
| 58 | |
| 59 | Pointer movement speed can be changed with 'gamepad_pointer_speed' parameter in "ux0:data/fheroes2/fheroes2.cfg". |
| 60 | |
| 61 | Use "fullscreen = on" option to scale game area to native Vita resolution or "fullscreen = off" to keep the game |
| 62 | area at the center of the screen. |
| 63 | |
| 64 | Native resolution is supported (set "videomode = 960x544" option in config file or just click on the left door |
| 65 | in main menu and select resolution manually). |