在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:kidanger/Drystal开源软件地址:https://github.com/kidanger/Drystal开源编程语言:C 56.6%开源软件介绍:DrystalAboutDrystal is an opensource game engine. Games are programmed in Lua and can be exported to Javascript seamlessly. local drystal = require 'drystal'
function drystal.init()
print('Game initialized!')
end
function drystal.draw()
drystal.set_color('red')
drystal.draw_background()
end Authors
Mailing listhttps://groups.google.com/forum/#!forum/drystal To subscribe, send an e-mail to: To unsubscribe, send an e-mail to: To follow via RSS:
To follow via ATOM:
LicenseLGPLv3 for all Drystal code The external/ folder contains third-party libraries:
RepositoryThe main repository of Drystal is hosted on Github at http://github.com/kidanger/Drystal/ You can clone this repository with the following command
DocumentationThe documentation of the current release is available in HTML format and can be found at http://drystal.github.io/ DemosYou can find games made with Drystal at https://github.com/kidanger/drystal-demos RequirementsTo build Drystal, the following tools are needed:
And the following optional libraries:
When building the documentation, the following additional dependencies are needed:
When building a web version of Drystal, you also need Emscripten. To use the test coverage, the following tools are needed:
First timeNative buildOnce you cloned the repository and installed all the requirements, you can build Drystal in native mode (i.e. that will run on your computer).
You can now find the executable in the build directory:
or install it:
Web buildIn order to compile Drystal to javascript you will also need to install Emscripten, then you can run:
You will find the final javascript code (there will be two files drystal.js and drystal.mem.js) in the build-web-Release-src/ directory. Build optionsYou can configure the build to fit to your needs, for example if you do not need the physics engine, you can run:
Here is the list of options, their default and the additional dependencies needed to build:
The additional dependencies listed here are only for a native build. When building with Emscripten, all these dependencies are either provided by Emscripten or recompiled entirely (using a git submodule). For the web build, removing parts of Drystal that you do not use decrease the size of the final javascript code which helps loading the page of the game faster. (e.g. removing the physics module saves ~273 KiB) |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论