O Faraó-Maplestory é uma coleção de ferramentas para Maplestory, que contém um editor de cliente, um navegador de arquivos e o próprio cliente. Ele suporta os arquivos .wz (inclua GMS KMS CMS ).
A lógica de negócios é escrita por Lua.
| Windows10 | Outros |
|---|---|

O editor contém um navegador Maplestory-Filesystem, para que você possa usá-lo, encontre um recurso e adicione-o à cena do jogo

Além disso, apoia a ligação ao script como a unidade. Então você pode arrastar seu próprio script para um objeto de jogo específico

Se você deseja adicionar sua própria função, leia mais nativeapi para lua sob o documento.
Esses código neste repositório são o script Lua. O código C ++ será atualizado no futuro, porque eles estão muito confusos agora.
Este mecanismo inclui duas partes, uma é a lua que é usada para escrever negócios centrais e editor-plugin
Na estrutura nativa, ele suporta a função básica do motor, como áudio, gráficos, etc.

Na estrutura da Lua, inclui todos os componentes do motor superior (GameObject, Scene, Sprite, outros componentes da interface do usuário)


O GameObject é um contêiner e um objeto básico atualizável, desenhável, transformável, eventual, scriptable e serializável. É o objeto raiz em todo o motor. Tem uma forte conexão com o motor e o editor
Sprite é um objeto gráfico 2D que pode alterar sua cor, transformar (posição de rotação em escala, etc)

A cena também é um contêiner, que é responsabilidade para gerenciar toda a lógica de negócios de jogos e outros componentes como Sprite e UI. Você pode criá -lo usando o editor e pode ser alterado facilmente.
A interface do usuário é uma interface do usuário, são componentes como o botão TextView EditText .
O botão implementa a lógica do botão Maplestory original, para que você possa adicionar o botão das afirmações facilmente.
O TextView implementa o texto rico do Maplestory no nativo.

| Plataforma | Windows | Mac | Linux | Android | iOS | Trocar |
|---|---|---|---|---|---|---|
| Renderização básica | Feito (OpenGL 2.0) | - | - | Feito (OpenGL ES 2.0) | Feito (OpenGL ES 2.0) | - |
| Evento nativo | Feito (GLFW3) | |||||
| Áudio | Xaudio | - | - | Abre | Open | - |
| FileSystem | Feito | - | - | - | - | - |
| Simd | Sse | Sse | Sse | NÉON | NÉON | NÉON |
| Lua Wrapper | Programsing | |||||
| Editor | Programsing | |||||
| Ligação de script | Programsing | |||||
| Física | Futuro | |||||
| Sistema de partículas | Futuro | |||||
| Negócio de jogos | Futuro |
O objeto Matrix é criado pelo nativo porque envolve um grande número de cálculo.
-- 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
O componente de áudio é um mecanismo nativo que é desiginado para reproduzir música e efeito.
--- @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/>.