Indie game dev
posting things from the 160+ rss feeds I follow. You should see me post links in two chunks for when im reading stuff, once in the morning and once in the evening ET. If you want some of my sources for certain communities feel free to dm
Pfp is Lucie from battlerite
Lemmy is indexed so can be found on search engines while discord cant
For internal search without using a search engine discord has had way more devs, time and money thrown at it. Still would say its barely better than lemmy (just is cause of the time filters)
Reason hasnt been given. Theres this message from the discord
Code blocks got updated in 0.19, lemmy.world is still on a 0.18 version
Subreddit had 3 posts within the last month so not that far off tbh
I can look for some post sources to give the community here some more activity
Theres a community for it over at !bevy@programming.dev for anyone interested in it :)
Converting ampersands to say amp instead is a bug that got fixed in version 0.19, world hasnt upgraded yet though
You can edit font colors from the theme, theme override or by using modulate
Theres a function called set_color in the theme
docs: https://docs.godotengine.org/en/stable/classes/class_theme.html#class-theme-method-set-color
Canvas items have a modulate property that can be set to a new color to tint the element
For this I would do the modulate route
When the draw function calls itself it yields control to that new function its calling. When that function ends it takes back control and continues doing what it was doing.
This means all of the for loops in all of the functions will execute. Draw(1) will do the for loop and then return as it hits the end of the function (standard behaviour when you reach the end of a function even if theres no return statement). Then draw(2) will do the for loop as it gets back control now that draw(1) is done and then return, etc. all the way up
All parts of a function are recursive, theres no such thing as a non recursive part
This code has a recursive call (function calls itself) within the function so that has to be taken into account when tracing it
This would make the function execute multiple times so the for loop would end up executing multiple times.
Lets say main calls draw with a height value of 10 (draw(10)). First it sees that n is greater than 0 so it keeps going. Then it calls the draw function with a value of 10 - 1 aka 9. Now its executing in the draw(9) function. Greater than 0 so continues and calls draw(8). etc. all the way down to draw(0) where it sees that n is equal to 0 so returns out of the function due to the return statement.
Now that draw(0) finished executing draw(1) can keep going and goes to the for loop. Here it prints 1 # and then prints a new line (and then returns since it hit the end of the function). Now that draw(1) is done draw(2) can keep going and prints 2 #'s and then prints a new line (and then returns). This keeps going all the way up to the initial draw call, draw(10) which prints 10 #'s and then a new line, returns, and then the main function keeps going but theres nothing after that so it returns and the execution ends.
The effect from coming back after the recursive calls makes it seem like n is increasing but its just different calls to the same function. i is taken into account for but printing the amount of #'s since thats whats within that loop
oops didnt see that header
will keep them in the description there just in case people dont know what 3.11 added since I dont believe theres been a 3.11 post here before
Letting you know, the download and github links on the git.rela.dev site navbar dont work
Its probably set as a private repository
Yeah active is currently the default sort in programming.dev until scaled sort comes out so commenting helps the most out of everything here
nah not me, just like watching vids from this youtuber. Afaik this isnt part of any larger thing and is just a feature study. (Its the first video they’ve posted in 3 months, before that they had a bunch of videos for a series called godot fundamentals)
searching across all of github was made to be logged in then
repository level searching though is relatively recent. Heres the blog post about the change dated in June this year https://github.blog/changelog/2023-06-07-code-search-now-requires-login/
This comment by an employee in the thread also calls out it was in 2023 and links to the blog post
Should work regardless of whether youre using gdscript or c# (unless the specific feature is obviously tied to gdscript)
rename a file is in expert
in godot if you rename certain types of things it tends to break a lot of parts of your game unless you go in and update references to it manually in the tscn files
im not op, just crossposting from some other spots with permission from the ops but will give some info for people who want to make something similar
Agree glowing outline would be good here. A glowing outline is something thats relatively easy to do and good to add even if just to have for an accessibility setting people can toggle. Easily addable without changing sprites by attaching a shader onto the player and theres lots of tutorials out on doing so such as https://www.youtube.com/watch?v=UBujOvMRNl0
For adding lighting to the player, thats also feasible although maybe a bit harder than the outline shader due to needing to mess with normal maps. Something some people do is add a normal map for the outermost pixels only (edge lighting)
Its theoretically also possible by just lighting up the entire sprite without a normal map or the entire sprite normal mapped but tends to not look great and makes the sprite a bit more unreadable
Its in the embedded tweet
Stands for progressive web app which is an app which uses web technologies. Can be both a web page and a mobile app on a phone. Can be added as an app to your phone through a browser rather than downloading it from an app store