
Spark Game Toolkit ™ (SGT) ist eine leistungsstarke und flexible Bibliothek für 2D -Spieleentwicklung, mit der die Erstellung von Spielen und Multimedia -Anwendungen mithilfe der Programmiersprache Delphi (Object Pascal) rationalisiert wurde. Egal, ob Sie ein erfahrener Entwickler sind oder gerade erst anfangen, Sgt. Es bietet eine robuste Reihe von Tools, um Ihre Ideen auf Windows -Plattformen zum Leben zu erwecken.
Um mit Spark Game Toolkit zu beginnen, müssen Sie ein grundlegendes Verständnis für Pascal -Programmier- und Spielentwicklungskonzepte haben.
Klon oder Download :
Dateien extrahieren :
Voraussetzungen installieren :
C:LLMgguf .Offenes Projekt :
Spark Game Toolkit.groupproj -Projektgruppendatei im src -Ordner.Beispielprojekte ausführen :
ZipFile01 -Beispiel zuerst kompilieren und ausführen können, um die Data.zip zu erstellen.zip, die von anderen Beispielen verwendet wird. Hier ist ein grundlegendes Beispiel dafür, wie Sie Spark Game Toolkit verwenden, um ein einfaches Fenster zu erstellen und eine Form zu zeichnen:
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 Toolkit besteht aus mehreren Modulen, die sich jeweils auf bestimmte Aspekte der Spielentwicklung konzentrieren:
Das Spark Game Toolkit verfügt über verschiedene Beispielprojekte, die verschiedene Funktionen der Bibliothek zeigen. Sie finden diese Beispiele im examples des SDK.
Beiträge sind für die Entwicklung des Spark Game Toolkits von entscheidender Bedeutung. Egal, ob Sie Fehler beheben, neue Funktionen hinzufügen oder die Dokumentation verbessern, Ihre Hilfe wird sehr geschätzt. So können Sie dazu beitragen:
Pull -Anfragen sind willkommen und ermutigt. Sie sind eine hervorragende Möglichkeit, neue Funktionen vorzuschlagen, Fehler zu beheben oder die Dokumentation zu verbessern.
Wenn Sie das Spark Game Toolkit für Ihre Projekte von Vorteil finden, sollten Sie bitte:
Ihre Unterstützung und Ihr Engagement spielen eine entscheidende Rolle für das Wachstum und die Verbesserung dieses Open-Source-Projekts. Vielen Dank, dass Sie zum Spark Game Toolkit beigetragen haben!
Spark Game Toolkit wird unter der BSD 3-Clause-Lizenz veröffentlicht:
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.
Mit dieser Lizenz können Sie die Software verwenden, ändern und verteilen, sofern Sie die Copyright -Mitteilung, die Bedingungen und den Haftungsausschluss enthalten. Weitere Informationen finden Sie in der im SDK enthaltenen LICENSE .
Für Unterstützung, Feature -Anfragen oder allgemeine Anfragen verwenden Sie die folgenden Ressourcen:
Copyright © 2024-Present TinyBiggames ™ LLC. Alle Rechte vorbehalten.