Using JavaScript with GDevelop

GDevelop يدعم JavaScript لإنشاء لعبتك أو لتمديد محرك اللعبة.

JavaScript can be used to write part of a game, alongside with events.

أضف كتَل كود 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.

Extend your game or GDevelop with JavaScript extensions

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.

يتم استخدام السِمة الداكنة في GDevelop. يأتي محرر الأكواد أيضًا بالعديد من السِمات الجميلة!