Commit Graph

45 Commits

Author SHA1 Message Date
Florian Rival 58ba2668c2 Add clang-tidy and builds with assertions/memory sanitizers for libGD.js (#7051)
Only show in developer changelog
2024-10-14 12:06:42 +02:00
Florian Rival 9391fc2841 Remove warnings during C++ emscripten compilation 2024-09-13 15:51:55 +02:00
Florian Rival a0925c79c3 Add a new simplified way to use variables in expressions, and automate renaming of variables in events (#5580)
* You can now simply write the name of the scene or global variable in an expression to use it: `1 + MyVariable` (instead of `1 + Variable(MyVariable)`).
* Objects can also have their variables accessed like this: `MyObject.MyVariable` (instead of `MyObject.Variable(MyVariable)`.
* This also works for properties inside functions of behaviors or custom objects. For example, you can write `Speed` instead of `Object.Behavior::PropertySpeed()`.
* This syntax will also handle all types of variables without the need to write ToString. For example, you can now write "Score: " + CoinsEarned instead of "Score: " + ToString(Variable(CoinsEarned)).
* This syntax will only work (and autocompletions will be shown) if you add the variable in the variables editor of the scene, the project or in the variables of the object. It's a good practice to always declare your variables here and give them a default value - do it to benefit from this new simplified syntax, which will make your formulas and expressions much more readable.
* When you rename a variable in an editor, it will now rename the variables everywhere in the events of the project. This makes it much easier to change the name of a variable if you find a better one. Note that this works for "rootæ variables, but not variables inside structures or arrays.
2023-09-21 18:56:12 +02:00
supertree-wook ee22b2e4b1 Upgrade CMake minimum version and improve CMake code (#5446)
Only show in developer changelog
2023-06-28 12:01:05 +02:00
supertree-wook 8fb139ff63 Rename the readme and license files to match standard (#5272)
Do not show in changelog
2023-05-04 09:22:12 +02:00
Florian Rival 6adec363d5 Enable C++ tests by default in CMake
Only show in developer changelog
2022-05-13 17:47:16 +00:00
Florian Rival dcba0b45a6 Remove an ignored (though innocuous) clang warning 2021-09-13 20:29:24 +02:00
Florian Rival f2ec46ca1e Enable more warnings from Clang when compiling C++ sources (#3042)
Only show in developer changelog
2021-09-13 20:02:03 +02:00
Florian Rival 1a27f689e0 Remove deprecated/unused/unmaintained GDCpp code (#2930)
* This also includes extensions code.

Only show in developer changelog
2021-08-17 14:34:58 +02:00
Florian Rival 2e511c75bf Fix compilation on GCC
Don't show in changelog
2020-07-07 10:00:42 +02:00
Florian Rival b76df0247d Fix "Trigger Once" not working properly when used in a behavior
Don't show the rest in the changelog:

This was because the OnceTriggers were shared with the runtime scene. Now each behavior has its set of Once Triggers. This means that Once Triggers "survive" if the behavior is deactivated then activated again.

Added integration test for generated behavior

Fix #1843
2020-07-06 23:47:17 +02:00
Florian Rival ce9df3b57b Add back flags for C++11 2019-04-23 16:42:19 +01:00
Florian Rival 680c42c113 Remove check for C++11 compiler - assume compilers are now new enough to support it 2019-04-23 16:09:15 +01:00
Florian Rival 1940b0cccd [WIP] Remove old IDE 2019-04-16 17:05:25 +01:00
Florian Rival a8559bfbbc Add clang-format to format (C++) source files automatically (#491)
* Update all CMakeLists of extensions to use clang-format
* Run clang-format on all Extensions
* Update GDCore CMakeLists.txt to add clang-format
* Run clang-format on GDCore files
* Update GDJS and GDCpp CMakeLists.txt to add clang-format
* Run clang-format on GDCpp and GDJS files
2018-05-09 15:57:38 -07:00
Victor Levasseur 7e23652eef Add an option to simplify the version number to reduce building time 2016-11-20 01:15:29 +01:00
Victor Levasseur 72df404d7f Automatic versioning (#311)
* Use the port number in SendHttpRequest and DownloadFile

* Fix "Custom size" and "Custom viewports" not displayed in layer propgrid

* Fix Fedora spec file

* Use automatic versioning from git

* A "correct" version number is now generated even if git is unable to find a tag
2016-11-11 11:32:56 +01:00
Florian Rival 4706990730 Update CMakeLists.txt to avoid a warning with latest Clang on OS X 2015-12-08 21:01:02 +01:00
Florian Rival b7a78ea145 Remove single file executable compilation option 2015-08-17 20:47:46 +02:00
Florian Rival 2cff490c73 Use GDevelop.js instead of libGD.js for emscripten build 2015-06-09 23:09:18 +12:00
Florian Rival b0828d0891 Now use libGD.js as directory name for emscripten builds 2015-06-07 22:49:19 +12:00
Florian Rival 5896d6d327 Add BaseEvent getter/setter for folded member. Fixes for emscripten bindings 2015-05-24 15:01:59 +12:00
Florian Rival 5926bdb67b Updated docs and minor changes 2015-04-02 23:25:48 +13:00
Florian Rival c6f70cf472 Factored parts of CMakeLists.txt 2015-03-18 17:21:12 +13:00
Florian Rival 4382225576 Factored some parts of CMakeLists.txt 2015-03-18 17:03:51 +13:00
Florian Rival b2a3ec44a4 Tweaked CMakeLists.txt and some files for MacOS compilation 2015-03-07 12:15:08 +13:00
Victor Levasseur 5932a3f5a6 Merge remote-tracking branch 'upstream/master' into win-wx3-gcc4.9-c++11 2015-01-18 21:45:47 +01:00
victorlevasseur 9d75da7c76 Use correct C++11 flag according to the compiler 2015-01-18 16:15:11 +01:00
victorlevasseur f18b258083 Add support for TDM-GCC 4.9.2 with C++11
GNU extensions are also activated as wxWidgets cannot be built without
them
2015-01-18 15:54:31 +01:00
Victor Levasseur 2c7e80e056 Try to build tests with RPATH 2015-01-03 20:33:10 +01:00
Victor Levasseur 26dedc23a9 Merge remote-tracking branch 'upstream/master' into wx-std-support
Conflicts:
	CMakeLists.txt
2015-01-03 17:10:10 +01:00
Florian Rival da0c208efd Fixed compilation with emscripten 2015-01-03 16:48:38 +01:00
Florian Rival 4711be9ffe Using SFML targets in CMakeLists instead of raw filenames 2015-01-03 14:39:43 +01:00
Victor Levasseur 0213ccebec Remove debug message in CMakeLists 2015-01-01 22:16:37 +01:00
Victor Levasseur d3ec776ed7 Fix GD_INSTALL_PREFIX when CMAKE_INSTALL_PREFIX is not definied 2014-12-29 18:24:49 +01:00
Florian Rival c63b557a88 Added installation commands to CMakeLists.txt 2014-12-29 14:57:17 +01:00
Florian Rival 7a3d9ecc7f Add ExtLibs/CMakeLists.txt and reworked other CMakeLists.txt to download boost/SFML and build SFML 2014-12-26 15:13:52 +01:00
Florian Rival 7d3ada265c Replaced "Game Develop" by "GDevelop" 2014-09-24 16:25:13 +02:00
Florian Rival cef5285f85 Modified travis script. 2014-08-10 22:33:23 +02:00
Florian Rival f6216da3ed Work in progress for tests.
Events Clone method now return a raw pointer.
2014-08-10 22:24:06 +02:00
Florian Rival 168cfa8bae Updated docs about SFML build.
Added checks for external libs in CMakeLists.txt
Added optional "usage complexity" to instructions metadata.
2014-07-12 19:08:39 +02:00
Florian Rival 8844642ae0 Updated copyrights.
Added doxygen files.
Cleaned some files.
2014-06-26 00:20:36 +02:00
Florian Rival c64485c8e7 Exposed more functions to Embind.
Added ArbitraryEventsWorker and EventsParametersLister.
Added ProjectResourcesAdder.
2014-06-10 17:58:36 +02:00
Florian Rival 63de5a067b Refactoring and advanced embinding. 2014-04-26 21:50:00 +02:00
Florian Rival 475c9da06c Cleaned thing and added not versioned files. 2014-03-31 21:55:51 +02:00