MapleStory Porting
1.0.0
Pharaoh-Maplestory是MapleStory的工具集合,其中包含客户端编辑器,文件浏览器和客户端本身。它支持.wz文件(包括GMS KMS CMS )。
业务逻辑由LUA撰写。
| Windows10 | 其他的 |
|---|---|

编辑器包含一个Maplestory-Filesystem-browser,因此您可以使用它找到资源并将其添加到游戏场景中

除了统一,它支持脚本结合。因此,您可以将自己的脚本拖到一些特定的游戏对象

如果您想添加自己的功能,请在文档下阅读更多的lua nativeapi。
此存储库中的那些代码是LUA脚本。 C ++代码将来会更新,因为它们现在是如此的混乱。
该引擎包括两个部分,一个是用于编写核心业务和编辑的LUA
在本机框架中,它支持基本的引擎功能,例如音频,图形等

在LUA框架中,它包括所有上部发动机组件(游戏对象,场景,精灵,其他UI组件)


GameObject是一个容器和基本的可更新,可绘制的,可转换的,Extable,可脚本化的对象。这是整个引擎中的根对象。它与引擎和编辑有密切的联系
Sprite是一个2D图形对象,可以改变其颜色,变换(比例旋转后等)

场景也是一个容器,负责管理整个游戏业务逻辑和其他组件(例如Sprite and UI)的责任。您可以使用编辑器来创建它,并且可以轻松切换。
UI是用户界面,这些组件是按钮TextView Edittext 。
该按钮实现了原始的MapLestory按钮逻辑,因此您可以轻松地从断言中添加按钮。
TextView以本机中实现MapLestory Rich-Text 。

| 平台 | 视窗 | 苹果 | Linux | 安卓 | ios | 转变 |
|---|---|---|---|---|---|---|
| 基本渲染 | 完成(OpenGL 2.0) | - | - | 完成(OpenGL ES 2.0) | 完成(OpenGL ES 2.0) | - |
| 本地事件 | 完成(GLFW3) | |||||
| 声音的 | xaudio | - | - | 打开 | 开放式 | - |
| 文件系统 | 完毕 | - | - | - | - | - |
| simd | SSE | SSE | SSE | 氖 | 氖 | 氖 |
| Lua包装纸 | 专业 | |||||
| 编辑 | 专业 | |||||
| 脚本绑定 | 专业 | |||||
| 物理 | 未来 | |||||
| 粒子系统 | 未来 | |||||
| 游戏业务 | 未来 |
矩阵对象是由本机创建的,因为它涉及大量计算。
-- 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/>.