
Spark Game Toolkit ™ (SGT) est une bibliothèque de développement de jeux 2D puissante et flexible conçue pour rationaliser la création de jeux engageants et d'applications multimédias à l'aide du langage de programmation Delphi (Object Pascal). Que vous soyez un développeur chevronné ou que vous commenciez simplement, le SGT propose un ensemble robuste d'outils pour donner vie à vos idées sur les plateformes Windows.
Pour commencer avec Spark Game Toolkit, vous devrez avoir une compréhension de base des concepts de programmation et de développement de jeu Pascal.
Clone ou téléchargement :
Extraire des fichiers :
Installez les conditions préalables :
C:LLMgguf .Projet ouvert :
Spark Game Toolkit.groupproj situé dans le dossier src .Exécutez des exemples de projets :
ZipFile01 d'abord pour créer le Data.zip utilisé par d'autres exemples. Voici un exemple de base de la façon d'utiliser la boîte à outils Spark Game pour créer une fenêtre simple et de dessiner une forme:
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 se compose de plusieurs modules, chacun se concentrant sur des aspects spécifiques du développement de jeux:
La boîte à outils Spark Game est livrée avec divers exemples de projets présentant différentes fonctionnalités de la bibliothèque. Vous pouvez trouver ces exemples dans le répertoire examples du SDK.
Les contributions sont essentielles à l'évolution de la boîte à outils Spark Game. Que vous corrigez des bogues, que vous ajoutiez de nouvelles fonctionnalités ou améliorez la documentation, votre aide est grandement appréciée. Voici comment vous pouvez contribuer:
Les demandes de traction sont les bienvenues et encouragées. Ils sont un excellent moyen de proposer de nouvelles fonctionnalités, de corriger les bogues ou d'améliorer la documentation.
Si vous trouvez la boîte à outils de jeu Spark bénéfique pour vos projets, veuillez considérer:
Votre soutien et votre engagement jouent un rôle crucial dans la croissance et l'amélioration de ce projet open source. Merci d'avoir contribué à la boîte à outils Spark Game!
Spark Game Toolkit est publié sous la licence BSD 3 CLAUSE:
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.
Cette licence vous permet d'utiliser, de modifier et de distribuer le logiciel, à condition que vous incluez l'avis de droit d'auteur, les conditions et la clause de non-responsabilité. Pour plus de détails, veuillez consulter le fichier LICENSE inclus avec le SDK.
Pour le soutien, les demandes de fonctionnalités ou les demandes générales, veuillez utiliser les ressources suivantes:
Copyright © 2024-présent TinyBiggames ™ LLC. Tous droits réservés.