98 Commits

Author SHA1 Message Date
Matthew
a605d21719 Merge pull request #7700 from MohsenHNSJ/master
Update player_scene_nodes.webp
2023-08-01 04:01:12 +02:00
Max Hilbrunner
b36142bdc8 Merge pull request #7676 from Varusal/master 2023-08-01 03:52:37 +02:00
Matthew
a69f17ab91 Merge pull request #7673 from vmarnauza/patch-2
Fix typo in `06.heads_up_display.rst`
2023-08-01 03:52:09 +02:00
Max Hilbrunner
bb24e6ed9f Merge pull request #7384 from Piralein/ui-stuff 2023-08-01 03:18:54 +02:00
Max Hilbrunner
b98dabbc73 Merge pull request #7371 from raulsntos/dotnet/renames-2 2023-05-18 13:19:16 +02:00
Raul Santos
c457ab79ec 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.
- Follow our code style more closely.
- Other minor code fixes.
2023-05-18 13:14:05 +02:00
Max Hilbrunner
1645e5740c Clarification in Getting Started 2D 2023-05-18 13:12:43 +02:00
Max Hilbrunner
72c0af46b2 Snake-case .tscn, .gd and _on_* callbacks
Co-authored-by: Doug Thompson <s-git@dougthompson.co.uk>
2023-05-18 12:46:58 +02:00
dprime
4fa13df80f make the section describing wiring up the hit signal slightly more verbose (#6480)
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-05-18 11:20:48 +02:00
Kory Postma
94d621b65f Update 07.finishing-up.rst (#7093)
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-05-18 11:08:07 +02:00
Atul Varma
7b17bdaad4 Document project settings in 01.project_setup.rst (#7359)
Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-05-18 10:37:13 +02:00
Max Hilbrunner
14cc265c4d Merge pull request #7232 from Vennnot/2d-game
Added restated text
2023-05-01 19:46:44 +02:00
Max Hilbrunner
0dcaaefac8 Merge pull request #7258 from jynus/issue7247
Update usages of obsolete rad2deg() and deg2rad() in docs
2023-05-01 16:49:18 +02: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
Hana - Piralein
a252607125 update signal name 2023-04-28 13:52:00 +02:00
Daniel
e24c59ca8e Added restated text 2023-04-26 11:02:28 +02:00
Yuri Sizov
0606a8ed38 Move tutorial ZIPs to a dedicated repository 2023-04-26 10:42:20 +02:00
Piyush Mulatkar
bfd023fe77 Added correct reference to Frames property
Added more clear instruction for finding Frames properties.
Earlier it was harder to find Frames properties as it is now hidden inside Animation tab.
2023-04-14 04:28:27 +02:00
Samuel
1a6c89ee65 fmt: type is Node2D
in body_entered(body: Node2D)
2023-04-01 06:10:10 +00:00
Jayden Wise
ebb6c97510 Update 04.creating_the_enemy.rst
Updating in case others may also be lost while looking for the "New Scene" option in the Scene tab in the FileSystem dock.
2023-03-30 18:09:38 +02:00
Matthew
8a85f656b6 Merge pull request #7035 from The-Briel-Deal/patch-1
Fix incorrect auto-generated signal names
2023-03-25 15:16:27 -04:00
Max Hilbrunner
6c424ed6ad Update getting_started/first_2d_game/07.finishing-up.rst 2023-03-23 04:36:44 +01:00
Gabriel Ford
72216483eb Fix incorrect auto-generated signal names
In https://github.com/godotengine/godot-docs/issues/7028 it is noted that the autogenerated signal names for "Your first 2D game" are in the wrong case. They are PascalCase in the docs but in the engine they are snake_case in the latest stable 4.0.

fixes #7028
2023-03-22 22:10:55 -04:00
kastaldi
365a9d0f26 Full Rect option in Background section
Corrected the "Full Rect" option location in Background section because it was wrong in Godot 4.
2023-03-19 17:50:28 +01:00
ssoel
d9c27aa50d "New Animation" --> "Add Animation"
As of Godot v4.0 (Editor Language: "en"), the button in question is called "Add Animation" and not "New Animation".
2023-03-18 10:50:33 +01:00
James Czekaj
06a4cbea23 Mention the "Pick" button when connecting signals
With the addition of the useful Pick button in the "Connect a Signal" window, I thought it would be useful to mention it here.
2023-03-09 13:21:58 +00:00
Raul Santos
a7637e0ef1 Update getting started C# code, remove randomize (#6811)
* Update getting started C# code, remove randomize

- Sync C# code with GDScript.
- Remove `randomize` calls.
- Rename members that have been renamed in Godot's C# API for 4.0.
- Change `delta` parameter type to `double` in C#.
- Follow our C# code style more closely.
- Other minor code fixes.

---------

Co-authored-by: RedworkDE <10944644+RedworkDE@users.noreply.github.com>
2023-03-09 06:06:54 +01:00
Rémi Verschelde
02d743a243 Merge pull request #6895 from rm-code/feature/fix-capitalization
C#: Fix capitalization of vector properties X and Y
2023-03-06 17:17:09 +01:00
Danil Alexeev
59075ad12f Fix GDScript code style regarding colon (docs) 2023-03-05 16:51:08 +03:00
Robert Machmer
4d9c1d9919 Fix capitalization of vector properties X and Y 2023-03-05 12:51:32 +01:00
Abdülhamit Yilmaz
58bf7ed1d9 Fix: progress_ratio expects a float, not an int 2023-03-01 23:18:45 +01:00
Patrick
1d609842dd GDExtension docs
Renames from GDNative to GDExtension


Add Pictures/Gifs and clarified compatability


Remove GDNative language bindings from GDExtension docs


Update SConstruct and AddingProperties section


updated with suggestions


Added property hint example + updated to API naming changes


Fixed redirect.csv
2023-02-26 16:44:45 +01:00
Brett Chalupa
c51ccca5f0 Add note about removing new_game() _ready() in 2D tut (#6781)
* Add note about removing new_game() _ready() in 2D tut

The Start button handles calling `new_game()` so without removing the `_ready()` function that called `new_game()`, the game will automatically start on launch.

* Revise 2d tut new_game() removal to be a reminder

Based on feedback from cbscribe since it's mentioned in the
previous part of the tutorial.
2023-02-26 10:08:13 +01:00
Hana
dadc2d9f97 update images and outdated properties 2023-02-04 22:09:41 +01:00
shane pope
39ff799608 Update 04.creating_the_enemy.rst 2023-02-03 13:26:15 -06:00
shane pope
1981fd404f Use new API for 4.0 2023-01-29 22:39:09 -06:00
Hana
229a7c78f6 Update majority of images in "Your first 2d game" (#6697)
* Update images in first 2d game
2023-01-29 18:03:54 -05:00
BlueStag
135ad68cab Use 4.0 method of connecting to and emitting signals (#6311)
Change docs to use the new method of connecting and emitting signals
2023-01-22 22:01:34 -05:00
Haoyu Qiu
d83c3d8143 Sync renamed method in C++ code snippet 2023-01-18 20:36:41 +08:00
Paul Joannon
293c3455bb Update & fix C# blocks under getting_started/
- `_Process` take its delta argument as a double
- Node classes need to be partial
- Use `SignalName.*` instead of `nameof(*)` for signals
- Add a note about how `delta` arguments are doubles
2023-01-14 11:11:52 +01:00
Yuri Sizov
f59ef9dfd3 Merge pull request #6580 from Piralein/update-first-2d
Update code samples in The Main Game Scene tutorial, remove randomize calls
2023-01-13 16:31:20 +03:00
Hana
9e90766a92 update c# class examples 2023-01-12 19:38:20 +01:00
Hana
108796d8ee update c# code example and remove randomize call 2023-01-12 17:59:58 +01:00
Brendan Hansknecht
eb65fa2857 First 2d game docs - minor typo fix (#6555)
* First 2d game typo fix

Super minor type fix for first 2d game tutorial
2023-01-09 22:57:24 +01:00
Josh Creek
fbf70a7c6b fix(#6539) Update C# documentation for Godot 4 (#6548)
* fix(#6539) Update C# documentation for Godot 4
2023-01-09 20:52:40 +01:00
José Joaquín Bocanegra
c9e50fc27b Fixes typo saying Main where it should say HUD 2022-10-17 17:28:46 +01:00
Max Hilbrunner
3765e1ca51 Nuke GDNative from docs 2022-10-15 23:53:50 +02:00
TheYellowArchitect
be79373bfd [2D Game Tutorial] Fixing the last codeblock to run on 4.0
The last code which would make the tutorial incompatible for 4.0 was this. I ran it locally on my 2D project to ensure it works.
Basically to replace the yield one-shot timer, I used this https://docs.godotengine.org/en/latest/classes/class_scenetreetimer.html

Fixes https://github.com/godotengine/godot-docs/issues/6234

@Calinou Related to this: If I do an upgrade/polish of the 2D tutorial [like I did with 3.0](https://github.com/godotengine/godot-docs/pull/6243) where I upload more **.webp** images and clarify and ref hyperlink here and there, would it be accepted soon, or delayed until after .webp support? Asking because it will take a day or two (I already have the images which is the hard part), and if that upgrade is merged in 4+ months, I would rather schedule my priorities in another way
2022-10-07 13:04:07 +00:00
Max Hilbrunner
7d951887f8 Merge pull request #6163 from ScriptsEngineer/patch-1
Change instance method to typed version in C# example
2022-10-05 13:13:09 +02:00
TheYellowArchitect
fff8355a8e [2D Game Tutorial] Explicit add child node clarification (#6225)
* [Dodge The Creeps] Explicit add child node clarification

Added explicit "add child node" instead of "add animated sprite 2d node as a child"
Also added Ctrl+A shortcut so users get slowly familiarized with the optimal workflow
2022-10-05 12:51:44 +02:00