tag:blogger.com,1999:blog-21984879790213875922024-03-08T16:20:38.259+09:00ゲーム開発などの不定期日記自作ゲーム開発やその他の日記です。しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.comBlogger55125tag:blogger.com,1999:blog-2198487979021387592.post-44687268893352108402023-10-21T08:05:00.003+09:002023-10-21T08:05:39.142+09:00Windows11 home Bitlocker解除<p> <span style="background-color: white; color: #212121; font-family: Roboto; font-size: 17.3333px; font-variant-ligatures: none;">設定→プライバシーとセキュリティ→デバイスの暗号化(オフ)</span></p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-8549614523195323362023-08-17T18:09:00.003+09:002023-08-17T18:09:17.138+09:00Windows11での壁紙履歴削除<p><span style="color: #212121; font-family: Roboto; font-size: 13pt; font-variant-ligatures: none; text-decoration-line: inherit;">regeditから</span></p><p class="zfr3Q CDt4Ke " dir="ltr" style="box-sizing: border-box; color: #212121; font-family: Roboto; font-size: 13pt; font-variant-ligatures: none; line-height: 1.55; margin: 14px 0px 0px; outline: none; position: relative; text-decoration-line: inherit;"><span class="C9DxTc " style="box-sizing: border-box;">HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Wallpapers</span></p><p class="zfr3Q CDt4Ke " dir="ltr" style="box-sizing: border-box; color: #212121; font-family: Roboto; font-size: 13pt; font-variant-ligatures: none; line-height: 1.55; margin: 14px 0px 0px; outline: none; padding-bottom: 0px; position: relative; text-decoration-line: inherit;"><span class="C9DxTc " style="box-sizing: border-box;">を開いて対象のファイルを削除する</span></p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-17916399709338288312023-08-05T21:44:00.004+09:002023-08-05T21:45:11.870+09:00gsquareの座標の指定順番<p> <span style="color: #212121; font-family: Roboto; font-size: 13pt; white-space-collapse: preserve;">gsquareでX座標、Y座標を指定するが、その順番は以下の通り。</span></p><span style="color: #212121; font-family: Roboto; font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">12</span><span style="color: #212121; font-family: Roboto; font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"><br /></span><span style="color: #212121; font-family: Roboto; font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">43</span>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-67232240881541397502023-08-05T18:29:00.006+09:002023-08-05T18:35:28.037+09:00Windows11で以前のバージョンのMicrosoft IMEをOFFにしたい場合<p>設定→</p><p>時刻と言語→</p><p>言語と地域→</p><p>日本語(・・・言語のオプション)→</p><p>Microsoft IME(・・・キーボードオプション)→</p><p>全般→</p><p>以前のバージョンのMicrosoft IMEを使う(OFF)</p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-82876565135840348982023-07-07T12:48:00.001+09:002023-07-07T12:48:13.570+09:00language-hsp3のsettings.jsonの設定例<p> <span style="background-color: #002451; color: white; font-family: Consolas, "Courier New", monospace; font-size: 14px; white-space: pre;">{</span></p><div style="background-color: #002451; color: white; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 15px; white-space: pre;"><div> <span style="color: #ffeead;">"workbench.colorTheme"</span>: <span style="color: #d1f1a9;">"Tomorrow Night Blue"</span>,</div><div> <span style="color: #ffeead;">"files.autoGuessEncoding"</span>: <span style="color: #ffc58f;">true</span>,</div><div> <span style="color: #ffeead;">"debug.allowBreakpointsEverywhere"</span>: <span style="color: #ffc58f;">true</span>,</div><div> <span style="color: #ffeead;">"editor.lineHeight"</span>: <span style="color: #ffc58f;">15</span>,</div><div> <span style="color: #ffeead;">"editor.emptySelectionClipboard"</span>: <span style="color: #ffc58f;">false</span>,</div><div> <span style="color: #ffeead;">"editor.renderWhitespace"</span>: <span style="color: #d1f1a9;">"all"</span>,</div><br /><div> <span style="color: #ffeead;">"language-hsp3.compiler"</span>: <span style="color: #d1f1a9;">"D:</span><span style="color: #ffc58f;">\\</span><span style="color: #d1f1a9;">Tool</span><span style="color: #ffc58f;">\\</span><span style="color: #d1f1a9;">hsp37beta5_vscode</span><span style="color: #ffc58f;">\\</span><span style="color: #d1f1a9;">hspc.exe"</span>,</div><div> <span style="color: #ffeead;">"language-hsp3.helpman.path.local"</span>: <span style="color: #d1f1a9;">"D:</span><span style="color: #ffc58f;">\\</span><span style="color: #d1f1a9;">Tool</span><span style="color: #ffc58f;">\\</span><span style="color: #d1f1a9;">hsp37beta5_vscode</span><span style="color: #ffc58f;">\\</span><span style="color: #d1f1a9;">hsphelp</span><span style="color: #ffc58f;">\\</span><span style="color: #d1f1a9;">helpman.exe"</span>,</div><div> <span style="color: #ffeead;">"language-hsp3.makeCommands"</span>: [</div><div> <span style="color: #d1f1a9;">"-PmCa"</span>,</div><div> <span style="color: #d1f1a9;">"%FILEPATH%"</span></div><div> ],</div><div> <span style="color: #ffeead;">"language-hsp3.runCommands"</span>: [</div><div> <span style="color: #d1f1a9;">"-dwCRa"</span>,</div><div> <span style="color: #d1f1a9;">"%FILEPATH%"</span></div><div> ],</div><div> <span style="color: #ffeead;">"hsp3-debug-window-adapter.hsp3-root"</span>: <span style="color: #d1f1a9;">"D:</span><span style="color: #ffc58f;">\\</span><span style="color: #d1f1a9;">Tool</span><span style="color: #ffc58f;">\\</span><span style="color: #d1f1a9;">hsp37beta5_vscode"</span>,</div><div> </div><div> <span style="color: #ffeead;">"language-hsp3.executor.paths"</span>: {</div><div> <span style="color: #ffeead;">"3.51"</span>: {</div><div> <span style="color: #ffeead;">"hide"</span>: <span style="color: #ffc58f;">false</span>,</div><div> <span style="color: #ffeead;">"path"</span>: <span style="color: #d1f1a9;">"C:</span><span style="color: #ffc58f;">\\</span><span style="color: #d1f1a9;">hsp351</span><span style="color: #ffc58f;">\\</span><span style="color: #d1f1a9;">hspc.exe"</span>,</div><div> <span style="color: #ffeead;">"encoding"</span>: <span style="color: #d1f1a9;">"Shift_JIS"</span>,</div><div> <span style="color: #ffeead;">"buffer"</span>: <span style="color: #ffc58f;">204800</span>,</div><div> <span style="color: #ffeead;">"helpman"</span>: <span style="color: #d1f1a9;">"C:</span><span style="color: #ffc58f;">\\</span><span style="color: #d1f1a9;">hsp351</span><span style="color: #ffc58f;">\\</span><span style="color: #d1f1a9;">helphsp</span><span style="color: #ffc58f;">\\</span><span style="color: #d1f1a9;">helpman.exe"</span>,</div><div> <span style="color: #ffeead;">"commands"</span>: {</div><div> <span style="color: #ffeead;">"run"</span>: [</div><div> <span style="color: #d1f1a9;">"-dwCra"</span>,</div><div> <span style="color: #d1f1a9;">"%FILEPATH%"</span></div><div> ],</div><div> <span style="color: #ffeead;">"make"</span>: [</div><div> <span style="color: #d1f1a9;">"-PmCa"</span>,</div><div> <span style="color: #d1f1a9;">"%FILEPATH%"</span></div><div> ]</div><div> }</div><div> }</div><div> },</div><div> <span style="color: #ffeead;">"workbench.startupEditor"</span>: <span style="color: #d1f1a9;">"none"</span></div><div>}</div></div>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-80090981122527342672023-07-02T06:59:00.003+09:002023-07-02T06:59:30.250+09:00language-hsp3のsettings.jsonの設定例<p> <span style="color: #212121; font-family: Roboto; font-size: 13pt; white-space-collapse: preserve;">{</span></p><p dir="ltr" style="line-height: 1.55; margin-bottom: 0pt; margin-top: 10.5pt;"><span style="color: #212121; font-family: Roboto; font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> "language-hsp3.makeCommands": [</span></p><p dir="ltr" style="line-height: 1.55; margin-bottom: 0pt; margin-top: 10.5pt;"><span style="color: #212121; font-family: Roboto; font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> "-PmCa",</span></p><p dir="ltr" style="line-height: 1.55; margin-bottom: 0pt; margin-top: 10.5pt;"><span style="color: #212121; font-family: Roboto; font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> "%FILEPATH%"</span></p><p dir="ltr" style="line-height: 1.55; margin-bottom: 0pt; margin-top: 10.5pt;"><span style="color: #212121; font-family: Roboto; font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> ],</span></p><p dir="ltr" style="line-height: 1.55; margin-bottom: 0pt; margin-top: 10.5pt;"><span style="color: #212121; font-family: Roboto; font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> "language-hsp3.runCommands": [</span></p><p dir="ltr" style="line-height: 1.55; margin-bottom: 0pt; margin-top: 10.5pt;"><span style="color: #212121; font-family: Roboto; font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> "-dwCRaoout",</span></p><p dir="ltr" style="line-height: 1.55; margin-bottom: 0pt; margin-top: 10.5pt;"><span style="color: #212121; font-family: Roboto; font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> "%FILEPATH%"</span></p><p dir="ltr" style="line-height: 1.55; margin-bottom: 0pt; margin-top: 10.5pt;"><span style="color: #212121; font-family: Roboto; font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;"> ]</span></p><p dir="ltr" style="line-height: 1.55; margin-bottom: 0pt; margin-top: 10.5pt;"><span style="color: #212121; font-family: Roboto; font-size: 13pt; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space-collapse: preserve;">}</span></p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-66305555706468604152023-07-01T06:12:00.005+09:002023-07-01T06:12:55.678+09:00 VscodeでShift-JISのソースが文字化けするのを防ぐ方法について<p><span style="color: #212121; font-family: Roboto; font-size: 13pt; white-space-collapse: preserve;">ファイル→ユーザ設定→設定→テキストエディター↓ファイル→Auto Guess Encoding[v]にチェックを入れると自動で文字コードを推測して文字化けしなくなった。</span></p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-76464928333762992892023-03-29T12:30:00.001+09:002023-03-29T12:30:05.013+09:00デスクトップ録画で音声が録音されない不具合について<p> 1.コントロールパネルから「サウンド」→「録音」タブ→「ステレオミキサー」を有効にする。</p><p>2.「WavesのMaxxAudio Pro-スピーカーとマイクのオーディオコントロールとNX 3Dサウンド」→「Waves Nx」タブ→カメラトラッキングボタンをクリックして無効にする。</p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-30720376663263100662023-02-21T18:52:00.003+09:002023-02-21T18:52:53.731+09:00HSP3.7β4でexistが正常な値を返さない件について<p> 以下のファイルをプロジェクトフォルダ/app/jni/hsp3 にある同名のファイルに上書きすれば解決</p><p>https://dev.onionsoft.net/junk/filepack.cpp</p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-36293291957326889082023-01-07T19:26:00.000+09:002023-01-07T19:26:20.379+09:00Inspironでバッテリー駆動でディスプレイの色が薄くなってしまう場合<p>AMD software Adrenalin EditionのディスプレイタブのVari-Brightを無効にする</p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-39479544370638443082022-12-26T22:08:00.003+09:002022-12-26T22:08:35.756+09:00ディスプレイの色調整<p> Inspiron 14 5425のディスプレイの色が黄色がかっていたので、色調整の備忘録。</p><p>AMD Software: Adrenalin Edition → ディスプレイ → 色温度(7500)</p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-88931511641167862152022-12-25T11:55:00.008+09:002022-12-26T22:20:08.576+09:00ウィンドウサイズを画面サイズに合わせる(その2)<pre style="background-color: white; line-height: 1.1em; margin-left: 40px;"><h3 class="CDt4Ke zfr3Q OmQG5e" dir="ltr" id="h.j19lz92gehcb_l" style="background-color: transparent; border-color: initial; border-style: none; border-width: initial; box-sizing: border-box; line-height: 1.38; margin: 0px; outline: none; padding: 0px; pointer-events: none; position: relative; text-decoration-line: inherit; white-space: pre-wrap;" tabindex="-1"><span style="font-family: Arial;"><span style="font-size: 17.3333px;"><a href="https://sites.google.com/site/simakuroneko/home/product/hsp3dish/mod_screen-as" rel="" target="">mod_screen.asをダウンロード</a></span></span></h3><div><span style="font-family: Arial;">https://sites.google.com/site/simakuroneko/home/product/hsp3dish/mod_screen-as</span></div></pre>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-71118195935189949972022-12-14T21:20:00.003+09:002022-12-14T21:20:22.076+09:00dirlist命令について。<p> Windows版HSP3Dishでは使用可能だが、Android版だとエラーとなる。</p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-82806815563563980612022-12-11T08:48:00.003+09:002022-12-11T08:48:41.577+09:00Windows11の標準「Microsoftフォト」をアンインストールする方法。<p> <span style="color: #4f4f4f; font-family: Arial; font-size: 13pt; text-decoration-line: inherit; white-space: pre-wrap;">1.ウィンドウズマークを右クリック</span></p><p class="CDt4Ke zfr3Q" dir="ltr" style="border-color: initial; border-style: none; border-width: initial; box-sizing: border-box; color: #212121; font-family: Roboto; font-size: 13pt; font-variant-ligatures: none; line-height: 1.38; margin: 11pt 0px; outline: none; padding: 0px; position: relative; text-decoration-line: inherit; white-space: pre-wrap;"><span style="box-sizing: border-box; color: #4f4f4f; font-family: Arial; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal;">2.Windowsターミナル(管理者)をクリック</span></p><p class="CDt4Ke zfr3Q" dir="ltr" style="box-sizing: border-box; color: #212121; font-family: Roboto; font-size: 13pt; font-variant-ligatures: none; line-height: 1.55; margin: 14px 0px 0px; outline: none; position: relative; text-decoration-line: inherit; white-space: pre-wrap;"><span style="box-sizing: border-box; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal;">3.「</span>Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage<span style="box-sizing: border-box; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal;">」をコピペ</span></p><p class="CDt4Ke zfr3Q" dir="ltr" style="border-color: initial; border-style: none; border-width: initial; box-sizing: border-box; color: #212121; font-family: Roboto; font-size: 13pt; font-variant-ligatures: none; line-height: 1.38; margin: 11pt 0px; outline: none; padding: 0px; position: relative; text-decoration-line: inherit; white-space: pre-wrap;"><span style="box-sizing: border-box; color: #4f4f4f; font-family: Arial; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal;">4.アンインストール完了</span></p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-20773742082679816842022-12-09T21:06:00.005+09:002022-12-11T08:48:08.885+09:00 Windows11の標準「メール」をアンインストールする方法。<p><span style="color: #4f4f4f; font-family: Arial; font-size: 13pt; text-decoration-line: inherit; white-space: pre-wrap;">1.ウィンドウズマークを右クリック</span></p><p class="CDt4Ke zfr3Q" dir="ltr" style="border-color: initial; border-style: none; border-width: initial; box-sizing: border-box; color: #212121; font-family: Roboto; font-size: 13pt; font-variant-ligatures: none; line-height: 1.38; margin: 11pt 0px; outline: none; padding: 0px; position: relative; text-decoration-line: inherit; white-space: pre-wrap;"><span style="box-sizing: border-box; color: #4f4f4f; font-family: Arial; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal;">2.Windowsターミナル(管理者)をクリック</span></p><p class="CDt4Ke zfr3Q" dir="ltr" style="box-sizing: border-box; color: #212121; font-family: Roboto; font-size: 13pt; font-variant-ligatures: none; line-height: 1.55; margin: 14px 0px 0px; outline: none; position: relative; text-decoration-line: inherit; white-space: pre-wrap;">3.「Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage」をコピペ</p><p class="CDt4Ke zfr3Q" dir="ltr" style="border-color: initial; border-style: none; border-width: initial; box-sizing: border-box; color: #212121; font-family: Roboto; font-size: 13pt; font-variant-ligatures: none; line-height: 1.38; margin: 11pt 0px; outline: none; padding: 0px; position: relative; text-decoration-line: inherit; white-space: pre-wrap;"><span style="box-sizing: border-box; color: #4f4f4f; font-family: Arial; font-variant-east-asian: normal; font-variant-ligatures: normal; font-variant-numeric: normal;">4.アンインストール完了</span></p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-3133896746450921592022-11-19T22:10:00.004+09:002022-12-11T08:49:59.874+09:00タップした位置から仮想アナログスティックを動作させるサンプル<p><span style="font-family: arial; font-size: xx-small;">; このブログのコードはコピペだと正常に動作しません。<br /></span><span style="font-family: arial; font-size: x-small;">; mod_smart-37.zip の </span><span style="font-family: arial; font-size: xx-small;">sample-smart_analog_4.hsp を読み込んで実行してください。</span></p><p><span style="font-family: arial; font-size: xx-small;">#cmpopt varinit<span style="white-space: pre;"> </span>1</span></p><p><span style="font-size: xx-small;"><span style="font-family: arial;">#include "hsp3dish.as"<br /></span><span style="font-family: arial;">#include "mod_smart.as"</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial;">//-------------------------------------------------------------------------------------------- <br /></span><span style="font-family: arial;">#const SCREEN_WIDTH_SIZE</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">320<br /></span><span style="font-family: arial;">#const SCREEN_HEIGHT_SIZE</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">480<br /></span><span style="font-family: arial;">#const SCREEN_WIDTH_CENTER</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">SCREEN_WIDTH_SIZE / 2<br /></span><span style="font-family: arial;">#const SCREEN_HEIGHT_CENTER</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">SCREEN_HEIGHT_SIZE / 2</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial;">;--------------------------- <br /></span><span style="font-family: arial;">#const BUTTON_FIRST_TAP</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">0<br /></span><span style="font-family: arial;">#const BUTTON_ANALOG_STICK</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">1</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial;">;--------------------------- タップ関係<br /></span><span style="font-family: arial;">#const TAP_DETOUCH</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">0</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">; タップされてない<br /></span><span style="font-family: arial;">#const TAP_TOUCH</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">1</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">; タップされている<br /></span><span style="font-family: arial;">#const TAP_TOUCH_FINISH</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">2</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">; タップ終了<br /></span><span style="font-family: arial;">#const TAP_DOUBLE</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">3</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">; ダブルタップ</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial;">//-------------------------------------------------------------------------------------------- <br /></span><span style="font-family: arial;">*mod_smart_initialize</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">smart_init</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">smart_add : act_num(BUTTON_FIRST_TAP)</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">= stat<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">smart_add : act_num(BUTTON_ANALOG_STICK)</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">= stat</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial;">//-------------------------------------------------------------------------------------------- <br /></span><span style="font-family: arial;">*hensu_initialize</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial;"><span style="white-space: pre;"> </span>act_first_tap_stat<span style="white-space: pre;"> </span>= TAP_DETOUCH<br /></span><span style="font-family: arial;"><span> </span><span> </span>touch_x</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">= 0<br /></span><span style="font-family: arial;"><span> </span><span> </span>touch_y</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">= 0<br /></span><span style="font-family: arial;"><span> </span><span> </span>scroll_x</span><span style="font-family: arial; white-space: pre;"> <span> </span><span> </span> </span><span style="font-family: arial;">= 0.0<br /></span><span style="font-family: arial;"><span> </span><span> </span>scroll_y</span><span style="font-family: arial; white-space: pre;"> <span> </span><span> </span> </span><span style="font-family: arial;">= 0.0</span><span style="font-family: arial;"><br /></span><span style="font-family: arial;"><span> </span><span> </span>me_move_spd</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">= 50</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial;">//-------------------------------------------------------------------------------------------- <br /></span><span style="font-family: arial;">*setcls_initialize</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">setcls CLSMODE_SOLID, $000000</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial;">//-------------------------------------------------------------------------------------------- <br /></span><span style="font-family: arial;">*main</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">repeat<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">redraw 0<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">gosub *get_tap<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">gosub *put_me<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">redraw 1<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">await 16<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">loop</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial;">//-------------------------------------------------------------------------------------------- <br /></span><span style="font-family: arial;">*get_tap</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">color 0, 0, 255<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">boxf SCREEN_WIDTH_CENTER - 5 + scroll_x, SCREEN_HEIGHT_CENTER - 5 + scroll_y, SCREEN_WIDTH_CENTER + 5 + scroll_x, SCREEN_HEIGHT_CENTER + 5 + scroll_y</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">act_first_tap_stat = smart_one(act_num(BUTTON_FIRST_TAP), 0, 0, SCREEN_WIDTH_SIZE, SCREEN_HEIGHT_SIZE)</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">if act_first_tap_stat == TAP_TOUCH {<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">touch_x = smart_getx()<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">touch_y = smart_gety()<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">}</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">dim analog, 10</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">smart_analog act_num(BUTTON_ANALOG_STICK), analog, touch_x, touch_y, SCREEN_HEIGHT_SIZE</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">if analog(0) {<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">if analog(3) != 0 {<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">rad_waru_100man</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">= double(analog(8)) / 1000000</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">; 角度(ラジアン)/100万<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">add_x = (cos(rad_waru_100man) * me_move_spd)</span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">; X移動量取得<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">add_y = (sin(rad_waru_100man) * me_move_spd) </span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">; Y移動量取得<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">scroll_x += add_x<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">scroll_y += add_y<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">}<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">}</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">return</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial;">//-------------------------------------------------------------------------------------------- <br /></span><span style="font-family: arial;">*put_me</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">color 255, 0, 0<br /></span><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">circle touch_x - 10, touch_y - 10, touch_x + 10, touch_y + 10</span></span></p><p><span style="font-size: xx-small;"><span style="font-family: arial; white-space: pre;"> </span><span style="font-family: arial;">return</span></span></p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-88007373133954838162022-10-30T20:57:00.004+09:002022-10-30T20:57:47.519+09:00HSP3DishでのAndroid実機のスケーリング時の上下余白に余計なバッファが表示されてしまう不具合について<p>Android実機のスケーリング時の上下余白に余計なバッファが表示されてしまう不具合について、現在(2022/10/30)の時点で現象が特定の端末もしくは特定のAndroidのバージョンで発生している模様です。</p><p>通常画面のクリアは「redraw 0」の後に「color 0, 0, 0 : boxf」で画面を初期化しますが、上下余白に余計なバッファが書き込まれてしまう現象が起こる場合は、画面の自動クリア命令「setcls」命令を使用すると現象が起こらなくなります。</p><p>具体的には、</p><p>setcls CLSMODE_SOLID, $000000</p><p>とソースの頭あたりで一度だけ呼び出してあげるだけで、「redraw 0」を実行するするたびに自動で画面のクリアをしてくれます。</p><p>HSP3のドキュメントには手動による画面クリアのほうが処理速度が出るそうですが、自動画面クリアでも特に問題ないと思います。</p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-18996261837395826712022-10-26T15:28:00.006+09:002022-10-26T15:28:38.963+09:00イヤホンが認識されない不具合<p>イヤホンジャックを一度入れて、抜いて、再度入れると、イヤホンが認識されない不具合を解消できた。</p><p>手順は、設定→アプリ→スタートアップアプリ→「Realtek HD Audio Universal Service」をオンこれだけ。</p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-16505333826811947682022-08-28T22:16:00.000+09:002022-08-28T22:16:20.041+09:00HSP3.7β2での「hsp3dish.ini」の扱いについて<p> HSP3.7β2ではスクリプトと同フォルダにあるdpmファイル内にhsp3dish.iniが含まれている場合、同フォルダにhsp3dish.iniが存在してもdpmファイル内のhsp3dish.iniが読み込まれる模様。</p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-63852608805481148632022-04-10T21:05:00.002+09:002022-06-02T21:03:12.780+09:00Windows上でHSP3Dishを使ったWindows用アプリを作る際の画面サイズをディスプレイサイズに自動的に合わせるソース<p><span style="font-size: xx-small;">//このコードは、[F5]ではなく、エディタの[コンパイル+実行(C)]で実行してください。</span></p><p><span style="font-family: inherit; font-size: xx-small;"><br /></span></p><p><span style="font-family: inherit; font-size: xx-small;">#include "hsp3dish.as"</span></p><p><span style="font-family: inherit; font-size: xx-small;"><br /></span></p><p><span style="font-family: inherit; font-size: xx-small;">#const SCREEN_WIDTH_SIZE<span style="white-space: pre;"> </span>720</span></p><p><span style="font-family: inherit; font-size: xx-small;">#const SCREEN_HEIGHT_SIZE<span style="white-space: pre;"> </span>1280</span></p><p><span style="font-family: inherit; font-size: xx-small;">#const MINUS_SIZE<span style="white-space: pre;"> </span>250</span></p><p><span style="font-family: inherit; font-size: xx-small;"><br /></span></p><p><span style="font-family: inherit; font-size: xx-small;">#module</span></p><p><span style="font-family: inherit; font-size: xx-small;">; ---------- zoomxy(元の横大きさ, 元の縦大きさ, 変更したい横大きさ)</span></p><p><span style="font-family: inherit; font-size: xx-small;">#defcfunc zoomxy int moto_x, int moto_y, int henkou_x</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>return (henkou_x * 1000 / moto_x) * moto_y / 1000</span></p><p><span style="font-family: inherit; font-size: xx-small;"><br /></span></p><p><span style="font-family: inherit; font-size: xx-small;">; ---------- zoomyx(元の横大きさ, 元の縦大きさ, 変更したい縦大きさ)</span></p><p><span style="font-family: inherit; font-size: xx-small;">#defcfunc zoomyx int moto_x, int moto_y, int henkou_y</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>return (henkou_y * 1000 / moto_y) * moto_x / 1000</span></p><p><span style="font-family: inherit; font-size: xx-small;">#global</span></p><p><span style="font-family: inherit; font-size: xx-small;"><br /></span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>plat_form = PLATFORM_WINDOWS</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>getreq plat_form, SYSREQ_PLATFORM</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>if plat_form == PLATFORM_WINDOWS {</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>if ginfo_dispx > ginfo_dispy {</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>display_size = ginfo_dispx - MINUS_SIZE</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>} else {</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>display_size = ginfo_dispy - MINUS_SIZE</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>}</span></p><p><span style="font-family: inherit; font-size: xx-small;"><br /></span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>window_size_width<span style="white-space: pre;"> </span>= SCREEN_WIDTH_SIZE</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>window_size_height<span style="white-space: pre;"> </span>= SCREEN_HEIGHT_SIZE</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>window_size_change_width<span style="white-space: pre;"> </span>= display_size</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>window_size_y<span style="white-space: pre;"> </span>= zoomxy(window_size_width, window_size_height, window_size_change_width)</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>window_size_x<span style="white-space: pre;"> </span>= zoomyx(window_size_width, window_size_height, window_size_y)</span></p><p><span style="font-family: inherit; font-size: xx-small;"><br /></span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>if window_size_y > ginfo_dispy {</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>display_size<span style="white-space: pre;"> </span>= ginfo_dispy - MINUS_SIZE</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>window_size_change_h<span style="white-space: pre;"> </span>= display_size</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>window_size_x<span style="white-space: pre;"> </span>= zoomyx(window_size_width, window_size_height, window_size_change_h)</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>window_size_y<span style="white-space: pre;"> </span>= zoomxy(window_size_width, window_size_height, window_size_x)</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>}</span></p><p><span style="font-family: inherit; font-size: xx-small;"><br /></span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>screen 0, window_size_x, window_size_y, 0, (ginfo_dispx - window_size_x) / 2, (ginfo_dispy - window_size_y) / 2</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>scale_x = double(window_size_x) / double(window_size_width)</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>scale_y = double(window_size_y) / double(window_size_height)</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>viewcalc vptype_2d, scale_x, scale_y</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>}</span></p><p><span style="font-family: inherit; font-size: xx-small;"><br /></span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>repeat</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>redraw 0</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>color 0, 0, 0 : boxf 0, 0, SCREEN_WIDTH_SIZE, SCREEN_HEIGHT_SIZE</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>redraw 1</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>await 16</span></p><p><span style="font-family: inherit; font-size: xx-small;"><span style="white-space: pre;"> </span>loop</span></p><div><br /></div>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-78818154386691274442022-02-02T22:39:00.000+09:002022-02-02T22:39:06.770+09:00HSP3Dish使用での#defcfunc内から別の#defcfuncを使用すると落ちる<p>タイトルの通り、HSP3Dish使用での#defcfunc内から別の#defcfuncを使用すると落ちる現象が未だに直っていない。</p><p>mod_smart.as, mod_dstr.as でそれぞれモジュール内で同じルーチンを使用している箇所があるのだが、これを別の#defcfuncにして値を返すように修正すると、Windows上では正常に動作するが、Android実機では落ちてしまう。</p><p>仕方がないので同じルーチンを長々と書いております。</p><p><br /></p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-19069563406085232452021-12-27T17:57:00.002+09:002021-12-27T17:57:14.453+09:00HSP3Dish備忘録<p>プロジェクトフォルダの「assets」フォルダにあらかじめ好きなフォルダを入れておいても大丈夫みたい。</p><p>画像は「test」フォルダを作って中に「abc.txt」を入れてあるプロジェクト。</p><p>Android上で実行させるとちゃんと「abc.txt」の中身を表示してくれた。</p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-22974699853252888942021-11-09T21:39:00.001+09:002021-11-09T21:39:13.762+09:00メモリ増設<p> <span style="background-color: white; color: #4f4f4f; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 14.85px;">メインPCのInspiron 14 5405のメモリを16GBから32GBに増設した。</span></p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-51743397083324149492021-10-30T09:53:00.005+09:002021-10-30T09:53:52.109+09:00<p> Windows11のウィジェットをアンインストールする方法。</p><p>1.ウィンドウズマークを右クリック</p><p>2.Windowsターミナル(管理者)をクリック</p><p>3.「Get-AppxPackage MicrosoftWindows.Client.WebExperience | Remove-AppxPackage」をコピペ</p><p>4.アンインストール完了</p><p><br /></p><p><br /></p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0tag:blogger.com,1999:blog-2198487979021387592.post-26209761981174859272021-10-08T17:08:00.000+09:002021-10-08T17:08:05.729+09:00<p>MiniTool ShadowMaker Free 3.6でクローンを作り、MiniTool Partition Wizard 無料版 12.5で回復パーティションを削除してその場所をDドライブにした。Dドライブにツールやらアプリを全部移動した。</p>しまくろねこhttp://www.blogger.com/profile/02163006440654727173noreply@blogger.com0