Commit Graph

64 Commits

Author SHA1 Message Date
Matthew
b3b0b1e5e9 Merge pull request #9267 from JordanKlooster/patch-1
Fixed small code error in custom_drawing_in_2d.rst
2025-01-24 22:28:16 -05:00
tetrapod00
c4d3aa134a Standardize RST header syntax 2024-12-29 13:44:09 -08:00
Raul Santos
cea78730d0 [.NET] Use collection expressions
As of C# 12 we can now use collection expressions to reduce some boilerplate when initializing collections.
2024-12-21 03:38:42 +01:00
tetrapod00
93489bbefb Use "low-level" and "high-level" instead of "low level" and "high level"
Co-Authored-By: John Veness <2512915+JohnVeness@users.noreply.github.com>
2024-11-18 13:47:58 -08:00
tetrapod00
d837593d9a Add custom codespell dictionary 2024-11-07 15:23:32 -08:00
tetrapod00
a8667ffddf Add links to project setting mentions 2024-11-05 11:55:14 -08:00
Jordan Kloosterman
faac14ae46 Update custom_drawing_in_2d.rst
I fixed an error where the points were being subtracted when they should have been added. 
I noticed this when I messed with the export values for point1.
2024-04-21 22:55:58 -04:00
Jcrespo
2a164ee259 Update custom drawing in 2d to Godot4
This tutorial had 2 main issues: the code wasn't adapted to Godot
4 syntax and API and the suggested tutorial contained information
to workaround the (at the time) non existence of the `draw_arc()`
function.

A general update has been made, keeping the general structure but
changing the example for something more useful and fun
(replicating the godot logo with draw primitives) and an
additional example with a dynamicaly built drawing (dynamic line).

Too many informalities have been removed on the initial paragraph.
Fixed references to Texture instead of Texture2D.
Fixed old style of exporting properties to the editor.
Fixed inconsistencies calling Node2D, myNode2D and customNode2D.
Moved examples to the end of the page, leaving general information
at the top, and completing that info with images and references.
Removed references to an old demo project (Tetris).

Fixes #4184
Fixes #7521

Co-authored-by: Raul Santos <raulsntos@gmail.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2023-12-20 16:43:51 +01:00
Helmasko
1b028982bc Update custom_drawing_in_2d.rst 2023-09-22 02:47:23 +03:00
Jcrespo
6865811c81 Update usages of obsolete rad2deg() and deg2rad() in docs
There were 4 pages documentation pages still using deg2rad(),
which have been substituted by deg_to_rad() and the examples
tested against 4.0.X.

There was 1 usage of C# Deg2Rad(), now DegToRad().

Some dependent comments and output have been updated accordingly:
(deg_to_rad() is implemented in the Math core functions, not in
the Expressions class), plus some float precission fixes, at
least on my architecture.

Only one mention of rad2deg() was found in all docs.

Fixes #7247
2023-05-01 12:24:15 +02:00
Marvin
6fe03f9bfe Small C# fix in the "Arc polygon function" section (#6729) 2023-02-04 19:27:48 +03:00
Raul Santos
b319da3f07 Update some C# examples for 4.0 (#6693)
* Update some C# examples

- Rename members that have been renamed in Godot's C# API for 4.0.
- Change `delta` parameter type to `double`.
- Ensure parameters match base declaration.
- Other minor code fixes.

---------

