
Spark Game Toolkit ™ (SGT)는 Delphi (Object Pascal) 프로그래밍 언어를 사용하여 매력적인 게임 및 멀티미디어 응용 프로그램의 제작을 간소화하도록 설계된 강력하고 유연한 2D 게임 개발 라이브러리입니다. 노련한 개발자이든 방금 시작하든 SGT는 Windows 플랫폼에서 아이디어에 생명을 불어 넣을 수있는 강력한 도구 세트를 제공합니다.
Spark Game Toolkit을 시작하려면 Pascal 프로그래밍 및 게임 개발 개념에 대한 기본적인 이해가 필요합니다.
복제 또는 다운로드 :
파일 추출 :
전제 조건 설치 :
C:LLMgguf 에 배치하십시오.개방 프로젝트 :
Spark Game Toolkit.groupproj 로드하십시오. GroupProj 프로젝트 그룹 파일은 src 폴더에 있습니다.실행 예제 프로젝트 :
ZipFile01 예제를 컴파일하고 실행하십시오. 먼저 다른 예제에서 사용하는 Data.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 Toolkit은 여러 모듈로 구성되며 각 모듈은 게임 개발의 특정 측면에 중점을 둡니다.
Spark Game Toolkit에는 라이브러리의 다양한 기능을 보여주는 다양한 예제 프로젝트가 제공됩니다. SDK의 examples 디렉토리에서 이러한 예제를 찾을 수 있습니다.
기여는 Spark Game Toolkit의 진화에 필수적입니다. 버그를 고치거나 새로운 기능 추가 또는 문서 개선에 관계없이 도움을 주셔서 감사합니다. 기여하는 방법은 다음과 같습니다.
풀 요청을 환영하고 권장합니다. 새로운 기능을 제안하거나 버그를 수정하거나 문서화를 개선하는 훌륭한 방법입니다.
Spark Game Toolkit이 프로젝트에 유리한 것을 발견하면 다음을 고려하십시오.
귀하의 지원과 참여는이 오픈 소스 프로젝트의 성장과 개선에 중요한 역할을합니다. Spark Game Toolkit에 기여해 주셔서 감사합니다!
Spark Game Toolkit은 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.
이 라이센스를 사용하면 저작권 통지, 조건 및 면책 조항이 포함 된 경우 소프트웨어를 사용, 수정 및 배포 할 수 있습니다. 자세한 내용은 SDK에 포함 된 LICENSE 파일을 참조하십시오.
지원, 기능 요청 또는 일반 문의는 다음 리소스를 사용하십시오.
Copyright © 2024-Present TinyBigGames ™ LLC. 모든 권리 보유.