SparkGameToolkit
1.0.0

Spark Game Toolkit™(SGT)是一个功能强大且灵活的2D游戏开发库,旨在简化使用Delphi(Object Pascal)编程语言创建引人入胜的游戏和多媒体应用程序。无论您是经验丰富的开发人员还是刚开始,中士都提供了一套强大的工具,可以在Windows平台上实现您的想法。
为了开始使用Spark Game工具包,您需要对Pascal编程和游戏开发概念有基本的了解。
克隆或下载:
提取文件:
安装先决条件:
C:LLMgguf中。开放项目:
src文件夹中的Spark Game Toolkit.groupproj项目组文件。运行示例项目:
ZipFile01示例以创建Data.zip 。其他示例使用的zip。 这是如何使用Spark Game Toolkit创建简单窗口并绘制形状的一个基本示例:
uses
System.SysUtils,
SGT.Core;
var
LWindow: TWindow;
LFont: TFont;
LPos: TPoint;
begin
// Initialize a new window with the title "SGT: Window #01"
LWindow := TWindow.Init( ' SGT: Window #01 ' );
// Load the default font with size 10
LFont := TFont.LoadDefault(LWindow, 10 );
// Main game loop
while not LWindow.ShouldClose() do
begin
LWindow.StartFrame();
// Close the window if ESC key is pressed
if LWindow.GetKey(KEY_ESCAPE, isWasPressed) then
LWindow.SetShouldClose(True);
// Begin drawing on the window
LWindow.StartDrawing();
// Clear the screen with a dark slate brown color
LWindow.Clear(DARKSLATEBROWN);
// Draw FPS and Quit text on the screen
LPos := Math.Point( 3 , 3 );
LFont.DrawText(LWindow, LPos.X, LPos.Y, 0 , WHITE, haLeft, ' fps %d ' ,
[FrameLimitTimer.FrameRate()]);
LFont.DrawText(LWindow, LPos.X, LPos.Y, 0 , GREEN, haLeft, Utils.HudTextItem( ' Quit ' , ' ESC ' ),
[FrameLimitTimer.FrameRate()]);
// End drawing
LWindow.EndDrawing();
LWindow.EndFrame();
end ;
// Free resources
LFont.Free();
LWindow.Free();
end . Spark Game工具包由几个模块组成,每个模块都关注游戏开发的特定方面:
Spark Game Toolkit附带了各种示例项目,展示了图书馆的不同功能。您可以在SDK的examples目录中找到这些示例。
贡献对Spark Game工具包的演变至关重要。无论您是修复错误,添加新功能还是改进文档,都非常感谢您的帮助。您可以做出贡献:
欢迎和鼓励拉动请求。它们是提出新功能,修复错误或改进文档的绝佳方法。
如果您发现Spark Game工具包对您的项目有益,请考虑:
您的支持和参与在这个开源项目的增长和改进中起着至关重要的作用。感谢您为火花游戏工具包做出贡献!
Spark Game Toolkit在BSD 3范围许可证下发布:
BSD 3-Clause License
Copyright (c) 2024-present, tinyBigGAMES LLC
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
此许可证允许您使用,修改和分发软件,前提是您包括版权通知,条件和免责声明。有关更多详细信息,请参阅SDK中包含的LICENSE文件。
有关支持,功能请求或一般查询,请使用以下资源:
版权所有©2024-Present TinyBiggames™LLC。版权所有。