Co-authored-by: Paul Joannon <437025+paulloz@users.noreply.github.com>
2023-02-04 17:03:03 +01:00
Danil Alexeev
fa4a21c2db Fix code examples on "Custom drawing in 2D" page 2023-01-27 18:38:15 +03:00
Danil Alexeev
519b8acd85 Explain draw_line and draw_rect coordinates 2023-01-16 22:41:06 +03:00
Hana
9e90766a92 update c# class examples 2023-01-12 19:38:20 +01:00
Rémi Verschelde
87c99fe379 Merge pull request #6267 from Calinou/add-antialiasing-docs
Add documentation pages on 2D and 3D antialiasing
2022-11-17 21:01:02 +01:00
LL3006
86d4a70de7 Replace update() with queue_redraw() in Custom drawing in 2D (#6350) 2022-10-31 03:17:00 +01:00
Hugo Locurcio
048f5e575b Add documentation pages on 2D and 3D antialiasing 2022-10-23 19:48:24 +02:00
Max Hilbrunner
b82cd0690d A bunch of renames for Godot 4.0 2022-10-15 18:19:12 +02:00
Aaron Franke
da14b8000d Add C# code examples (salvage of VinnNo's PRs) 2022-04-29 08:08:09 -05:00
Hugo Locurcio
9fea836361 Mention antialiasing workaround in Custom drawing in 2D 2022-04-06 19:38:57 +02:00
Maxime Lapointe
7cf7442435 Reword intro do custom_drawing_in_2d
The wording felt very off from the other tutorials.
This bring it more in line, using a simple 'Introduction' as first section.
2021-09-06 09:26:29 -04:00
Paul Joannon
d0d8ad1879 Fix C# mistakes in Custom drawing in 2D
Fixes #5107
2021-07-29 12:43:20 +02:00
Marcin Sędłak-Jakubowski
bd19917ea0 Draft: Remove "simple", "simply", "easy", and "just" from the docs (#4496)
* Various style edits

* Edit out "simple" when possible

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
Co-authored-by: Clay John <claynjohn@gmail.com>
2021-07-11 14:38:53 +02:00
Hugo Locurcio
4f6fdbc710 Fix various spacing and capitalization issues 2020-05-18 09:54:32 +02:00
Hugo Locurcio
8e0caddac3 Fix typos found using codespell -wi3 ^classes/**/*.rst 2020-04-16 21:01:09 +02:00
Yuri Sizov
075acc61b0 Replace Pool*Arrays with Packed*Arrays in tutorials and references 2020-03-17 11:15:34 +03:00
thebspin
03d693262b Fixed wrapf() error in the custom drawing in 2d tutorial (#2449)
* Fixed error in the custom drawing in 2d tutorial where method said wrap but should be wrapf
2019-05-18 17:36:23 +02:00
Chris Bradfield
41b67909fe Minor tutorial fixes for 3.1 2019-03-20 18:35:40 -07:00
Ignacio Etcheverry
a129652342 Fixes and improvements of C# code examples 2019-02-18 22:08:01 +01:00
Rémi Verschelde
7df2e73626 Merge pull request #2105 from clayjohn/custom_drawing
Removed reference to shower of bullets demo
2019-01-08 13:34:24 +01:00
Rémi Verschelde
a1af0dfc13 Adapt tutorial hyperlinks after godotengine/godot#24640 2019-01-07 11:43:18 +01:00
clayjohn
e316bf05e1 removed reference to shower of bullets demo 2019-01-04 20:32:06 -08:00
Rémi Verschelde
dc2dfb6224 Fix escaping plural 's' after inlined code
Also add missing inline code formatting to Custom drawing in 2D.
2018-12-13 15:02:07 +01:00
corrigentia
cac444f42b Fix some grammar, punctuation, spelling and compliance with the GDScript style guide in custom_drawing_in_2d.rst (#2026) 2018-12-12 11:49:04 +01:00
Rémi Verschelde
e29dc58cbb Heading capitalization fixes + misc edits 2018-08-23 10:57:22 +02:00
FeralBytes
cb0be5f94e Spell out var rotation_angle
Fixes #1618
2018-07-31 07:12:19 -08:00
Jason Maa
d110f7bd88 Grammar and readability fixes for "Step by step", "2D", and "3D" (#1518)
* Minor changes to UI control doc

* Step by step minor grammar fixes

* Editor readability and grammar tweaks

* 2D readability and grammar tweaks

* 3D readibility and grammar tweaks, rewrite part of IK

* Fix bad merge

* Add requested changes, update lifebar UI screenshot
2018-06-18 05:22:32 +02:00
Abdulrahman
f601faf35c fixing Arc polygon function example for GDScript
GDScript fixing an error in the example: Arc polygon function there is missing ")" on deg2rad.
2018-05-11 13:02:26 +03:00
mhilbrunner
f215a0cf26 Proofing/review: Remove filler words, adhere to style guide 2018-05-06 05:23:37 +02:00
Paul Joannon
fb32da98b1 Translate 'Custom drawing in 2D' to C# 2018-04-16 21:24:06 +02:00
rwaguy
c880ae0581 Updated to reflect new PoolVector2Array and PoolColorArray classes (#1179)
* Updated to reflect new PoolVector2Array and PoolColorArray classes

* Removed outdated set_process(true) in examples
2018-02-26 04:39:49 +01:00
Max Hilbrunner
6c6811b32a Small fix in Custom drawing for 2D
Change Vector2Array to PoolVector2Array
2018-02-07 15:05:50 +01:00
Michael Alexsander Silva Dias
23cb08ce0a Fixes for the GDScript styling in various pages. 2018-02-05 20:12:52 -02:00
Nathan
18f889b6a4 Improve docs structure
Change Step by Step in Getting Started
Remove Engine Features category, move into a new Tutorials top-level section
2018-01-25 08:54:27 +01:00
Julian Murgia
b408bdb918 Revamping of the docs organisation for a more coherent TOC
Only the pages were moved so far and some empty ones created,
the up-to-date toctrees come in the next commit.
2017-04-03 23:23:31 +02:00
Kevin Van Kessel
29680c8e67 Fixed a few typos and grammatical errors 2017-03-03 14:28:05 -08:00
Juan Linietsky
b955459479 adding export makes the example clearer 2016-07-14 12:57:26 -03:00
Julian Murgia
68b0b62397 I forgot the second script
Resolved wrapping problem. Was happening because we wrapped angle value at the moment they reach 360. In fact we have to do it only if both angles reach 360 ;) Fixes #151
2016-05-20 23:03:25 +02:00
Julian Murgia
b01e262cee Update custom_drawing_in_2d.rst 2016-05-20 22:59:32 +02:00