183 Commits

Author SHA1 Message Date
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
Max Hilbrunner
a6b1ed4a96 Merge pull request #6204 from acristin/master
Fixes for "Your First 2D Game" tutorial section 5: "The main game scene"
2022-10-04 13:25:53 +02:00
Matthew
cb19ef660d Merge pull request #6193 from Black-Virtue/patch-1
Updating references to RigidBody2D
2022-10-03 21:10:07 -04:00
Max Hilbrunner
51d2bedf2f Merge pull request #6236 from TheYellowArchitect/patch-6
[2D Game Tutorial] Polished HUD code explanation
2022-10-01 17:04:47 +02:00
TheYellowArchitect
d22e87a187 [2D Game Tutorial] Polished code explanation
Placed it above the code, instead of below. It was bad because "This function" yet it's the code above, so it wasn't even "the above function" lol

Now, the code explanation is above the code, like the rest of the docs, and the eye rolls linearly instead of "what is this" then reading below "aaah!" and reading above again lol
2022-09-27 19:59:26 +00:00
Hugo Locurcio
8b330feb43 Update the 2d stretch mode name to canvas_items 2022-09-27 17:18:16 +02:00
Andrew Cristina
0b431349a5 Update for 4.0 beta 1
Replace references to Position2D with Marker2D.

Replace PathFollow2D "offset" with progress_ratio, etc.
2022-09-19 23:12:50 -07:00
Black-Virtue
85fe7c25d3 Updating references to RigidBody2D
From "RigidDynamicBody2D" to "RigidBody2D"
2022-09-17 21:48:36 +01:00
Rafael Correa
b987dba961 Changed instance method to typed version 2022-09-10 10:47:58 -03:00
Max Hilbrunner
c2f7474ec5 Merge pull request #6110 from raulsntos/dotnet/new-signals
Update C# signal documentation
2022-08-26 18:22:46 +02:00
Raul Santos
3b36a94d35 Update C# signal documentation
Updates C# signal documentation and code examples to the new API in 4.0
2022-08-26 15:59:43 +02:00
ego-edesse
3e9968b02f missing @ hint on export (typo?) (#5956)
* missing @ hint on export (typo?)
* yield -> await
2022-08-26 14:58:19 +02:00
m-at-FNSPE
55d3093715 Fix mob scene typo in Your first 2D game (#6007)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2022-07-30 03:35:11 +02:00
Aaron
2f0f865f95 Fix the animatedsprite2D variable in Coding the Player (#6006) 2022-07-29 22:47:44 +02:00
Stanislav Balia
833d83cf59 Update preview GIF to match the end result in Your first 2D game (#5999) 2022-07-29 00:44:46 +02:00
Raf Van Baelen
d12fbbf474 Remove extraneous sentence about finished result in Your first 2D game (#5994) 2022-07-27 19:45:55 +02:00