Godot Engine – Multi-platform 2D and 3D game engine
Go to file
Hein-Pieter van Braam 8ff6e53833 Correct Variant::hash_compare()
There was a logic error in #7815 which made
Variant.hash_compare() == Variant.hash_compare() always true.
In an attempt to short-circuit the NaN check I made an (in hindsight) obvious
error: 10 == 12 || is_nan(10) == is_nan(12)

This will be true for all inputs, except for the NaN, not-NaN case. The macro
has been updated to now generate:

(10 == 12) || (is_nan(10) && is_nan(10))

so:

(10 == 12)   || (is_nan(10)  && is_nan(12))  = false
   False  or (False and False) is False
(10 == 10)   || (is_nan(10)  && is_nan(10))  = true
   True or (False and False) is True
(Nan == 10)  || (is_nan(NaN) && is_nan(10))  = false
   False or (True and False) is False
(Nan == Nan) || (is_nan(NaN) && is_nan(NaN)) = true
   False or (True and True) is True

Which is correct for all cases.

This bug was triggered because the hash function for floating point numbers
can very easily generate collisions for the tested Vector3(). I've also added
an extra hashing step to the float hash function to make this less likely to
occur.

This fixes #8081 and probably many more random weirdness.
2017-04-14 11:31:18 +02:00
core Correct Variant::hash_compare() 2017-04-14 11:31:18 +02:00
doc Rename [gs]et_pos to [gs]et_position for Controls 2017-04-10 08:27:34 +02:00
drivers Rename [gs]et_pos to [gs]et_position for Controls 2017-04-10 08:27:34 +02:00
editor re-enabled obj import 2017-04-12 22:22:13 +02:00
main Fix joystick crash when mapping is -1 2017-04-10 23:41:47 +02:00
misc squish: Update to upstream version 1.15 2017-04-09 15:03:39 +02:00
modules [GDNative] made string functions more C-friendly 2017-04-11 14:58:59 +02:00
platform Fix crash on exit. 2017-04-10 19:51:07 +02:00
scene Rename [gs]et_pos to [gs]et_position for Controls 2017-04-10 08:27:34 +02:00
servers Fix crash on exit. 2017-04-10 19:51:07 +02:00
thirdparty libpng: Update to upstream version 1.6.29 2017-04-09 15:47:25 +02:00
.clang-format Style: Add .clang-format based on LLVM style 2017-02-11 23:48:56 +01:00
.editorconfig Add .editorconfig 2015-06-22 14:07:26 -03:00
.gitattributes Formatting of mm files 2017-04-09 21:22:40 +10:00
.gitignore .gitignore: Add app_icon.h and splash.h generated headers 2017-04-10 18:34:45 +02:00
.travis.yml Travis: Run clang-format static check 2017-03-19 15:26:29 +01:00
AUTHORS.md AUTHORS: Prevent bad Markdown formatting 2017-04-08 00:16:50 +02:00
CONTRIBUTING.md Fix typos in source code using codespell 2017-03-24 21:45:31 +01:00
icon.png Fixed iCCp chunk in pngs 2016-06-22 21:13:29 +02:00
icon.svg Remove grey capsule on official logo 2016-02-28 16:52:45 +01:00
ISSUE_TEMPLATE.md Issue template: Stop discouraging bug reporting on master 2017-03-24 22:01:59 +01:00
LICENSE.md Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
LOGO_LICENSE.md logo in svg curves & license 2015-06-08 01:33:46 -03:00
logo.png Fixed iCCp chunk in pngs 2016-06-22 21:13:29 +02:00
logo.svg Remove grey capsule on official logo 2016-02-28 16:52:45 +01:00
methods.py Android: avoiding duplicates in build.gradle 2017-04-10 08:34:40 +05:30
README.md Fix URLs to moved docs pages 2017-04-05 07:34:27 +02:00
SConstruct -Fix eternal black screen on Windows 2017-04-09 17:59:17 -03:00
signal_renames.txt Added a list of signals to rename, this should become a header eventually 2017-01-12 00:54:21 -03:00
version.py Bump version to 3.0-alpha 2017-01-02 23:02:25 +01:00

GODOT

Godot Engine

Homepage: https://godotengine.org

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 in one click to a number of platforms, including the major desktop platforms (Linux, Mac OSX, Windows) as well as mobile (Android, iOS) and web-based (HTML5) platforms.

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.

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

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.

To get in touch with the developers, the best way is to join the #godotengine IRC channel on Freenode.

Documentation and demos

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

The class reference is also accessible from within the engine.

The official demos are maintained in their own GitHub repository as well.

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 info.

Build Status Code Triagers Badge