Godot Engine – Multi-platform 2D and 3D game engine
Go to file
Riteo 87cfc415a3 Add content scale stretch modes, implement integer scaling
Integer scaling is achieved (after aspect expansion) by "lying" to the
stretching code about the window's size, telling it that it's always an
integer multiple of the viewport so that it only gets stretched to an
integer factor.

This approach works with all stretch and aspect modes and doesn't
require handling for each, only requiring to "loosen up" some
self-excluding conditions (in other words, replacing some `else if`s
with just `if`s) regarding viewport offset and margin calculation (black
bars).

Includes a tiny usability change that adds a range hint for the content
scale factor between 0.5 to 8.0.

Co-Authored-By: Hugo Locurcio <hugo.locurcio@hugo.pro>
2023-08-10 19:45:47 +02:00
.github Merge pull request #75700 from akien-mga/ci-visible-whitespace 2023-04-05 20:21:19 +02:00
core Add content scale stretch modes, implement integer scaling 2023-08-10 19:45:47 +02:00
doc Add content scale stretch modes, implement integer scaling 2023-08-10 19:45:47 +02:00
drivers Merge pull request #74808 from bradc6/feature/AllowCustomOutputShaderGenFilepaths 2023-04-03 16:01:32 +02:00
editor Merge pull request #70901 from timothyqiu/tree-scroll-offset 2023-04-07 13:24:01 +02:00
main Add content scale stretch modes, implement integer scaling 2023-08-10 19:45:47 +02:00
misc CI: Visibly print trailing whitespace when static checks fail 2023-04-05 18:31:46 +02:00
modules Merge pull request #75034 from capnm/Fix_tvg_Picture_size 2023-04-05 20:21:04 +02:00
platform [Web] Fix keycode/physical keycode mixed up. 2023-04-06 09:40:59 +03:00
scene Add content scale stretch modes, implement integer scaling 2023-08-10 19:45:47 +02:00
servers Merge pull request #75665 from Malcolmnixon/penetration-depth-precision 2023-04-07 12:43:12 +02:00
tests Merge pull request #73121 from Scony/add-initial-navi-tests 2023-03-16 10:46:34 -07:00
thirdparty Update HarfBuzz to 7.1.0 2023-04-03 09:13:48 +02:00
.clang-format Style: Workaround clang-format 14 bug with Inline oneliner functions 2022-08-03 12:20:23 +02:00
.clang-tidy Style: Partially apply clang-tidy's cppcoreguidelines-pro-type-member-init 2022-05-02 16:28:25 +02:00
.editorconfig Add GDScript .editorconfig rules 2023-01-10 12:25:35 -05:00
.git-blame-ignore-revs Add Git blame ignore revisions file (used by GitHub's blame view) 2022-03-24 21:50:47 +01:00
.gitattributes File: Re-add support to skip CR (\r) in File::get_as_text 2022-08-01 00:40:35 +02:00
.gitignore Fix .gitignore ignores part of the committed repo. 2023-02-17 13:48:16 +01:00
.lgtm.yml
.mailmap Update AUTHORS and DONORS list 2023-02-24 14:46:21 +01:00
AUTHORS.md Update AUTHORS and DONORS list 2023-02-24 14:46:21 +01:00
CHANGELOG.md Fix "Convert Full Project" button not translated 2023-03-02 16:19:30 +08:00
CONTRIBUTING.md Update all outdated online documentation links 2023-01-14 19:38:00 +03:00
COPYRIGHT.txt Update HarfBuzz to 7.1.0 2023-04-03 09:13:48 +02:00
DONORS.md Update AUTHORS and DONORS list 2023-02-24 14:46:21 +01:00
gles3_builders.py Allow for external python scripts to call the build python headers via external scripts 2023-03-19 21:18:52 -07:00
glsl_builders.py Allow for external python scripts to call the build python headers via external scripts 2023-03-19 21:18:52 -07:00
icon_outlined.png
icon_outlined.svg
icon.png
icon.svg
LICENSE.txt One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
LOGO_LICENSE.md
logo_outlined.png
logo_outlined.svg
logo.png
logo.svg
methods.py Fix the Python type error when creating the .sln file 2023-03-25 15:09:50 +08:00
platform_methods.py Unify bits, arch, and android_arch into env["arch"] 2022-08-25 11:19:20 +02:00
README.md Minor typo and docs URL fixes 2023-02-28 13:38:01 +01:00
SConstruct Windows: Workaround missing DWRITE_FONT_WEIGHT value in old MinGW 2023-03-05 18:18:04 +01:00
version.py Bump version to 4.1-dev 2023-03-01 01:44:37 +01:00

Godot Engine

Godot Engine logo

2D and 3D cross-platform game engine

Godot Engine is a feature-packed, cross-platform game engine to create 2D and 3D games from a unified interface. It provides a comprehensive set of common tools, so that users can focus on making games without having to reinvent the wheel. Games can be exported with one click to a number of platforms, including the major desktop platforms (Linux, macOS, Windows), mobile platforms (Android, iOS), as well as Web-based platforms and consoles.

Free, open source and community-driven

Godot is completely free and open source under the very permissive MIT license. No strings attached, no royalties, nothing. The users' games are theirs, down to the last line of engine code. Godot's development is fully independent and community-driven, empowering users to help shape their engine to match their expectations. It is supported by the Software Freedom Conservancy not-for-profit.

Before being open sourced in February 2014, Godot had been developed by Juan Linietsky and Ariel Manzur (both still maintaining the project) for several years as an in-house engine, used to publish several work-for-hire titles.

Screenshot of a 3D scene in the Godot Engine editor

Getting the engine

Binary downloads

Official binaries for the Godot editor and the export templates can be found on the homepage.

Compiling from source

See the official docs for compilation instructions for every supported platform.

Community and contributing

Godot is not only an engine but an ever-growing community of users and engine developers. The main community channels are listed on the homepage.

The best way to get in touch with the core engine developers is to join the Godot Contributors Chat.

To get started contributing to the project, see the contributing guide.

Documentation and demos

The official documentation is hosted on Read the Docs. It is maintained by the Godot community in its own GitHub repository.

The class reference is also accessible from the Godot editor.

We also maintain official demos in their own GitHub repository as well as a list of awesome Godot community resources.

There are also a number of other learning resources provided by the community, such as text and video tutorials, demos, etc. Consult the community channels for more information.

Code Triagers Badge Translate on Weblate TODOs