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。版權所有。