
Spark Game Toolkit ™ (SGT) adalah perpustakaan pengembangan game 2D yang kuat dan fleksibel yang dirancang untuk merampingkan pembuatan game yang menarik dan aplikasi multimedia menggunakan bahasa pemrograman Delphi (objek Pascal). Apakah Anda seorang pengembang berpengalaman atau baru memulai, SGT menawarkan serangkaian alat yang kuat untuk menghidupkan ide -ide Anda di platform Windows.
Untuk memulai dengan Spark Game Toolkit, Anda harus memiliki pemahaman dasar tentang pemrograman Pascal dan konsep pengembangan game.
Klon atau unduh :
Ekstrak file :
Instal Prasyarat :
C:LLMgguf .Proyek Terbuka :
Spark Game Toolkit.groupproj yang terletak di folder src .Jalankan contoh proyek :
ZipFile01 terlebih dahulu untuk membuat Data.zip yang digunakan oleh contoh lain. Berikut adalah contoh dasar tentang cara menggunakan spark gim toolkit untuk membuat jendela sederhana dan menggambar bentuk:
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 terdiri dari beberapa modul, masing -masing berfokus pada aspek spesifik pengembangan game:
Spark Game Toolkit hadir dengan berbagai contoh proyek yang menunjukkan berbagai fitur perpustakaan. Anda dapat menemukan contoh -contoh ini di direktori examples SDK.
Kontribusi sangat penting untuk evolusi Spark Game Toolkit. Apakah Anda memperbaiki bug, menambahkan fitur baru, atau meningkatkan dokumentasi, bantuan Anda sangat dihargai. Begini cara Anda dapat berkontribusi:
Permintaan tarik diterima dan didorong. Mereka adalah cara terbaik untuk mengusulkan fitur baru, memperbaiki bug, atau meningkatkan dokumentasi.
Jika Anda menemukan The Spark Game Toolkit bermanfaat untuk proyek Anda, silakan pertimbangkan:
Dukungan dan keterlibatan Anda memainkan peran penting dalam pertumbuhan dan peningkatan proyek open-source ini. Terima kasih telah berkontribusi pada Spark Game Toolkit!
Spark Game Toolkit dirilis di bawah lisensi 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.
Lisensi ini memungkinkan Anda untuk menggunakan, memodifikasi, dan mendistribusikan perangkat lunak, asalkan Anda menyertakan pemberitahuan hak cipta, ketentuan, dan penafian. Untuk detail lebih lanjut, silakan merujuk ke file LICENSE yang disertakan dengan SDK.
Untuk dukungan, permintaan fitur, atau pertanyaan umum, silakan gunakan sumber daya berikut:
Hak Cipta © 2024-Present TinyBigGames ™ LLC. Semua hak dilindungi undang -undang.