Pharaoh-Maplestoryは、Maplestory用のツールのコレクションであり、クライアント編集者、ファイルブラウザー、クライアント自体が含まれています。 .WZファイルをサポートします( GMS KMS CMSを含む)。
ビジネスロジックはLuaによって書かれています。
| Windows10 | その他 |
|---|---|

編集者にはMaplestory-Filesystem-Browserが含まれているので、リソースを見つけてゲームシーンに追加できます

それに加えて、それはUnityのようなスクリプトバインディングをサポートします。そのため、独自のスクリプトを特定のGameObjectにドラッグできます

独自の機能を追加したい場合は、文書の下でLUAのNativeapiをご覧ください。
このリポジトリのこれらのコードはLUAスクリプトです。 C ++コードは、今ではとても乱雑になっているため、将来更新されます。
このエンジンには2つの部分が含まれています。1つは、コアビジネスとエディタープラギンの作成に使用されるLUAです。
ネイティブフレームワークでは、オーディオ、グラフィックスなどの基本的なエンジン機能をサポートしています

LUAフレームワークには、すべてのアッパーエンジンコンポーネント(GameObject、シーン、スプライト、その他のUIコンポーネント)が含まれます。


GameObjectは、コンテナであり、基本的な更新可能、描画可能、変換可能、イベント可能、スクリプト可能、シリアル化可能なオブジェクトです。エンジン全体のルートオブジェクトです。エンジンとエディターと強いつながりがあります
Spriteは、色を変更したり、変換することができる2Dグラフィックオブジェクトです(スケール回転ポジションなど)

シーンはコンテナでもあり、ゲームビジネスロジック全体やSpriteやUIなどのコンポーネント全体を管理するための責任です。エディターを使用して作成でき、簡単に切り替えることができます。
UIはユーザーインターフェイスであり、これらはボタンTextView Edittextなどのコンポーネントです。
ボタンは元のMaplestoryボタンロジックを実装するため、アサートから簡単にボタンを追加できます。
TextViewは、ネイティブのMaplestory Rich-Textを実装しています。

| プラットフォーム | Windows | マック | Linux | アンドロイド | iOS | スイッチ |
|---|---|---|---|---|---|---|
| 基本レンダリング | done(opengl 2.0) | - | - | done(opengl es 2.0) | done(opengl es 2.0) | - |
| ネイティブイベント | done(glfw3) | |||||
| オーディオ | Xaudio | - | - | オープンル | オープン | - |
| ファイルシステム | 終わり | - | - | - | - | - |
| シムド | SSE | SSE | SSE | ネオン | ネオン | ネオン |
| ルアラッパー | プログシング | |||||
| エディタ | プログシング | |||||
| スクリプトバインディング | プログシング | |||||
| 物理 | 未来 | |||||
| 粒子システム | 未来 | |||||
| ゲームビジネス | 未来 |
マトリックスオブジェクトは、多数の計算を伴うため、ネイティブによって作成されます。
-- create a zero matrix
local matrix = Matrix . new ()
-- or
local matrix = Matrix . new ({
1 , 0 , 0 , 0 ,
0 , 1 , 0 , 0 ,
0 , 0 , 1 , 0 ,
0 , 0 , 0 , 1
})
-- create an identity
local matrix = Matrix . identity ()
-- there are others apis for transform
function setTranslation ( x , y , z ) end
function setRotation ( Quaternion ) end
function setScale ( x , y , z ) end
function setOrthographic ( l , r , t , b , zNearPlane , zFarPlane ) end
-- get a inverse matrix
-- @ return a new matrix
function invert () end
-- matrix also support the mul operator
local m = Matrix . new () * Matrix . new ()
-- create a Quaternion
local q = Quaternion . new ()
-- or
local q = Quaternion . identity ()
-- set euler angle
function setEulerAngles ( x , y , z ) end
-- combine with matrix
local q = Quaternion . new ()
q : setEulerAngles ( x , y , z )
local rotationMatrix = Matrix . new ()
rotationMatrix : setRotation ( self . rotation ) -- get a wz-node under UI.wz/UIWindow.img/AdminClaim
-- @ return the WzNode which is a lua object
local node = WzFile . ui [ " UIWindow.img " ][ " AdminClaim " ][ " BtPClaim " ] local node = ......
-- create a sprite with given node
local sprite = Sprite . new ( node )
-- add into you scene
scene : addChild ( sprite )
-- parse the path resource
wz . flat ( string path ) -> table {
name -> WzNode ( lightuserdata ),
name2 -> WzNode ( lightuserdata )
.....
}
-- expand the rawPtr, get all sub node in it
wz . expand ( rawPtr ) -> table {
name -> WzNode ( lightuserdata ),
name2 -> WzNode ( lightuserdata )
.....
}
-- convert the current node into different data type
wz . toInt (@ lightuserdata rawPtr , default ) -> lua_number
wz . toReal (@ lightuserdata rawPtr , default ) -> lua_number
wz . toString (@ lightuserdata rawPtr , default ) -> lua_string
wz . toVector (@ lightuserdata rawPtr ) -> lua_number
オーディオコンポーネントは、音楽と効果を再生するために除外されたネイティブエンジンです。
--- @param nodePath string
audio . playBGM ( nodePath )
--- @param node string or id ( which is pre-defined )
audio . playEffect ( node )
-- there are all pre-defined audio effects
audio . BUTTONCLICK ,
audio . BUTTONOVER ,
audio . SELECTCHAR ,
audio . GAMESTART ,
audio . SCROLLUP ,
audio . ATTACK ,
audio . ALERT ,
audio . JUMP ,
audio . DROP ,
audio . PICKUP ,
audio . PORTAL ,
audio . LEVELUP ,
audio . DIED ,
audio . INVITE ,
audio . BUY_SHOP_ITEM ,
audio . USE ,
audio . TRANSFORM ,
audio . QUEST_ALERT ,
audio . QUEST_CLEAR ,
audio . ENCHANT_FAILURE ,
audio . ENCHANT_SUCCESS ,
This file is part of the PharaohStroy MMORPG client
Copyright ?2020-2022 Prime Zeng
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http:www.gnu.org/licenses/>.