aboutsummaryrefslogtreecommitdiff
path: root/scene/2d
Commit message (Collapse)AuthorAgeFilesLines
* Move core thirdparty files to thirdparty/{minizip,misc}Rémi Verschelde2017-04-282-2/+7
|
* Apply is_ceiling/is_wall swap fix to 2D move_and_slide (minus explaination)gamemanj2017-04-151-1/+1
| | | | | | | | | As it turns out, is_ceiling would be true when hitting a wall, and is_wall would be true momentarily when hitting a ceiling. This makes a tiny one-line change to fix that. Without trying to explain the code for anyone else having to mess around with it.
* Rename [gs]et_pos to [gs]et_position for ControlsSergey Pusnei2017-04-102-5/+5
| | | | | | | | Control set_pos -> set_position Control set_global_pos -> set_global_position [gs]et_mouse_pos -> [gs]et_mouse_position [gs]et_global_mouse_pos -> [gs]et_global_mouse_position fixes #8005
* Merge pull request #8271 from MattUV/masterRémi Verschelde2017-04-092-1/+43
|\ | | | | Add methods to get and set bits of collision layers and masks for TileMaps (3.0)
| * Add set/get_collision_layer/mask_bit() to TileMapsMattUV2017-04-062-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | Add four methods to the TileMap node to make collision layers and masks be modified bit by bit (like PhysicBody2Ds and RayCast2Ds: * set_collision_layer_bit() * set_collision_mask_bit() * get_collision_layer_bit() * get_collision_mask_bit() To comply with collision layers' renaming from https://github.com/godotengine/godot/issues/5696 , the method names are NOT set/get_layer_mask_bit()
* | Merge pull request #8321 from RandomShaper/zero-preprocess-particles2dRémi Verschelde2017-04-091-1/+1
|\ \ | | | | | | Allow zero preprocess time for Particles2D
| * | Allow zero preprocess time for Particles2DPedro J. Estébanez2017-04-081-1/+1
| | |
* | | Particles2D: Fix flip property (again).Andreas Haas2017-04-091-4/+4
| | | | | | | | | | | | should have flipped the dst_rect..
* | | Add "Godot Engine contributors" copyright lineRémi Verschelde2017-04-0864-0/+64
|/ /
* | Fix build on older GCC versionsRémi Verschelde2017-04-071-3/+1
| | | | | | | | | | Travis builds would fail with: ./drivers/gles3/rasterizer_storage_gles3.h:1018:19: error: ISO C++ forbids initialization of member 'fixed_fps' [-fpermissive]
* | New particle system, mostly working, some small features missing.Juan Linietsky2017-04-063-161/+11
|/
* Merge pull request #8259 from bojidar-bg/move-slide-wall-fixRémi Verschelde2017-04-052-5/+5
|\ | | | | Fix is_move_and_slide_on_wall, make move_and_slide floor angle configurable
| * Fix is_move_and_slide_on_wall, make move_and_slide floor angle configurableBojidar Marinov2017-04-042-5/+5
| | | | | | | | Fixes #7313
* | Merge pull request #8214 from tagcup/bounce_reflect_slideRémi Verschelde2017-04-051-2/+3
|\ \ | |/ |/| Made slide and reflect active verbs acting on itself in Vector2 and V…
| * Made slide and reflect active verbs acting on itself in Vector2 and Vector3.Ferenc Arn2017-04-031-2/+3
| | | | | | | | | | | | | | This is in alignment with other functions in vector classes. Also added checks for normalization, fixed the sign of reflect (which now corresponds to reflection along a plane mathematically), added bounce method and updated docs. Fixes #8201.
* | Merge pull request #8248 from Hinsbart/fix_notify_renamesRémi Verschelde2017-04-041-2/+2
|\ \ | | | | | | Fix more property names in _change_notify calls.
| * | Fix more property names in _change_notify calls.Andreas Haas2017-04-031-2/+2
| | |
* | | Merge pull request #8244 from RandomShaper/improve-touch-buttonRémi Verschelde2017-04-042-8/+27
|\ \ \ | |/ / |/| | Improve TouchScreenButton
| * | Improve TouchScreenButtonPedro J. Estébanez2017-04-032-8/+27
| |/ | | | | | | | | | | Fix shape not being updated Add a way to hide the shape on editor and debug-with-visible-shapes Remove useless checks
* / Fixed Node2D/Control not updating propertiesRobert Hernandez2017-04-011-9/+13
|/
* Fix typos in source code using codespellRémi Verschelde2017-03-241-1/+1
| | | | From https://github.com/lucasdemarchi/codespell
* Fixes for TouchScreenButtonPedro J. Estébanez2017-03-102-8/+16
| | | | | - getting stuck on pause - handling input when not visible
* A Whole New World (clang-format edition)Rémi Verschelde2017-03-0564-5650/+4673
| | | | | | | | | | | | | | | | | | | | | | | | I can show you the code Pretty, with proper whitespace Tell me, coder, now when did You last write readable code? I can open your eyes Make you see your bad indent Force you to respect the style The core devs agreed upon A whole new world A new fantastic code format A de facto standard With some sugar Enforced with clang-format A whole new world A dazzling style we all dreamed of And when we read it through It's crystal clear That now we're in a whole new world of code
* Add a bunch of missing Godot headers in own filesRémi Verschelde2017-03-054-0/+113
|
* TileMap: Respect self_modulate propertyAndreas Haas2017-03-051-0/+3
| | | | | | | | Now `TileMap`s make use of the `self_modulate` property. There's still a bug: The Editor doesn't re-draw with the new color when you change the TileMaps `self_modulate` in the inspector. You'll have to make it update manually (by placing a tile, changing the transform, etc..) I'll open an issue for that after this is merged (If I don't fix it in the meantime ^^).
* Merge pull request #7508 from lonesurvivor/area2d-fixRémi Verschelde2017-03-041-6/+7
|\ | | | | Fix two problems with Area2D and remove_child()
| * When overlappinng Area2Ds are removed with remove_child(), _enter_tree and ↵lonesurvivor2017-01-251-6/+7
| | | | | | | | _exit_tree signals are now properly disconnected upon removal
* | Various fixes detected using PVS-Studio static analyzer.Thaer Razeq2017-02-281-0/+1
| | | | | | | | | | | | | | - Add FIXME tags comments to some unfixed potential bugs - Remove some checks (always false: unsigned never < 0) - Fix some if statements based on reviews. - Bunch of missing `else` statements
* | Use the common PRNG in 2D particles code.Ferenc Arn2017-02-272-19/+7
| | | | | | | | Replaces the custom PRNG used by 2D particles code with a wrapper for the PRNG located under core/math.
* | Merge pull request #7897 from RandomShaper/particles2d-process-modeRémi Verschelde2017-02-272-2/+37
|\ \ | | | | | | Add process mode option to Particles2D
| * | Add process mode option to Particles2DPedro J. Estébanez2017-02-272-2/+37
| | |
* | | Merge pull request #7887 from bojidar-bg/particles-emission-endedRémi Verschelde2017-02-262-10/+4
|\ \ \ | | | | | | | | Add emission_finished signal to Particles2D
| * | | Add emission_finished signal to Particles2DBojidar Marinov2017-02-252-10/+4
| |/ / | | | | | | | | | | | | (Also remove some Particles2D::testee method, which was unused) Resolves #3963
* | | Merge pull request #7869 from RandomShaper/fix-touchbutton-crashRémi Verschelde2017-02-261-6/+8
|\ \ \ | | | | | | | | Fix crash if TouchScreenButton is pressed while exiting the tree
| * | | Fix crash if TouchScreenButton is pressed while exiting the treePedro J. Estébanez2017-02-221-6/+8
| |/ / | | | | | | | | | (cherry picked from commit 5b8d5766f4574b5011b3f258d3e9b34298eb609c)
* / / Add Rect2 TileMap::get_used_rect(), closes #4390Bojidar Marinov2017-02-202-2/+31
|/ /
* | Many fixes to make exported scenes work better, still buggy.Juan Linietsky2017-02-152-2/+4
| |
* | Rename the _MD macro to D_METHODHein-Pieter van Braam2017-02-1329-725/+725
| | | | | | | | | | | | This new name also makes its purpose a little clearer This is a step towards fixing #56
* | Remove use of _SCS from ADD_METHODHein-Pieter van Braam2017-02-1328-252/+252
| | | | | | | | This saves typing and is a step towards fixing #56
* | Merge pull request #7352 from Zylann/polylineRémi Verschelde2017-02-124-0/+1026
|\ \ | | | | | | Polyline
| * | Added Line2D node that draws a polygon-based lineMarc Gilleron2017-01-154-0/+1026
| | | | | | | | | | | | | | | | | | It supports unlimited width, color gradient, texture and some geometry options for joints and caps. Also transparency without artifacts (provided that line joints aren't too sharp).
* | | Merge pull request #7775 from Hinsbart/particles_flipRémi Verschelde2017-02-121-0/+4
|\ \ \ | | | | | | | | Particles2D: implement texture flip parameters.
| * | | Particles2D: implement texture flip parameters.Andreas Haas2017-02-101-0/+4
| | | |
* | | | Merge pull request #7722 from RandomShaper/improve-touch-buttonRémi Verschelde2017-02-122-85/+56
|\ \ \ \ | | | | | | | | | | Fix touch button issues
| * | | | Solve TouchScreenButtons issuesPedro J. Estébanez2017-02-102-85/+56
| |/ / / | | | | | | | | | | | | | | | | | | | | Fix touch button needing double tap after pause (applies to those not set to pass-by) Fix error when a pressed TouchScreenButton with no associated action exits the tree (with some refactoring of duplicate code)
* / / / Add shape property to TouchScreenButtonPedro J. Estébanez2017-02-022-3/+78
|/ / / | | | | | | | | | Adapted from 67a0da34a2d5a95761c54b3012d0a8f1a79e10a6
* | | Merge pull request #7610 from Hinsbart/shape_warningRémi Verschelde2017-01-232-0/+2
|\ \ \ | | | | | | | | CollisionShape2D: Fix warning icon not updating.
| * | | CollisionShape2D: Fix warning icon not updating.Andreas Haas2017-01-222-0/+2
| | | | | | | | | | | | | | | | `CollisionPolygon2D` also had this problem.
* | | | Overloaded basic math funcs (double and float variants). Use real_t rather ↵Ferenc Arn2017-01-162-5/+5
|/ / / | | | | | | | | | | | | | | | than float or double in generic functions (core/math) whenever possible. Also inlined some more math functions.
* | | Style: Fix statements ending with ';;'Rémi Verschelde2017-01-164-6/+6
| | |