Browse Source

[Switch] Update readme

pull/497/head
rsn8887 7 years ago committed by Anders Jenbo
parent
commit
0285c0ff23
  1. 47
      Packaging/switch/readme-switch.md
  2. 15
      README.md

47
Packaging/switch/readme-switch.md

@ -6,31 +6,36 @@
- Launch `devilutionx.nro` (do not use album to launch, see the note below)
- *Note:* Hold R on any installed game and launch it. Do not use album to launch. If you use album, the homebrew only has very little memory available, and the touch keyboard doesn't work. This is true for all homebrew, not just Diablo-NX.
### Compiling On Linux
- ```install devkitproA64, libzip, libpng, libjpeg, switch-freetype, switch-mesa, switch-glad, switch-glm, switch-sdl2, switch-sdl2_ttf, switch-sdl2_mixer, switch-libvorbis, switch-libmikmod```
- ```make```
### Compiling On Windows
- Install [devkitpro](https://sourceforge.net/projects/devkitpro/)
- Open ```Start Button > DevKitPro > MSys2```
- Type in ```pacman -S switch-freetype switch-mesa switch-glad switch-glm switch-sdl2 switch-sdl2_ttf switch-sdl2_mixer switch-libvorbis switch-libmikmod```
- Type in ```make```
### Compiling On MacOS
- Install [devkitpro](https://devkitpro.org/wiki/Getting_Started#macOS)
- Open Terminal
- Type in ```dkp-pacman -S switch-freetype switch-mesa switch-glad switch-glm switch-sdl2 switch-sdl2_ttf switch-sdl2_mixer switch-libvorbis switch-libmikmod```
- Type in ```make```
- .nro lives in release. Test with an emulator (RyuJinx) or real hardware.
### Joycon Controls
- Left analog : move hero
- Right analog : simulate mouse
- A : attack nearby enemies, talk to towns people and merchants, pickup & drop items in inventory, OK while in main menu
- X : pickup gold, potions & equipment from ground, open chests and doors that are nearby, use item when in inventory (useful to read books etc.)
- Y : cast spell, go to previous screen when talking to people and in shops, delete character while in main menu
- B : Select spell, cancel while in main menu
- R : inventory
- L : character
- ZR : drink mana potion
- ZL : drink health potion
- Minus + Y : quest log
- Right analog click : left mouse click
- Left analog click : automap
- Plus : game Menu, skip intro
### Touch Controls
- Single finger drag : move the mouse pointer (pointer jumps to finger)
- Single short tap : left mouse click
- Single short tap while holding a second finger down : right mouse click
- Dual finger drag : drag'n'drop (left mouse button is held down)
- Three finger drag : drag'n'drop (right mouse button is held down)
### Credits
- Initial Switch Port by [MVG](https://github.com/lantus) in 2019
- Controller code by [Jacob Fliss](https://github.com/erfg12)
- Control improvements and bug fixes by [rsn8887](https://github.com/rsn8887) in 2019
- [AJenbo](https://github.com/AJenbo) for upstreaming Switch code and many code fixes
And a special thanks to all the support and people who work on Devilution to make it possible! <3

15
README.md

@ -135,6 +135,21 @@ Make sure to install the `C++ CMake tools for Windows` component for Visual Stud
7. Use build/debug etc. commands inside Visual Studio Solution like with any normal Visual Studio project.
</details>
<details><summary>Nintendo Switch</summary>
Run:
```
Packaging/switch/build.sh
```
This will install the [Switch devkit](https://switchbrew.org/wiki/Setting_up_Development_Environment) and build a DevilutionX Switch package. If you already have the devkit installed, or are on a non-Debian system, pass the the devkit path to the script like this:
```
DEVKITPRO=<path to devkit> Packaging/switch/build.sh
```
- .nro lives in release. Test with an emulator (RyuJinx) or real hardware.
</details>
<details><summary>Haiku</summary>
### Installing dependencies on 32 bit Haiku

Loading…
Cancel
Save