
Spark Game Toolkit ™ (SGT) es una poderosa y flexible biblioteca de desarrollo de juegos 2D diseñada para optimizar la creación de juegos interesantes y aplicaciones multimedia utilizando el lenguaje de programación Delphi (Object Pascal). Ya sea que sea un desarrollador experimentado o simplemente comience, SGT ofrece un conjunto robusto de herramientas para dar vida a sus ideas en las plataformas de Windows.
Para comenzar con Spark Game Toolkit, necesitarás tener una comprensión básica de la programación de Pascal y los conceptos de desarrollo de juegos.
Clon o descargar :
Extraer archivos :
Instalar requisitos previos :
C:LLMgguf .Proyecto abierto :
Spark Game Toolkit.groupproj ubicado en la carpeta src .Ejecutar proyectos de ejemplo :
ZipFile01 primero para crear el Data.zip utilizado por otros ejemplos. Aquí hay un ejemplo básico de cómo usar Spark Game Toolkit para crear una ventana simple y dibujar una forma:
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 consta de varios módulos, cada uno centrándose en aspectos específicos del desarrollo del juego:
El kit de herramientas de juego Spark viene con varios proyectos de ejemplo que demuestran diferentes características de la biblioteca. Puede encontrar estos ejemplos en el directorio de examples del SDK.
Las contribuciones son vitales para la evolución del kit de herramientas de juego Spark. Ya sea que esté arreglando errores, agregando nuevas funciones o mejorando la documentación, se agradece mucho su ayuda. Así es como puedes contribuir:
Las solicitudes de extracción son bienvenidas y alentadas. Son una excelente manera de proponer nuevas características, arreglar errores o mejorar la documentación.
Si encuentra beneficioso el kit de herramientas de juego Spark para sus proyectos, considere:
Su apoyo y compromiso juegan un papel crucial en el crecimiento y la mejora de este proyecto de código abierto. ¡Gracias por contribuir al kit de herramientas Spark Game!
Spark Game Toolkit se lanza bajo la licencia BSD 3 cláusula:
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.
Esta licencia le permite usar, modificar y distribuir el software, siempre que incluya el aviso de derechos de autor, las condiciones y el descargo de responsabilidad. Para obtener más detalles, consulte el archivo LICENSE incluido con el SDK.
Para obtener soporte, solicitudes de funciones o consultas generales, utilice los siguientes recursos:
Copyright © 2024-Present TinyBiggames ™ LLC. Reservados todos los derechos.