{"id":19731369,"url":"https://github.com/clpsplug/mrce","last_synced_at":"2026-02-13T13:48:09.279Z","repository":{"id":34589968,"uuid":"38537153","full_name":"Clpsplug/MRCE","owner":"Clpsplug","description":"Simple extension to make your HSP game compatible to multiple resolutions. THIS IS NOT AN ACTIONSCRIPT FILE!","archived":false,"fork":false,"pushed_at":"2015-07-12T03:46:14.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T03:31:42.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"ActionScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Clpsplug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-04T14:51:04.000Z","updated_at":"2015-07-10T13:21:21.000Z","dependencies_parsed_at":"2022-09-14T16:51:14.595Z","dependency_job_id":null,"html_url":"https://github.com/Clpsplug/MRCE","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Clpsplug/MRCE","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clpsplug%2FMRCE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clpsplug%2FMRCE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clpsplug%2FMRCE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clpsplug%2FMRCE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clpsplug","download_url":"https://codeload.github.com/Clpsplug/MRCE/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clpsplug%2FMRCE/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275071546,"owners_count":25400398,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T00:20:37.103Z","updated_at":"2026-02-13T13:48:04.238Z","avatar_url":"https://github.com/Clpsplug.png","language":"ActionScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HSP Multi-Resolution Compatibility Extension\n\nHSPで作られた全画面表示のゲームなどを、複数解像度に簡単に対応させるための拡張です  \nやっていることは非常に簡単で、*描画先のウィンドウを別のウィンドウに退避させ、その描画内容を拡縮する*ことで複数解像度に対応させています。  \nしたがって、元の描画サイズがあまりに小さいと表示が荒くなったりするので注意してください。\n\n## 使い方\n\nファイル`MRCE.as`をプロジェクトフォルダに置いた上で、\n\n```\n#include \"MRCE.as\"\n```\n\nでファイルをインクルードしてください。この状態で実行して以下のようになれば成功です。\n\n![画面](http://i.gyazo.com/28b691c551434ef73bd2c4818211fc22.png)\n\n基本的な使い方は以下のようになります。\n\n```\n#include \"MRCE.as\"\n\ninitDrawing 640, 480\n\nsetWindow\n\nrepeat\n\n\tstartDrawing\n\n\t// Draw Something\n\t\n\tendDrawing 1000/60\n\nloop\n\n```\n\n## 命令\n\n### `initDrawing`\n\n描画用画面の初期化\n\n**`initDrawing p1, p2`**\n\np1=0〜(640) : 描画用画面の幅  \np2=0〜(480) : 描画用画面の高さ  \n\n#### 解説\n\n描画用の画面を初期化します。内部では、ウィンドウID 255番のウィンドウをp1, p2で与えられた幅、高さで非表示初期化します。\n\n#### 注意\n\nこの後**ウィンドウID 255番を別の画像などで初期化することはできなくなります。**\n\n---\n\n### `setWindow`\n\n表示用画面の初期化\n\n**`setWindow`**\n\n#### 解説\n\n表示用の画面(すなわちウィンドウID0番)を初期化して全画面表示を開始します。\n\n#### 注意\n\n**この画面にタイトルバーはありません。** 閉じるには、Alt+F4を使用してください。しかし、**普通はなんらかの方法でユーザーが`end`命令にたどり着けるようにするべきです。**\n\n---\n\n### `startDrawing`\n\n描画開始\n\n**`startDrawing p1, p2, p3`**\n\np1,p2,p3=0～255(0) : 色コード（R,G,Bの輝度）\n\n#### 解説\n\n仮装画面上をp1, p2, p3で指定された色でクリアし、描画処理を開始します。\n\n#### 注意\n\nこのコマンドを打った後は、すべての描画処理系のコマンドが仮装画面に対して行われます。  \nしたがって、表示される画面の見た目の変化は全く起こらなくなります。  \n**このコマンドは必ず`endDrawing`とセットで使われます。**\n\n---\n\n### `endDrawing`\n\n描画開始\n\n**`endDrawing p1, p2`**\n\np1=0～(24) : 画面更新後の待ち時間(1ms単位)  \np2=0〜1(0) : ズームのモード\n\n#### 解説\n\n`startDrawing`によって開始された描画処理を終了し、表示用画面に反映します。\np2が1の場合は、拡大縮小時にハーフトーンを使用します(Windows9Xでは動作しません。)が、*パフォーマンスが落ちる可能性が高いです。*\n\n#### 注意\n\nふつうは`startDrawing`とセットで使います。\n\n\n## 追加予定の機能\n\n* 画面の解像度の強制変更オプションの追加\n* スキャンラインの描画設定\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclpsplug%2Fmrce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclpsplug%2Fmrce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclpsplug%2Fmrce/lists"}