Skip to content

Commit

Permalink
Update custom drawing in 2d to Godot4
Browse files Browse the repository at this point in the history
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 godotengine#4184
Fixes godotengine#7521

Co-authored-by: Raul Santos <raulsntos@gmail.com>
Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
  • Loading branch information
3 people committed Dec 20, 2023
1 parent f80b9fe commit 2a164ee
Show file tree
Hide file tree
Showing 15 changed files with 789 additions and 259 deletions.
1,048 changes: 789 additions & 259 deletions tutorials/2d/custom_drawing_in_2d.rst

Large diffs are not rendered by default.

Binary file added tutorials/2d/img/draw_antialiasing_options.webp
Binary file not shown.
Binary file added tutorials/2d/img/draw_arc_between_2_points.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added tutorials/2d/img/draw_godot_logo_circle.webp
Binary file not shown.
Binary file added tutorials/2d/img/draw_godot_logo_line.webp
Binary file not shown.
Binary file added tutorials/2d/img/draw_godot_logo_polygon.webp
Binary file not shown.
Binary file added tutorials/2d/img/draw_godot_logo_polyline.webp
Binary file not shown.
Binary file added tutorials/2d/img/draw_godot_logo_text.webp
Binary file not shown.
Binary file added tutorials/2d/img/draw_godot_mouth_animation.webp
Binary file not shown.
Binary file added tutorials/2d/img/draw_godot_rotation.webp
Binary file not shown.
Binary file added tutorials/2d/img/draw_line_between_2_points.webp
Binary file not shown.
Binary file removed tutorials/2d/img/result_drawarc.png
Binary file not shown.
Binary file removed tutorials/2d/img/result_drawarc_poly.png
Binary file not shown.

0 comments on commit 2a164ee

Please sign in to comment.