在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:gamaral/marshmallow_h开源软件地址:https://github.com/gamaral/marshmallow_h开源编程语言:C 80.8%开源软件介绍:Marshmallow Game Engine“The only game engine that tastes better slightly burned!” Aboutmarshmallow_h is an open-source game engine focused on 8-bit and 16-bit era 2D video games. This engine will act as the backbone and toolkit for the Marshmallow Entertainment System. DocumentationWe currently have two documentation sources, they need some serious work, but what we have is better than nothing. Doxygen (development)If you have doxygen installed, you can build the source documentation by running the following commands in the project root:
This will create a directory called 'docs' containing the HTML version of the documentation, it will then try to open the class list in the browser. WikiProject wiki with a few pages! https://github.com/gamaral/marshmallow_h/wiki Source
Notice the --recursive switch, it's needed so that submodules get checked out along with the main repository. SubmodulesYou may occasionally notice changes to the .gitsubmodules file, this usually means that it's time to update submodules, you can do so by running the following commands:
BuildingI include many predefined cmake init-caches, please take a look at the "cmake" directory in the project base, filenames are pretty self-explanatory. Linux/BSDRun the following from project base:
Marshmallow's go-to compiler is Clang, the example above uses gcc since it's almost guaranteed to be on the system (unlike Clang). Mac OSXCGL is currently unsupported (due to my laziness, so SDL and QT4 can be used for now). Note: Marshmallow is still under heavy development and this platform could break at any time, if you wish to help keeping it up to date feel free to contact me. XcodeRun the following from project base using Terminal:
Now launch Xcode and open the project file in the build directory. MakefilesRun the following from project base using Terminal:
WindowsRun the following from project base using the Command Line terminal:
Now open Visual Studio and open the MARSHMALLOW solution located in the build directory. Tested on Win7 x86/x64 (VS2010) Note: Marshmallow is still under heavy development and this platform could break at any time, if you wish to help keeping it up to date feel free to contact me. Raspberry PiIf you wish to test out marshmallow_h on the Raspberry Pi, you have a few ways of building. NativeRun the following commands in your marshmallow_h base:
Cross-compile (rpi-toolchain)To start, you will need to clone my RPi toolchain:
At this point you have the base of the toolchain but no actual submodules, you will now need to quick-clone the submodules:
The rpi-toolchain requires some special environment variables to be exported in order to work with marshmallow_h, this is handled by the nifty env file in the toolchain base:
Keep in mind you might need to source that same environment file again if you plan to reconfigure at a later time. We are now ready to configure marshmallow_h, change into the marshmallow's base directory and run the following commands:
At this point you can configure manually using the following command (optional):
Finally, we build and do the usual crossing of fingers:
BuildRootMy custom Raspberry Pi buildroot distro can be found here:
After you have configured and compiled buildroot to your liking, you will need to copy over the environment file supplied (or export the required environment variables by hand).
Alternatively, you could use the pre-compiled sdcard image and toolchain I made available for test driving the distro. It comes complete with the env file and can be downloaded here:
Keep in mind you might need to source that same environment file again if you plan to reconfigure at a later time. We are now ready to configure marshmallow_h, change into the marshmallow's base directory and run the following commands:
At this point you can configure manually using the following command (optional):
Finally, we build and do the usual crossing of fingers:
InstallationComponents:
Demo PackageTo create a demo package, you will need to run the following commands:
To test out the package, you can run the following command:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论