O'Reilly logo

Sams Teach Yourself, Godot Engine Game Development in 24 Hours: The Official Guide to Godot 3.0 by George Marques, Ariel Manzur

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 25. Native Code

What You’ll Learn in This Hour:

• Using GDNative to replace slow GDScript code

• Using third-party code via GDNative

• How the Godot source code is structured

• What common datatypes are used in the Engine’s source

• Creating custom modules

Godot’s open source nature lends itself to customization and letting users add their own code. There are a few documented ways of using native code in composition with Godot, making it possible to shape Godot the way you want it to be.

In this hour, you’ll learn how to set up a basic shared library that can be used from within Godot using GDNative. This shared library contains code that performs calculations that are more expensive in GDScript than they are in direct machine code. In another ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required