This commit is contained in:
syui 2025-03-22 17:21:22 +09:00
parent da80d4daf6
commit c8cf56698a
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56
4 changed files with 51 additions and 0 deletions

View File

@ -9,6 +9,8 @@
* [powershell](pwsh/README.md) * [powershell](pwsh/README.md)
* [git](pwsh/01_git.md) * [git](pwsh/01_git.md)
* [ssh](pwsh/02_ssh.md) * [ssh](pwsh/02_ssh.md)
* [ttyd](pwsh/03_ttyd.md)
* [slidev](pwsh/04_slidev.md)
* [game animation sample](gasp/README.md) * [game animation sample](gasp/README.md)
* [キャラクターを追加する](gasp/01_character.md) * [キャラクターを追加する](gasp/01_character.md)
* [飛びつける高さを増やす](gasp/02_jump.md) * [飛びつける高さを増やす](gasp/02_jump.md)

27
book/pwsh/03_ttyd.md Normal file
View File

@ -0,0 +1,27 @@
# ttyd
windows terminalをueのweb browserから操作しようと思ったけど、失敗した話。
`ttyd`というものを使います。これはwebからterminal操作するためのものです。
```sh
# https://github.com/tsl0922/ttyd
$ winget install tsl0922.ttyd
# windowsで動かすためには互換性をwin8(プロパティ->互換性)にしないといけない
# -w ~/ttyd など作業dirを指定しないといけない
$ Get-Command ttyd -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Source
http://localhost:7681
```
なぜかbrowserからキー入力を受け付けないのか動かなかった。
## やりたかったこと
やりたいこととしては、ゲーム内にノートパソコンを置いて、キャラクターが操作しているように見せたい。
ueのweb browserについては[こちら](/city/05_browser.html)を参照してください。
なお、ゲーム内から操作できなくても、windowsで操作しているものをwebで共有する方法があればよい。

14
book/pwsh/04_slidev.md Normal file
View File

@ -0,0 +1,14 @@
# slidev
スライドをゲーム内で表示します。発表や配信などに便利です。
[obs](https://obsproject.com/ja/download)を使って別々に表示する方法もあります。
localhostでslidevを実行して、ueのweb browserからアクセスします。
```sh
$ npm init slidev@latest
# pnpm
http://localhost:3030/
```

View File

@ -27,6 +27,8 @@ $ winget install git.git
|vim|https://github.com/vim/vim-win32-installer|vim.vim| |vim|https://github.com/vim/vim-win32-installer|vim.vim|
|git|https://github.com/git/git|git.git| |git|https://github.com/git/git|git.git|
|lazygit|https://github.com/jesseduffield/lazygit|jesseduffield.lazygit| |lazygit|https://github.com/jesseduffield/lazygit|jesseduffield.lazygit|
|node|https://github.com/nodejs/node|openjs.nodejs|
|nvm|https://github.com/nvm-sh/nvm|coreybutler.nvmforwindows|
## その他 ## その他
@ -39,6 +41,7 @@ $ winget install git.git
|unity|unity.unity| |unity|unity.unity|
|unity hub|unity.unityhub| |unity hub|unity.unityhub|
|godot|godot.godot| |godot|godot.godot|
|obs|obsproject.obsstudio|
## update ## update
@ -53,3 +56,8 @@ $ winget upgrade --all
昔は`winget`よりも[choco](https://chocolatey.org/install)や[scoop](https://github.com/ScoopInstaller/Scoop)を使っていました。 昔は`winget`よりも[choco](https://chocolatey.org/install)や[scoop](https://github.com/ScoopInstaller/Scoop)を使っていました。
## pnpm
```sh
$ npm -g i pnpm
```