GDevelop يدعم JavaScript لإنشاء لعبتك أو لتمديد محرك اللعبة.
يدعم GDevelop إضافة كتل شفرة JavaScript في أي وقت في أحداث اللعبة. إنها طريقة جيدة لتنفيذ خوارزمية معقدة أو إعادة استخدام الدالات من المكتبات مفتوحة المصدر. يمكن خلط الأحداث وكتل التعليمات البرمجية بسلاسة - حتى تتمكن من تنفيذ أجزاء أو حتى مجمل اللعبة باستخدام JavaScript!
The JavaScript editor is based on the super powerful Monaco Editor, extracted from Visual Studio Code. Intellisense autocompletions are provided and the editor supports advanced features like multi-selection for faster coding.
Learn more about using JavaScript.
GDevelop is modular and can be extended to suit your needs. In particular, all features available to games (objects, behaviors, events) are based on the extension system. You can quickly create new extensions for your game or contribute to existing ones as GDevelop is open-source.
Learn how to write JavaScript powered extensions and read the game engine reference documentation.
Finally, note that in most cases you don't even need to quit GDevelop to write an extension in JavaScript, as most extensions can be built in the editor, directly in your game project.